Commit graph

42 commits

Author SHA1 Message Date
Amine Khaldi da140c1ba3 [DDK]
- De-duplicate __GNU_EXTENSION.
- Apply a consistent formatting.

svn path=/trunk/; revision=48514
2010-08-10 20:50:55 +00:00
Amine Khaldi 0fb515fa5b [XDK]
- Introduce some _ANONYMOUS_STRUCT and NONAMELESSUNION based definitions.
[DDK]
- Update XDK generated headers to reflect the recent changes.
- Update some header guards.
- Add some missing new lines at the end of files.
- Fix PUSB_DEVICE_HANDLE guard.
- Introduce some _ANONYMOUS_STRUCT and NONAMELESSUNION based definitions.
[PSDK]
- Update some header guards.
- Add missing new line at the end of driverspecs.h
[NDIS]
- Update the ndis header guard.

svn path=/trunk/; revision=48511
2010-08-10 13:53:10 +00:00
Giannis Adamopoulos d2a89a0c29 [ndis.h]
- Fix compilation with msvc

svn path=/trunk/; revision=48370
2010-07-30 17:05:17 +00:00
Amine Khaldi e297cfa306 [NDIS]
- Move NDIS_HARDWARE_STATUS, GEN_GET_TIME_CAPS, GEN_GET_NETCARD_TIME, NDIS_MEDIA_STATE, NDIS_GUID, NDIS_PM_PACKET_PATTERN, NETWORK_ADDRESS, NETWORK_ADDRESS_LIST, TRANSPORT_HEADER_OFFSET and NDIS_CO_LINK_SPEED from ndis.h to ntddndis.h (where they should belong).
- typedef NDIS_STATUS for ntddndis.h
- Group some related definitions in ndis.h
- Some _ANONYMOUS_* -> __MINGW_EXTENSION conversions.
- Guard some definitions against NDIS_LEGACY_DRIVER.
- Add some missing definitions.
- NDIS_MINIPORT_BLOCK : PVOID  Signature; -> NDIS_OBJECT_HEADER Header;
- Add missing xfilter.h inclusion.
- Add some missing function declarations.
- Convert some function declarations into macros.
- Guard some definitions against NDIS_LEGACY_MINIPORT.

svn path=/trunk/; revision=48229
2010-07-24 13:47:41 +00:00
Amine Khaldi e814e6afe8 [NDIS]
- Guard several definitions against NDIS_SUPPORT_60_COMPATIBLE_API.
- __GNU_EXTENSION -> __MINGW_EXTENSION conversions.
- Group some related definitions.
- Update NDIS_RW_LOCK.
- Improve NDIS_TIMER_FUNCTION.
- Add several missing Ndis* function declarations.
- Guard several definitions against NDIS_LEGACY_DRIVER and NDIS_LEGACY_MINIPORT.
- Convert some function declarations into macros.

svn path=/trunk/; revision=48211
2010-07-23 15:51:54 +00:00
Amine Khaldi 2aa6e09c17 [NDIS]
- Convert NDIS_ERROR_CODE from a typedef to a define.
- Add some missing NDIS_STATUS_* definitions.
- Some _ANONYMOUS_UNION/_ANONYMOUS_STRUCT/__GNU_EXTENSION -> __MINGW_EXTENSION conversions.
- Update NDIS_REQUEST_TYPE and NDIS_PER_PACKET_INFO.
- Guard several definitions against NDIS_LEGACY_DRIVER.
- Improve NDIS_REQUEST.
- Add missing CO_ADDRESS_FAMILY_INFINIBAND, Ndis{Set,Get}PacketCancelId, NDIS_PACKET_{FIRST,LAST}_NDIS_BUFFER and NDIS_PACKET_VALID_COUNTS.
- Group related definitions.
- Update several Ndis* function declarations.
- Add missing NdisInterlocked{Push,Pop}EntryList and NdisGetCurrentSystemTime macros.

svn path=/trunk/; revision=48205
2010-07-23 00:20:13 +00:00
Amine Khaldi 281e92894d [DDK/NDIS]
- Group some related definitions.
- Remove some duplicated NDIS_MINIPORT_MAJOR_VERSION/NDIS_MINIPORT_MINOR_VERSION combinations.
- Add some missing NDIS_LEGACY_DRIVER guards.
- _ANONYMOUS_UNION -> __MINGW_EXTENSION
- Update NDIS_PROCESSOR_TYPE and NDIS_INTERFACE_TYPE.
- Guard NDIS_GENERIC_OBJECT with NDIS_SUPPORT_NDIS6.
- Add missing NDIS_WAN_GET_STATS, NdisAllocateGenericObject, NdisFreeGenericObject, fPACKET_WRAPPER_RESERVED and NDIS_FLAGS_* definitions.
- PNDIS_PACKET_POOL : HANDLE -> NDIS_HANDLE.
- Improve MEDIA_SPECIFIC_INFORMATION
- Some minor formatting.

svn path=/trunk/; revision=48169
2010-07-21 23:32:51 +00:00
Amine Khaldi ec46e3cec9 [DDK/NDIS]
- Add missing ntstatus.h inclusion.
- Group some related definitions.
- Add several missing ones.

svn path=/trunk/; revision=48165
2010-07-21 19:12:14 +00:00
Amine Khaldi b02092777f Reintegrate header-work branch. Important changes include continued work on headers and progress on compiling for ARM.
svn path=/trunk/; revision=47727
2010-06-09 22:24:32 +00:00
Timo Kreuzer dd1c6f7b06 Reintegrate header branch part 1/x
DDKAPI -> NTAPI

svn path=/trunk/; revision=46542
2010-03-29 01:51:11 +00:00
Timo Kreuzer 719200874a Revert r46466 this time for real
svn path=/trunk/; revision=46493
2010-03-27 18:57:56 +00:00
Timo Kreuzer d0701d72b7 Reintegrate header branch
- DDKAPI -> NTAPI
- delete duplicate definitions
- move files to right locations
- Fix Mm64BitPhysicalAddress definition
- Add a number of missing definitions
- add XDK

svn path=/trunk/; revision=46466
2010-03-26 13:50:02 +00:00
Timo Kreuzer cbdf28bb6a [HEADERS]
Reintegrate header-work branch. Thanks to hours of boring work on the ddk headers (Most of it done by Amine Khaldi), we have now a decent set, which is still incomplete but already relatively close to latest WDK. A clean rebuild is recommended.

svn path=/trunk/; revision=46155
2010-03-12 23:16:29 +00:00
Timo Kreuzer 9ea495ba33 Create a branch for header work.
svn path=/branches/header-work/; revision=45691
2010-02-26 22:57:55 +00:00
Timo Kreuzer f8e59069e2 Merge from amd64 branch
37868 Add CONTEXT flags for x64.
39347 Move rtl byteswap functions to wdm.h and add intrinsic definitions.
41030 fix definition of 64bit SLIST_HEADER. winnt.h: add 64bit SLIST_HEADER.
41071 Fix definition of NdisQueryPacketLength.
43447 Fix MmSizeOfMdl prototype.
43777 Fix definition of KdDebuggerNotPresent for gcc, the MS definition is broken, don't know if it's needed that way for msvc.
44178 Fix definition of _CONTEXT.
44491 Add LIST_ENTRY32/64, STRING32/64
44500 Add NT_TIB32/64.
44623 New definition of C_ASSERT and _STATIC_ASSERT using a function prototype. This way we avoid duplicate definition errors like with a typedef and unused function warning like with the extern.
44631 Fix C_ASSERT yet another time.

svn path=/trunk/; revision=44632
2009-12-16 23:39:20 +00:00
Stefan Ginsberg ce5adcdab2 - Remove usage of dllexport for most dlls and drivers -- we use .def/.spec instead.
svn path=/trunk/; revision=42806
2009-08-20 13:45:01 +00:00
Stefan Ginsberg c13c6c8daa - Woops, NDIS_PHYSICAL_MEDIUM got lost somehow... and NDIS_MEDIUM belongs in ntddndis.h too
svn path=/trunk/; revision=42734
2009-08-16 12:53:31 +00:00
Stefan Ginsberg 78d31c85a0 - Remove duplicate ntddndis.h in /psdk/ -- we already have it in /ddk/. Add the duplicated types to the DDK version. Also move NDIS_OBJECT_HEADER over to ntddndis.h from ndis.h as this is where it belongs.
- Remove "ntdd1934.h" -- this header should be named ntdd1394.h. We already have a copy named so, but the old incompatible header wasn't removed.

svn path=/trunk/; revision=42732
2009-08-16 12:37:44 +00:00
Stefan Ginsberg 709b93538f - Leftover from previous commit
svn path=/trunk/; revision=42211
2009-07-25 14:54:31 +00:00
Stefan Ginsberg bb2feeb63e - Fix most of the network stack for msvc (except tcpip and oskittcp)
- Fix calling convention definitions for ntdd8042.h
- Fix msfs' calling convention

svn path=/trunk/; revision=42210
2009-07-25 14:51:56 +00:00
Dmitry Gorbachev 3c44feca52 - Turn a macro into an inline function to avoid a warning.
- Remove a stray acute accent.

svn path=/trunk/; revision=42179
2009-07-24 19:52:05 +00:00
Cameron Gutman 9d9267a4fb - Add TDI_REGISTER_CALLBACK and TDI_PNP_HANDLER
svn path=/trunk/; revision=41228
2009-05-31 17:42:56 +00:00
Cameron Gutman b8460aa949 - Add NDIS_PACKET_STACK and NDIS_BLOCK_INITIALIZER
svn path=/trunk/; revision=41221
2009-05-31 14:42:17 +00:00
Cameron Gutman 623370604d - Add definition of NDIS_TASK_OFFLOAD_HEADER
svn path=/trunk/; revision=41134
2009-05-27 00:33:55 +00:00
Cameron Gutman 82af49e593 - Fix NDIS 3.0 miniport characteristics based on MSDN documentation
- Add NDIS 5.1 miniport characteristics also based on MSDN documentation

svn path=/trunk/; revision=40944
2009-05-16 22:43:25 +00:00
Cameron Gutman 868c747030 - Remove BINARY_COMPATIBLE concept
- We should always use NDIS functions

svn path=/trunk/; revision=40720
2009-04-28 20:42:55 +00:00
Cameron Gutman b9df7bf615 - Fix a typo
svn path=/trunk/; revision=40657
2009-04-22 19:51:29 +00:00
Stefan Ginsberg 9bd2938989 - Remove the remaining system_header from DDK -- this era has now come to an end
svn path=/trunk/; revision=37793
2008-12-01 15:28:54 +00:00
Stefan Ginsberg 67a842b6fe - ACPI: Don't redefine standard DDK types
- TCPIP/IP/TDI/Uniata: Don't use user mode types
- USBDRIVER: Remove a peculiar redefinition of ULONG_PTR
- NDIS: Remove duplicate (and undocumented) types from ndis.h, defined in an internal NDIS header long ago. Also fix some warnings, define UINT as appropriate, and add a clever (not really) workaround for a gcc/msvc incompatibility. -- For some obnoxious reason msvc is fine with redeclaring types compatibly, while gcc treats it as an error. PSDK and DDK require this, so we need...extended header checks.

svn path=/trunk/; revision=37688
2008-11-27 15:02:47 +00:00
Cameron Gutman 7beefc5606 - Merge aicom-network-fixes up to r36740
svn path=/trunk/; revision=36741
2008-10-13 01:07:37 +00:00
Timo Kreuzer c9b3cf161b Merge 34739 - 34769, 34796 - 34905, 34916 - 34967, 34970 - 35135, 35167, 35325, 35326, 35443 - 35506, 35510 - 35546, 35587, 35616,
35644 from ros-amd64-bringup branch:

- Update AMD64 intrinsic Interlocked functions
- Add _InterlockedExchange64 to intin_x86.h
-Fix definitions of IsBadHugeReadPtr, IsBadHugeWritePtr, IsBadReadPtr, IsBadStringPtrA, IsBadStringPtrW, IsBadWritePtr and SetProcessWorkingSetSize
- Define CONTEXT and XMM_SAVE_AREA32, taken from WINE
- Include _M_AMD64 for defintitions in ioaccess.h
- Add Interlocked intrinisc definitions for AMD64 platform
- Add KI_USER_SHARED_DATA and KeGetCurrentIrql() prototype to winddh
- Fix prototypes for KfAcquireSpinLock, KfReleaseSpinLock, KeAcquireInStackQueuedSpinLock and KeReleaseInStackQueuedSpinLock on amd64
- Fix rotl declaration, add mysteriously missing rotr.
winnt.h:
- Fix CONTEXT_AMD64 and friends, add various constants.
- Define RUNTIME_FUNCTION, RtlCaptureContext, RtlRestoreContext, RtlAddFunctionTable, RtlInstallFunctionTableCallback, RtlDeleteFunctionTable.
- Fix definitions for EXCEPTION_RECORD and friends to support amd64.
- Define IMAGE_THUNK_DATA64 and related constants.
- Define IMAGE_TLS_DIRECTORY64 and related constants.
- Remove WINEisms
- Remove multiple declarations and minor fixes.
- Fix KESEG0_BASE for amd64
- Fix definition for NdisCopyLookaheadData on amd64
- Only add function prototypes if NO_INTERLOCKED_INTRINSICS is defined
- Move the inlined InterlockedAnd/Or from rtl to winbase.h and rename it to InterlockedAnd/Or_Inline
- Fix TreeView_EnsureVisible macro.
- Add missing 64 bit intrinsic Interlocked functions
- Fix _InterlockedDecrement64
- Fix InterlockedExchangeAddSizeT
- Fix __writecrx instrinsics
- Fix ExQueryPoolBlockSize prototype
- Make KI_USER_SHARED_DATA and IMAGE_ORDINAL_FLAG64 a ULONGLONG
- Fix definition if IMAGE_OPTIONAL_HEADER64
- Add KPCR structure
- Add __readcrx intrinsics
- Ad some definitions to winddk.h
- Add a field for a DbgPrint function pointer to the ROS_LOADER_PARAMETER_BLOCK for early debug prints in ntoskrnl
- Update KPCR and KIPCR
- Add KeGetPcr() and update KeGetCurrentProcessorNumber 
- Fix SECURITY_DESCRIPTOR_RELATIVE and KDPC_DATA
- Implement byteswap intrinsics
- Add macro definitions for KeQuerySystemTime, KeQueryTickCount and KeQueryInterruptTime to ddk
- Add NtCurrentTeb inline function
- Update amd64 prototypes for KeGetCurrentIrql, KfRaiseIrql, KfLowerIrql, KeRaiseIrqlToDpcLevel, KeRaiseIrqlToSynchLevel, KeLowerIrql, KeRaiseIrql
- Implement __readcr8, __writecr8, __lidt and __sidt intrinsics.
- Implement KeGetCurrentIrql as intrinsic.
- Make KeGetCurrentIrql, KeLowerIrql, KfRaiseIrql, KeRaiseIrql, KeRaiseIrqlToDpcLevel and KeRaiseIrqlToSynchLevel intrinsics as in the WDK 2008.
- Fix _interlockedbittest intrinsics
- Fix __readmsr and __writemsr on amd64
- Fix __readgsqword, it was using a long internally. Add volatile keyword to segment addressing intrinsics. Add "memory" to clobber list on all those that do write.
- Merge __readcr and __writecr x86 / x64 definitions, because they are the same. Implement __readdr and __writedr for x64.
- __readcr3() returns an unsigned __int64, fix x86 MmGetPageDirectory accordingly.


svn path=/trunk/; revision=35646
2008-08-25 21:57:13 +00:00
Art Yerkes c501d8112c Create a branch for network fixes.
svn path=/branches/aicom-network-fixes/; revision=34994
2008-08-01 11:32:26 +00:00
Magnus Olsen 6c16e66402 implemented NdisScheduleWorkItem writen by me and arty
svn path=/trunk/; revision=32750
2008-03-22 22:11:54 +00:00
Magnus Olsen 9797b5eeb0 add a missing struct NDIS_WORK_ITEM and missing prototype NdisScheduleWorkItem
svn path=/trunk/; revision=32749
2008-03-22 20:49:46 +00:00
Magnus Olsen 9a08ab6b7c Fixing a typo in ndis rename NdisGetSystemUptime to NdisGetSystemUpTime
svn path=/trunk/; revision=32747
2008-03-22 09:18:21 +00:00
ReactOS Portable Systems Group 23539081bb A couple of header fixes to get all the FreeLDR-loaded boot drivers to compile and link.
FreeLDR now stops at ArmPrepareForReactOS, when we get to enable the MMU, Caches and other such fun stuff.
Bring-up now really starts!

svn path=/trunk/; revision=32233
2008-02-09 00:59:05 +00:00
Hervé Poussineau 434c242504 Add NdisMIndicateReceivePacket
svn path=/trunk/; revision=29322
2007-10-01 07:34:43 +00:00
Thomas Bluemel e32b29f0a0 Fix the NdisQueryBufferOffset and the ARGUMENTS_PRESENT macro
svn path=/trunk/; revision=25566
2007-01-21 19:44:42 +00:00
Thomas Bluemel a8897783d7 Convert NdisQueryPacket to an inline function (The DDK also defines it as an inline function). Should fix some warnings with GCC4.2
svn path=/trunk/; revision=25563
2007-01-21 18:49:10 +00:00
Thomas Bluemel 73c2dc5053 Some header fixes
svn path=/trunk/; revision=24454
2006-10-08 20:28:03 +00:00
Alex Ionescu 0b57564353 - Some more IFS/DDK compatibility fixes.
svn path=/trunk/; revision=21318
2006-03-16 17:10:05 +00:00
Ged Murphy cb4308061a move crt, ddk and GL includes
svn path=/trunk/; revision=21129
2006-02-17 23:20:14 +00:00