Commit graph

1292 commits

Author SHA1 Message Date
Art Yerkes c1d0686eaa This is a merge onto head of the last two months worth of changes to the
networking code.

There is individual change info on the branch arty_20040329.

Here is a summary of what changed:

tcpip:

- Added a mostly working transport/tcp branch based on oskittcp
  (checked in at drivers/lib/oskittcp).  This code shares almost nothing
  with the previous version.

- Regularized IRP handling

- Fixed ownership of buffers throughout tcpip.sys.  Buffers are now
  required to be copied in a few more cases, but everybody can call
  anybody else and not have to worry about keeping a buffer alive
  for any specific reason.

- Also moved lots more operations onto the stack (small datastructures
  and pointers).  This will result in a further simplification of the
  code here.

- Made each completion routine solely responsible for freeing memory
  from the corresponding action.

- Removed reference counted small address structures in favor if inlines

- Changed and clarified ownership rules almost everwhere

- Fixed a few more type punning style errors

- Added more info used by iphlpapi

- Added some memory tracing stuff

ndis:

- Fixed one or two type punning errors

ws2_32:

- Added getservbyname and getprotobyname (partial)

oskittcp:

- Diagnostics everywhere

- Eliminated dependence on raw_ip input

- Simplified buffering and signalling model a bit

- Added memory checking as in tcpip

- more to come

svn path=/trunk/; revision=9647
2004-06-09 18:11:39 +00:00
Eric Kohl 25e4bf3404 Build Hardware IDs and Compatible IDs for PCI devices.
svn path=/trunk/; revision=9646
2004-06-09 14:22:53 +00:00
Filip Navara 869566fc97 - Correctly set Irp->IoStatus.Information when handling IOCTL_BOOTVID_INITIALIZE request. This fixes the occasional page faults during bugchecks when NTOSKRNL:InbvResetDisplay tried to call function pointed by uninitialized variable.
svn path=/trunk/; revision=9645
2004-06-08 19:31:10 +00:00
Hartmut Birr a51ef0df37 - Fixed the counting of pending irps.
svn path=/trunk/; revision=9644
2004-06-07 20:03:00 +00:00
Filip Navara ba3d08e286 - Fixed redefinition of VERSION.
svn path=/trunk/; revision=9643
2004-06-07 18:03:12 +00:00
Hartmut Birr da9b36f495 - Implemented ScsiPortCompleteRequest.
- Fixed the calculation of the max transfer size.
- Rewrote parts of SpiScanAdapter and SpiSendInquiry to speed up device detection.
- Fixed the handling of sense info data for HBA's which are auto request sense capability.
- Added some more debug messages.

svn path=/trunk/; revision=9641
2004-06-07 16:37:07 +00:00
Eric Kohl 36b12d1025 Use hardware description if available to initialize the serial mouse port.
svn path=/trunk/; revision=9637
2004-06-06 15:55:03 +00:00
Filip Navara 39ff6d3136 - Fixed calculation of MFT record size.
- Fixed attribute finding/dumping bounds checking.
- Fixed reading of volume information MFT record.
- Disabled debug messages.

svn path=/trunk/; revision=9615
2004-06-05 08:28:37 +00:00
Art Yerkes dd2e0b0978 Added csq to build.
svn path=/trunk/; revision=9548
2004-05-29 17:00:41 +00:00
Art Yerkes 05769811b4 Fixes for gcc-3.4.0 (pasting the __FUNCTION__ constant with a string)
and cast lvalue (reported by thomas weidenmueller)

svn path=/trunk/; revision=9537
2004-05-29 09:59:25 +00:00
Steven Edwards d31c888e86 moved oskittcp as it is a driver lib.
svn path=/trunk/; revision=9527
2004-05-29 00:16:39 +00:00
Hartmut Birr e58206820b - Implemented ScsiPortGetPhysicalAddress also for addresses from sense info buffer.
- Allocated the sense info buffer within contiguous physical memory.
- Don't send an sence request after an error if the miniport driver is autosense-capable.

svn path=/trunk/; revision=9487
2004-05-24 20:33:41 +00:00
Hartmut Birr 8c86d7049f - Fixed my copy-and-paste bug. Thanks to Royce III.
svn path=/trunk/; revision=9483
2004-05-23 15:49:56 +00:00
Hartmut Birr 924e3b2bea - Don't return a file or allocation size for directories.
svn path=/trunk/; revision=9481
2004-05-23 13:34:32 +00:00
Hartmut Birr 84d6759c0a - Fixed the calculated file attribute in CdfsFileFlagsToAttributes.
svn path=/trunk/; revision=9480
2004-05-23 13:27:26 +00:00
Filip Navara 86ada6ab1c - Revert change to VGA register values that I accidently commited.
svn path=/trunk/; revision=9468
2004-05-22 12:23:12 +00:00
Filip Navara ed16c950dc - Check buffer sizes and color counts for IOCTL_VIDEO_SET_COLOR_REGISTERS request.
svn path=/trunk/; revision=9464
2004-05-22 08:53:26 +00:00
Filip Navara ce81c53f81 - End-Of-Line marker at the real end of line shouldn't advance the vertical offset.
svn path=/trunk/; revision=9455
2004-05-21 17:34:24 +00:00
Filip Navara d76f0c8745 - Support for the End-Of-Line RLE mark.
- Treat the bitmap header field bV5ClrUsed correctly if it's set to zero.

svn path=/trunk/; revision=9454
2004-05-21 17:05:46 +00:00
Hartmut Birr d16209b9dc - Improved the reading and writing of fragmented files.
svn path=/trunk/; revision=9412
2004-05-15 23:00:02 +00:00
Hartmut Birr bdd1e9e8c6 - Fixed the implementation of MmMapIoSpace.
svn path=/trunk/; revision=9409
2004-05-15 22:45:51 +00:00
Gé van Geldorp 5884627fe6 Silence debug messages
svn path=/trunk/; revision=9391
2004-05-15 07:49:05 +00:00
Gé van Geldorp 45ac874e11 Avoid warnings when using gcc 3.4
svn path=/trunk/; revision=9356
2004-05-11 20:52:10 +00:00
Filip Navara 71f57b72d4 - Workaround for supporting a reads from pipe after the other end has been closed and data are still available in the buffers.
svn path=/trunk/; revision=9352
2004-05-10 19:58:10 +00:00
Gé van Geldorp 1b645d2622 Avoid warnings when using gcc 3.4
svn path=/trunk/; revision=9350
2004-05-10 18:02:20 +00:00
Hartmut Birr ad49710348 - Set the correct cdb length for the mode sens command in CdromClassCreateDeviceObject.
svn path=/trunk/; revision=9338
2004-05-09 14:50:50 +00:00
Filip Navara eb065653f6 - Protect against reads from (and writes to) closed named pipes.
svn path=/trunk/; revision=9319
2004-05-07 12:13:13 +00:00
Royce Mitchell III 60676825a8 use bugcheck macros where appropriate so users have a better idea of why they crashed.
svn path=/trunk/; revision=9317
2004-05-07 05:12:10 +00:00
Filip Navara 333e6a58cb - Fixed various problems (hangs/crashes) with connecting, disconnecting and closing named pipes.
svn path=/trunk/; revision=9312
2004-05-05 18:30:16 +00:00
Filip Navara 73812409b4 - Implementation of IOCTL_VIDEO_QUERY_CURRENT_MODE. Based on patch by Herv� Poussineau.
svn path=/trunk/; revision=9296
2004-05-03 17:15:14 +00:00
Hartmut Birr 7450b416e4 - Fixed checking for a FAT file system on a removable media.
- Check more exactly for a FAT file system.

svn path=/trunk/; revision=9285
2004-05-02 20:16:46 +00:00
Hartmut Birr 38ed29a671 - Check more exactly for a FAT file system.
svn path=/trunk/; revision=9284
2004-05-02 20:12:38 +00:00
Filip Navara 0419425cb7 - Simplified the mapping of video memory. Now it works in Virtual PC 2004.
svn path=/trunk/; revision=9243
2004-04-29 16:55:37 +00:00
Filip Navara e7d451e2fd - Correctly swap the Red and Blue colors while setting the palette on non-VGA compatible adapters.
svn path=/trunk/; revision=9206
2004-04-23 20:12:57 +00:00
Hartmut Birr ac9fc6496a - Initialized the srb on each call to SpiSendInquiry.
svn path=/trunk/; revision=9203
2004-04-23 14:29:07 +00:00
Gunnar Dalsnes 03cfbfef0a make mdl usage/impl. more windows compliant
svn path=/trunk/; revision=9189
2004-04-20 19:04:11 +00:00
Hartmut Birr 4debbe40cc - Fixed the open counter in IntVideoPortDispatchClose.
svn path=/trunk/; revision=9182
2004-04-18 12:59:14 +00:00
Eric Kohl f269c53d06 Clear data buffer before sending the INQUIRY command.
svn path=/trunk/; revision=9164
2004-04-16 13:39:46 +00:00
Filip Navara a885a5c4bc - Minor correction to returned error.
svn path=/trunk/; revision=9101
2004-04-12 14:46:02 +00:00
Thomas Bluemel 755a1a820f reverted, my mistake
svn path=/trunk/; revision=9099
2004-04-12 13:13:38 +00:00
Thomas Bluemel a1240dac2e forgot adding the floppy driver
svn path=/trunk/; revision=9098
2004-04-12 13:10:19 +00:00
Filip Navara de77cb9e79 - Fixed connection/disconnecting/closing handling, so we don't connect to dead and disconnected pipes.
- Handle the OPEN_EXISTING flag correctly.
- Report reasonable error messages instead of STATUS_UNSUCCESSFUL.

svn path=/trunk/; revision=9097
2004-04-12 13:03:29 +00:00
Thomas Bluemel d7bba47d07 added some makefiles
svn path=/trunk/; revision=9096
2004-04-12 12:08:53 +00:00
Filip Navara 30ed90f0b3 - Fix a stupid bug that prevented writing to pipes from working.
svn path=/trunk/; revision=9075
2004-04-10 16:20:59 +00:00
Filip Navara ba54c6c892 - Fixed minor bug in VGA driver.
svn path=/trunk/; revision=9033
2004-04-08 15:45:18 +00:00
Gé van Geldorp 9358255f84 HwResetHw can be (and sometimes is) NULL
svn path=/trunk/; revision=9030
2004-04-08 15:36:36 +00:00
Filip Navara a7270ad893 - Fixed releasing of display ownership.
svn path=/trunk/; revision=9024
2004-04-08 09:43:55 +00:00
Filip Navara 3cb07b0ba8 - Fixed initalization of VIDEO_HW_INITIALIZATION_DATA, because the Video Port driver now checks the values.
svn path=/trunk/; revision=9023
2004-04-08 09:43:35 +00:00
Hartmut Birr bfde26a3f6 - Rewrote the code which handles processing of irp's and notifications from miniport driver.
- Implemented support for srb extensions (very simple).

svn path=/trunk/; revision=8999
2004-04-07 09:21:01 +00:00
Hartmut Birr eec82162fb - Fixed the initializing of the access ranges.
svn path=/trunk/; revision=8950
2004-04-02 15:43:01 +00:00
James Tabor d945804c33 Added MediaChangeNoMedia on/off
svn path=/trunk/; revision=8943
2004-04-01 17:29:53 +00:00
James Tabor 2dabdb2ac1 Added MediaChangeCount
svn path=/trunk/; revision=8942
2004-04-01 17:24:47 +00:00
James Tabor f8e193fbc6 Wrong to remove ExFreePool.
svn path=/trunk/; revision=8941
2004-04-01 15:01:35 +00:00
James Tabor 22c413c3b4 Removed ExFreePool and Spell error.
svn path=/trunk/; revision=8934
2004-03-31 05:25:36 +00:00
James Tabor 450a15d61f More Oops!
svn path=/trunk/; revision=8933
2004-03-31 03:39:12 +00:00
James Tabor 1fb32b9534 Added removable mediachange support.
svn path=/trunk/; revision=8932
2004-03-31 03:34:55 +00:00
James Tabor bc0cf4f9cf Oops!
svn path=/trunk/; revision=8931
2004-03-31 03:34:42 +00:00
James Tabor 3b1c2903f6 Added removable mediachange support.
svn path=/trunk/; revision=8930
2004-03-31 03:33:48 +00:00
Filip Navara 741870b134 DbgPrint -> DPRINT
svn path=/trunk/; revision=8910
2004-03-28 20:44:09 +00:00
Filip Navara 1bad49c3be * Always return STATUS_SUCCESS from ScsiPortInitialize if some device was found.
* Minor correction to setting of SrbExtension.
* Changed DPRINT1 to DPRINT on some places.

svn path=/trunk/; revision=8863
2004-03-24 16:21:59 +00:00
Eric Kohl 93f83462c0 Changes to make AHA-2940 detect devices:
- Set proper inquiry buffer size.
- Check inquiry buffer for valid LUN.

svn path=/trunk/; revision=8847
2004-03-23 12:30:15 +00:00
Gé van Geldorp 4aae876500 Silence debug messages
svn path=/trunk/; revision=8843
2004-03-23 00:12:24 +00:00
Filip Navara ccecaee56d - Added allocation of SrbExtension.
- Correctly set ConfigInfo->BusInterruptVector.
- Corrected the INQUIRY request.

svn path=/trunk/; revision=8837
2004-03-22 19:59:31 +00:00
Filip Navara bcce3e20b1 - Compile the VGA driver using w32api.
svn path=/trunk/; revision=8836
2004-03-22 16:00:38 +00:00
Gé van Geldorp d8f0a4b49f Silence debug messages
svn path=/trunk/; revision=8826
2004-03-21 12:31:19 +00:00
David Welch dd4a862112 - Removed local definition of NtCurrentProcess.
svn path=/trunk/; revision=8799
2004-03-19 21:34:49 +00:00
Filip Navara d621be6ce6 Merged changes from videoport_pnp_14032004 branch:
- Better support for W2K+ video miniport driver incl. the basic implementation of PnP driver model.
- Return Win32 error codes instead of NT equivalents.
- Fixed a few bugs.

svn path=/trunk/; revision=8796
2004-03-19 20:58:32 +00:00
David Welch 9eb9832b02 - Use the miniport services to map the frame buffer.
svn path=/trunk/; revision=8767
2004-03-16 21:11:44 +00:00
David Welch 32a05a4377 - Implemented IOCTL_VIDEO_MAP_VIDEO_MEMORY/IOCTL_VIDEO_UNMAP_VIDEO_MEMORY.
svn path=/trunk/; revision=8766
2004-03-16 21:06:20 +00:00
Art Yerkes c20093e554 Arty's summary:
drivers/fs/cdfs/fsctl: Allocate wide chars.  CD title was being truncated
drivers/fs/vfat/fsctl: Tolerate a zero bytes-per-sector
Patches by Herve Poussineau

svn path=/trunk/; revision=8761
2004-03-16 08:30:28 +00:00
Filip Navara 800b2b0dcf - Set InitData.HwInitDataSize to proper value.
svn path=/trunk/; revision=8733
2004-03-14 19:44:02 +00:00
David Welch ad8ba55cb3 - Complete the irp even on an error.
svn path=/trunk/; revision=8731
2004-03-14 19:25:34 +00:00
David Welch e52b5b410e - Map return codes from the miniport's device i/o control routine from
win32 error code to ntstatus values.

svn path=/trunk/; revision=8727
2004-03-14 18:35:02 +00:00
Filip Navara c5058d5a3c - Fixed handling of IRP_MN_QUERY_BUS_INFORMATION.
- Add basic handling of IRP_MN_QUERY_CAPABILITIES for getting device specific bus address.

svn path=/trunk/; revision=8717
2004-03-14 17:10:43 +00:00
Filip Navara 1bc3d1b4ed - Fixed DPRINT.
svn path=/trunk/; revision=8694
2004-03-13 21:33:16 +00:00
Vizzini 35472661aa turn off skip bit to support VMWare FDC
svn path=/trunk/; revision=8680
2004-03-13 07:28:40 +00:00
Vizzini 007814383b fixed two race conditions with motor power-off; now handles disk change detection and no-disk-in-drive correctly
svn path=/trunk/; revision=8679
2004-03-13 07:04:54 +00:00
Vizzini 2207df1ae4 fixed a couple motor start/stop bugs; fixed a seek offset
svn path=/trunk/; revision=8678
2004-03-13 05:06:49 +00:00
David Welch 410da0d376 - Removed some debugging stuff I checked in by accident.
svn path=/trunk/; revision=8676
2004-03-13 00:41:40 +00:00
David Welch e964a19eb2 - Fixed VPInterruptRoutine definition.
svn path=/trunk/; revision=8675
2004-03-12 23:03:21 +00:00
Filip Navara 7f1a2fa09f - Fixed declaration of DRIVER_OBJECT and friends.
svn path=/trunk/; revision=8664
2004-03-12 19:40:40 +00:00
Filip Navara 5c45ab6ac0 - Support for IRP_MN_QUERY_BUS_INFORMATION and devices on multiple PCI buses.
svn path=/trunk/; revision=8662
2004-03-12 19:40:05 +00:00
Art Yerkes 7b9bc747c8 Added bit counting and inverting functions to address.
Broke out some functions in info.c -- They still don't work properly but
are improving.
Added setting of netmask in datalink/lan.c from the registry, broke out
registry reading function.

svn path=/trunk/; revision=8661
2004-03-12 04:21:59 +00:00
Vizzini 29d063166b - Added arc path support
- Fixed disk change support
 - Fixed the priority boosts to be saner
 - Fixed some start/stop motor timing bugs
 - Figured out the Real Deal with Model 30 support (I hope...)
 - Cleaned up DMA init a bit
 - Improved return values, freed things on fail, etc
 - General code cleanup

svn path=/trunk/; revision=8660
2004-03-12 03:36:32 +00:00
Vizzini abc17a4830 Lots of code clean-up; correctly copies files of any size to/from disk;
clean under prefast, lint, verifier, and checked win2k

svn path=/trunk/; revision=8657
2004-03-11 23:12:03 +00:00
Vizzini 8e37499a90 Fixed a length calculation bug introduced with transfer-splitting code
--> big file transfers work now

svn path=/trunk/; revision=8638
2004-03-11 07:01:58 +00:00
Vizzini 8438bc1293 fixed CHS computation bug
svn path=/trunk/; revision=8637
2004-03-11 06:48:22 +00:00
Vizzini 6ef65a3872 - Implement support for split DMA transfers
- Remove assert from CreateClose handler (still doesn't seem to get called
   consistently though)
 - Fixed an off-by-one bug for sector calculation

 --> Medium-sized files transfer to/from disk now

svn path=/trunk/; revision=8636
2004-03-11 06:24:44 +00:00
James Tabor 64c32ff6f4 Turn off debug print out
svn path=/trunk/; revision=8634
2004-03-11 00:05:00 +00:00
Vizzini ab9a6623a2 Properly set the length of the transfer so FastFat won't assert on us
svn path=/trunk/; revision=8627
2004-03-10 20:17:26 +00:00
Vizzini 1984d3c175 Disabled disk-change notification because it was breaking on Model 30 controllers; read/write is starting to work as a result
svn path=/trunk/; revision=8626
2004-03-10 19:35:04 +00:00
Filip Navara 7f3f39dc20 - Fixed bug in VideoPortSetBusData.
svn path=/trunk/; revision=8621
2004-03-10 16:10:13 +00:00
Andrew Greenwood a306af21c2 *Major soundcard support update*
ReactOS remains silent for now, but for anyone wishing to further work on the Sound Blaster driver and/or mmdrv.dll, this should help immensely :)

- Imported midimap from WINE
- Imported wavemap from WINE
- Imported msacm from WINE (32-bit only)
- Minor changes to mpu401
- Basic IRP_MJ_WRITE dispatch routine for sndblst.sys (receives buffers, does nothing else.)
- Added various WINE headers to include\wine

svn path=/trunk/; revision=8620
2004-03-10 15:22:45 +00:00
Filip Navara 9c45d9475e - Uncomment NDEBUG.
svn path=/trunk/; revision=8612
2004-03-09 18:56:32 +00:00
Filip Navara daae8270b7 - Implemented VideoPortQueryPerformanceCounter and all video port spinlock functions.
- Added more debug info to VideoPortGetAccessRanges.

svn path=/trunk/; revision=8611
2004-03-09 17:28:49 +00:00
Filip Navara bea52f9dbe - Minor correction to DMA routines.
svn path=/trunk/; revision=8606
2004-03-09 14:16:39 +00:00
Filip Navara dbce1b766d - Do the real memory allocation in context of CSRSS process. Suggested by David Welch.
svn path=/trunk/; revision=8599
2004-03-08 21:45:39 +00:00
Filip Navara 03e7c82dd2 - Mask out VIDEO_MEMORY_SPACE_DENSE flag, because it's specific to ALPHA processors. This gets Matrox Mystique driver working.
svn path=/trunk/; revision=8597
2004-03-08 20:54:10 +00:00
David Welch 2b4fa805eb - Hacky implementation of some dma related functions.
svn path=/trunk/; revision=8596
2004-03-08 20:27:33 +00:00
Filip Navara a8d7de6a74 - Fixed DPRINT.
svn path=/trunk/; revision=8592
2004-03-08 14:31:49 +00:00
Art Yerkes 0c76856d9c More support for IOCTL_TCP_QUERY/SET_INFORMATION_EX
Connected ControlChannel handle type.
Allowed empty EaInfo in create -> ControlChannel.
Added TDI entity for interfaces.
Fixed IPSnmpInfo interface number report.
Fixed returned buffer size report in DispTdiQueryInformationExComplete
Added IPROUTE_ENTRY struct.

What works:
tcpquery lists three entities, two builtin and one IF_ENTITY
tcpquery -i reports 1 interface and 1 address for me (addr=127.0.0.1)

TODO:
Type information for each entity (only two builtin entities are supported now)
Interface info out (IFEntry)
Route info in/out (IPRouteEntry)

svn path=/trunk/; revision=8588
2004-03-08 10:20:18 +00:00
Eric Kohl 11cc5733d3 Return unique IndexNumber.
Minor cleanup.

svn path=/trunk/; revision=8586
2004-03-08 08:51:26 +00:00
Filip Navara 17ad90f8d0 - Implement RtlGetVersion.
- Rewrite VideoPortGetVersion using RtlGetVersion.
- Added debugging messages to InternalMapMemory.
- Changed VideoPortAllocateBuffer back to PagedPool.

svn path=/trunk/; revision=8585
2004-03-08 08:05:27 +00:00
James Tabor 8311b47fe4 Finish changes to VideoPortGetVersion
svn path=/trunk/; revision=8582
2004-03-08 04:41:20 +00:00
James Tabor 2f224f7360 Change NonPagedPool for AllocateBuffer and implemented GetVersion for David Welch.
svn path=/trunk/; revision=8581
2004-03-08 04:09:02 +00:00
Filip Navara 8aad973151 - Changed DbgPrint to DPRINT in DriverEntry.
svn path=/trunk/; revision=8576
2004-03-07 20:33:25 +00:00
Hartmut Birr 68ddb0bcdd - Pre initialized the resulting transfer length for requests which are split.
svn path=/trunk/; revision=8570
2004-03-07 19:53:08 +00:00
Hartmut Birr ec2daabaf9 - Changed the dma capability detection code.
- Enabled DMA transfers by default.
- Implemented DMA transfer for atapi devices (CD rom drives).

svn path=/trunk/; revision=8569
2004-03-07 19:48:45 +00:00
David Welch 75860969fe - Added an implemention of VideoPortGetProcAddress
- ati2mtag calls VideoPortGetAccessRanges with *DeviceId == 0 so treat
that as matching an device id.
- Return STATUS_SUCCESS from VideoPortSetTrappedEmulatorPorts even though
the data is ignored.

svn path=/trunk/; revision=8560
2004-03-07 04:43:55 +00:00
David Welch 30aec6e5f7 - Added stubs for some of the new w2k/xp functions.
svn path=/trunk/; revision=8552
2004-03-06 22:25:22 +00:00
James Tabor fa714393ca Started VideoPortGetAgpServices, Allocate and ReleaseBuffer.
svn path=/trunk/; revision=8548
2004-03-06 08:39:06 +00:00
Filip Navara f1d20bbf54 2004-03-06 Filip Navara <xnavara@volny.cz>
* drivers/video/videoprt/int10.c (VideoPortInt10):
	Print more debug informations.
	* drivers/video/videoprt/videoprt.c (VideoPortInitialize):
	Prevent conflicts when more miniport drivers are loaded.
	(VideoPortGetDeviceBase, VideoPortMapMemory, InternalMapMemory):
	Change way of reporting error to prevent reporting error when
	the resources were successfully mapped.
	(VideoPortDDCMonitorHelper): Add stub.
	(VidDispatchDeviceControl): Allocate memory from NonPagedPool.
	Add debug messages.
	* drivers/video/videoprt/videoprt.def (VideoPortDDCMonitorHelper):
	Add export.
	* drivers/video/videoprt/videoprt.edf (VideoPortDDCMonitorHelper):
	Ditto.
	* include/ddk/winddi.h (ENG_SYSTEM_ATTRIBUTE): Declare.
	* include/win32k/driver.h (DRIVER_FindMPDriver): Change declaration.
	* subsys/win32k/eng/surface.c (EngModifySurface): Implement.
	* subsys/win32k/misc/driver.c (DRIVER_FindMPDriver):
	Modify to open specific miniport driver depending on parameter.
	* subsys/win32k/objects/dc.c (GetRegistryPath):
	Add parameter to specify display driver number.
	(FindDriverFileNames): Ditto.
	(SetupDevMode): Ditto.
	(IntCreateDC): Correct DPRINT.
	(IntCreatePrimarySurface): Change to try more miniport drivers
	before giving up.
	* subsys/win32k/stubs/stubs.c (HeapVidMemAllocAligned, VidMemFree,
	EngDitherColor, EngQuerySystemAttribute): Add stubs.
	* subsys/win32k/win32k.edf (EngDitherColor, EngQuerySystemAttribute,
	HeapVidMemAllocAligned, VidMemFree, EngModifySurface):
	Add exports.
	* subsys/win32k/win32k.def: Ditto.

svn path=/trunk/; revision=8547
2004-03-06 01:22:04 +00:00
Filip Navara 1f2169eb29 2004-04-04 Filip Navara <xnavara@volny.cz>
* drivers/net/afd/afd/dispatch.c (AfdDispGetName): Implement.
	* drivers/net/afd/include/afd.h (TdiQueryInformation): Declare.
	* drivers/net/tcpip/tcpip/dispatch.c (DispTdiQueryInformation):
	Partially implement for TDI_QUERY_ADDRESS_INFO request.
	* drivers/net/tcpip/transport/tcp/tcp.c (TCPiBuildPacket):
	Don't use variable name NdisBuffer, because it causes conficts.

svn path=/trunk/; revision=8543
2004-03-05 00:48:11 +00:00
David Welch c77f9d0572 - Fix for crash on gui exit caused by trying to free an uninitialized
variable.

svn path=/trunk/; revision=8540
2004-03-04 23:11:43 +00:00
David Welch 45a3ee5da7 - Reenable the screen after setting the mode.
svn path=/trunk/; revision=8539
2004-03-04 23:01:19 +00:00
Casper Hornstrup 318a90741d 2004-03-04 Casper S. Hornstrup <chorns@users.sourceforge.net>
* drivers/net/tcpip/tcpip/i386: New directory.
	* drivers/net/tcpip/tcpip/i386/checksum.S: New file.
	* drivers/net/tcpip/notes.txt: New file.
	* drivers/net/afd/afd/dispatch.c (AfdDispCompleteListen): Signal ACCEPT
	network event.
	(AfdDispEventSelect): Reference event handle.
	* drivers/net/afd/afd/tdi.c (TdiListen): Remove unused event.
	Move Iosb and RequestConnectionInfo to AFD_LISTEN_REQUEST structure.
	* drivers/net/afd/include/afd.h (AFDFCB): Replace EventObjects with
	EventObject of type PKEVENT.
	* drivers/net/tcpip/makefile (ARCH_OBJECTS): New variable.
	(TARGET_OBJECTS): Add ARCH_OBJECTS.
	* drivers/net/tcpip/include/address.h (AddrCloneAddress): New prototype.
	* drivers/net/tcpip/include/checksum.h (ChecksumFold, csum_partial): New
	prototype.
	(TCPv4Checksum): New macro.
	(CorrectChecksum): Rename to IPv4CorrectChecksum.
	(TCPv4CorrectChecksum): New macro.
	* drivers/net/tcpip/include/ip.h (IPv4_DF_MASK): New constant.
	* drivers/net/tcpip/include/tcp.h (TCP_XXX): Correct constants.
	(TCPCreateSegment, TCPFreeSegment, TCPAddSegment): Prototype.
	* drivers/net/tcpip/include/titypes.h (TCP_SEND_REQUEST): Add SequenceNumber
	and AckNumber.
	(TCP_SEGMENT): New structure.
	(CONNECTION_ENDPOINT): Add ListenRequest and ReceivedSegments.
	* drivers/net/tcpip/network/transmit.c (SendFragments): Release memory
	for Data on failure.
	* drivers/net/tcpip/tcpip/address.c (AddrCloneAddress): New function.
	* drivers/net/tcpip/tcpip/checksum.c (ChecksumFold): Factor out folding
	from ChecksumCompute.
	* drivers/net/tcpip/tcpip/dispatch.c (DispTdiListen): Support asynchronous
	operation.
	* drivers/net/tcpip/tcpip/fileobjs.c (FileOpenAddress): Don't cast to
	PTDI_ADDRESS_IP.
	Initialize ReceivedSegments.
	* drivers/net/tcpip/tcpip/routines.c (DisplayIPHeader): New function.
	(DisplayIPPacket): Call DisplayIPHeader().
	(DisplayTCPHeader): Change format strings.
	* drivers/net/tcpip/transport/tcp/tcp.c (IPIdentification,
	TCPSegmentList): Add.
	(TCPCreateSegment, TCPFreeSegment, TCPAddSegment,
	TCPBuildAndTransmitSendRequest2, TCPiSelectISS, TCPiReceiveListen,
	TCPiReceiveSynSent, TCPiReceiveSynReceived, TCPiReceiveData): New
	function.
	(TCPiBuildPacket): Build segment.
	(TCPStartup): Initialize TCPSegmentList.
	(TCPShutdown): Cleanup TCPSegmentList.

svn path=/trunk/; revision=8537
2004-03-04 20:45:39 +00:00
Filip Navara a2f24f38dc - Cleaned up the Boot Video driver.
- Replaced most of the magic numbers by defines.
- Changed the video mode setting to directly program the VGA registers instead of using Ke386CallBios.
- Properly map the video memory.

svn path=/trunk/; revision=8534
2004-03-04 18:55:09 +00:00
Filip Navara 499908b04f - Implemented VideoPortEnableInterrupt and VideoPortDisableInterrupt.
svn path=/trunk/; revision=8532
2004-03-04 18:51:58 +00:00
Filip Navara eab00ba2a1 - Changed Video Mode setting routines to directly modify VGA registers instead on relying on Int 0x10 services.
- Removed unused code.

svn path=/trunk/; revision=8531
2004-03-04 18:49:58 +00:00
Filip Navara 1849adaa6b CVS maintaince
svn path=/trunk/; revision=8530
2004-03-04 18:45:16 +00:00
Gunnar Dalsnes 3c737e0e68 disable apc's for work items
svn path=/trunk/; revision=8526
2004-03-04 01:29:24 +00:00
Filip Navara daaf2a72b8 - Build AFD, TCPIP and TDI with w32api headers.
- Removed the old TDI headers from include/net.

svn path=/trunk/; revision=8508
2004-03-02 18:18:15 +00:00
Vizzini b5647b11fd First import of in-progress floppy driver replacement. Still needs some
debugging and feature improvements, and the kernel needs a bit of work to
get this driver loading on ReactOS.

svn path=/trunk/; revision=8495
2004-03-01 06:37:26 +00:00
Hartmut Birr 772d5765b7 - Fixed the returned values for a data underrun.
- Fixed the write count in packet interrupts.

svn path=/trunk/; revision=8492
2004-02-29 22:01:21 +00:00
Hartmut Birr b859b0b5db - Started implementation of busmaster dma.
- Splited the interrupt handlers.
- Don't handle 6 byte mode sense requests.

svn path=/trunk/; revision=8474
2004-02-29 12:27:52 +00:00
Hartmut Birr 72986b727d - Rewrote parts of the capability detection code.
svn path=/trunk/; revision=8473
2004-02-29 12:26:09 +00:00
Hartmut Birr 9a5bc1ce43 - Don't retry, if the request fails with SRB_STATUS_INVALID_REQUEST.
svn path=/trunk/; revision=8464
2004-02-29 11:21:58 +00:00
Hartmut Birr fc1748325f - Implemented ScsiPortGetPhysicalAddress for Srb buffers.
svn path=/trunk/; revision=8463
2004-02-29 11:19:21 +00:00
Casper Hornstrup 47306399fd 2004-02-25 Casper S. Hornstrup <chorns@users.sourceforge.net>
* drivers/net/tcpip/datalink/loopback.c: Reformat.
	* drivers/net/tcpip/network/neighbor.c: Ditto.
	* drivers/net/tcpip/tcpip/info.c: Ditto.
	* drivers/net/tcpip/transport/datagram/datagram.c: Cleanup.
	If there is an out-of-resources situation, don't transmit the
	datagram out of order.

svn path=/trunk/; revision=8381
2004-02-25 20:27:56 +00:00
James Tabor 5e2693380d Partial implementation of VideoPortGetVgaStatus, needs testing
svn path=/trunk/; revision=8366
2004-02-25 05:38:33 +00:00
James Tabor 11f62ff83b Started implementation of VideoPortGetVgaStatus
svn path=/trunk/; revision=8365
2004-02-25 03:05:27 +00:00
James Tabor f687066559 Started implementation of VideoPortGetVgaStatus
svn path=/trunk/; revision=8364
2004-02-25 02:59:55 +00:00
Filip Navara 576e14972b - Advancing pointer inside loop makes more sense than checking the same structure ModeCount times.
svn path=/trunk/; revision=8323
2004-02-22 22:19:48 +00:00
Filip Navara cc1c862dae - Added more debugging messages for video port driver Int 10 services.
svn path=/trunk/; revision=8322
2004-02-22 22:19:42 +00:00
Casper Hornstrup cc3221be2c 2004-02-22 Casper S. Hornstrup <chorns@users.sourceforge.net>
* config (REGRESSIONTESTS): Add.
	* rules.mak (REGTESTS_PATH_INC): Add.
	* drivers/net/tcpip/makefile: Support regression tests.
	* drivers/net/tcpip/tcpip/main.c: Prepare regression tests.
	* hal/halx86/Makefile: Rename TARGET_LIBPATH to TARGET_IMPLIBPATH.
	* regtests/kmregtests/driver.c (KMRegTestsRegister): Add.
	(KMRegTestsRun): Move call to InitializeTests() and RegisterTests() to
	DriverEntry().
	(KMRegTestsDispatch): Support IOCTL_KMREGTESTS_REGISTER.
	* regtests/kmregtests/kmregtests.h (IOCTL_KMREGTESTS_REGISTER): Define.
	* tools/config.mk: Define REGTESTS if REGRESSIONTESTS = 1.
	* tools/helper.mk: Support module private regression tests.
	(TARGET_LIBPATH): Rename to TARGET_IMPLIBPATH.
	(TARGET_LIBPATH, TARGET_REGTESTS): Add.
	* tools/mkconfig.c: Support REGTESTS.
	* tools/regtests.c (umstubfile, kmstubfile): Add.
	(is_file_changed, write_file_if_changed): Add.
	(KMSTUB): Add.
	(HELP): Mention -u and -k switches.
	(main): Parse -u and -k switches.
	* drivers/net/tcpip/tests: New directory.
	* drivers/net/tcpip/tests/.cvsignore: New file.
	* drivers/net/tcpip/tests/Makefile: Makefile.
	* drivers/net/tcpip/tests/tests: New directory.
	* drivers/net/tcpip/tests/tests/.cvsignore: New file.

svn path=/trunk/; revision=8298
2004-02-22 09:59:17 +00:00
Filip Navara c2458a1a4c CVS maintenance
svn path=/trunk/; revision=8288
2004-02-21 13:56:36 +00:00
Hartmut Birr 5b5028fcb9 - Fixed a wrong index, which resulted in writing over the end of an allocated buffer.
svn path=/trunk/; revision=8284
2004-02-21 12:58:49 +00:00
Filip Navara bb25722258 - Revert the last change, because it really doesn't help.
- Don't detect mouse on COM2 by default.

svn path=/trunk/; revision=8264
2004-02-19 17:54:05 +00:00
Filip Navara d3753b2d2f - Attempt to avoid interaction with kernel debugging over serial port.
svn path=/trunk/; revision=8246
2004-02-18 16:00:56 +00:00
Filip Navara 7595e479e5 - Work on serial mouse detection to fix bug #198.
svn path=/trunk/; revision=8221
2004-02-17 18:01:59 +00:00
Hartmut Birr f273240d3f - Used a different buffer to get the mode informations.
svn path=/trunk/; revision=8200
2004-02-15 19:27:36 +00:00
Art Yerkes 8c9fd64030 Edited includes for new tcp ioctl needed by iphlpapi.
tcpioctl.h: new
I resolved a conflict between iptypes, structs and nspapi regarding some
core structures.
afd.h: removed definitions needed by both user land and kernel land.
tdiinfo.h: added needed definitions.

svn path=/trunk/; revision=8173
2004-02-14 21:27:35 +00:00
Filip Navara f2bfe59541 sizeof(SENSE_BUFFER_SIZE) -> SENSE_BUFFER_SIZE
svn path=/trunk/; revision=8166
2004-02-14 12:29:33 +00:00
Filip Navara 9a8ead9623 - Eliminate function pointer typecasts in csqtest
- Move the csq.h header to the right place
- Added .cvsignore files

svn path=/trunk/; revision=8163
2004-02-13 09:37:11 +00:00
Filip Navara b00626d582 - STDCALL/STDCALL_FUNC usage fixes
svn path=/trunk/; revision=8133
2004-02-10 18:11:12 +00:00
Filip Navara 8ccf098ee6 reactos/drivers/net/afd/afd/afd.c (AfdDispatch): Correctly set
Irp->IoStatus.Information.
(AfdUnload): Make it STDCALL.
(DriverEntry): Don't cast function pointers.
reactos/drivers/net/afd/afd/dispatch.c (AfdDispGetName): New function, still
incomplete.
reactos/drivers/net/afd/include/afd.h (AfdDispGetName): Declare.
reactos/drivers/net/tcpip/tcpip/main.c (TiDispatchOpenClose):
Use STDCALL instead of STDCALL_FUNC.
(TiUnload): Make it STDCALL.
(DriverEntry): Don't cast function pointers.
reactos/drivers/net/tcpip/transport/tcp/tcp.c (TCPConnect):
Don't free the NDIS buffer, it's already done on another place and return
STATUS_PENDING to avoid completing the Irp two times.
reactos/lib/msafd/misc/stubs.c (WSPGetSockName, WSPGetPeerName):
Moved to ...
reactos/lib/msafd/misc/dllmain.c (WSPGetSockName, WSPGetPeerName):
... here, direct the calls to afd.sys.

svn path=/trunk/; revision=8132
2004-02-10 17:12:42 +00:00
Filip Navara aebff275f5 - Eliminate function pointer typecasts
svn path=/trunk/; revision=8130
2004-02-10 16:22:57 +00:00
Vizzini 28c16df7d2 Added an unload handler for easier testing
svn path=/trunk/; revision=8125
2004-02-10 02:54:14 +00:00
Vizzini f9d689b644 - Updated CSQ library to use new kmlibrary target type
- Updated includes in csq.c
 - Added IPv6 ethertype in lan.h
 - Fixed a typo in ip.c
 - Added csqtest driver for testing cancel-safe queues

svn path=/trunk/; revision=8107
2004-02-09 06:59:01 +00:00
Vizzini 72d09d2bb0 ReactOS implementation of cancel-safe queue library
svn path=/trunk/; revision=8093
2004-02-08 17:51:32 +00:00