mirror of
https://github.com/clang-retro/win32-sdk.git
synced 2026-11-28 13:19:24 -08:00
* kernel/include: write the WDM and DirectX headers without DDK text The kernel headers came from tools/gen-vxd-headers.py --wdm, which copied names, values and layouts from the 2000 and XP DDKs. The DDKs cannot be passed on, so these headers now come from sources that can: - 1394.h, dxmini.h and hidport.h are written from Microsoft's published driver documentation (the code samples are MIT: see kernel/include/LICENSE-docs-code.txt). - ddrawint.h, dvp.h and d3dnthal.h come from ReactOS (public domain), with the D3DNTHAL_DP2* command stream and the device capabilities of d3dnthal.h written from the documentation. The values and layouts were checked locally against the 2000, XP and 2003 DDKs; no DDK file is in the repository. The checks found that mingw-w64's hidclass.h gives placeholder values for IOCTL_HID_READ_REPORT and the other minidriver codes, so hidport.h now replaces them. 1394.h has only what the documentation describes: ASYNC_PACKET, ISOCH_HEADER, NETWORK_CHANNELS, NODE_DEVICE_EXTENSION, BANDWIDTH_ALLOCATION, IEEE1394_SCATTER_GATHER_HEADER and SET_LOCAL_HOST_PROPS1 and 4 are gone, and their layout checks with them. The COM layout checks of dvp.c run in C only. gen-vxd-headers.py --wdm now stops, so that it cannot write over the headers. NOTICE.md, the README and the script comments say where the headers come from. Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRQpCyeZpKgWB2r7xwi * miniport/include: make the 9x SCSI miniport headers from mingw-w64 The Windows 9x SCSI miniport headers came from gen-vxd-headers.py --miniport, which copied them from the 95, 98 and ME DDKs. Now: - srb.h is mingw-w64's <ddk/srb.h> (public domain), with the Windows NT 3.51 layouts of PORT_CONFIGURATION_INFORMATION (124 bytes) and HW_INITIALIZATION_DATA (76 bytes) that SCSIPORT.PDR takes. - miniport.h uses mingw-w64's <ntdef.h> and <ddk/miniport.h>, and adds the PCI, EISA and MCA bus data (PCI from the PCI specification and Microsoft's documentation, EISA from mingw-w64's public domain wdm.h). - scsi.h is mingw-w64's <ddk/scsi.h> after this srb.h. miniport.c and srb.c check every layout as before. scsi.c keeps the 290 of 700 checks whose names and layouts mingw-w64 shares: the others are the old DDKs' spellings and mode page layouts, which the SCSI standard and mingw-w64 do not have. The CDB checks run in C only. The DDK tests pass (85 of 85). gen-vxd-headers.py --miniport now stops. Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRQpCyeZpKgWB2r7xwi --------- Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>