Commit Graph
323 Commits
Author SHA1 Message Date
Cameron Gutman e230289f94 - Fix adapter failure when a network address is not specified in the registry
- As a bonus, it also fixes OID_802_3_PERMANENT_ADDRESS

svn path=/trunk/; revision=41583
2009-06-23 12:41:14 +00:00
Cameron Gutman 55b816a7c4 - Fix a bug that caused translations of NdisParameterInteger values into unicode strings to produce bad results
- Fix a bug that caused NdisParameterMultiString values to be written to the registry incorrectly

svn path=/trunk/; revision=41522
2009-06-22 01:10:58 +00:00
Cameron Gutman 12b34a994b - Partial rewrite of NdisReadConfiguration
- It now determines the parameter type based on the key instead of the ParameterType passed by the caller (documented on MSDN)
 - It also always sets (*ParameterValue)->ParameterType to NdisParameterInteger when reading an integer or hex integer value (documented on MSDN)
 - This will fix miniport drivers that supply a bogus ParameterType value because it is ignored by NDIS on NT

svn path=/trunk/; revision=41521
2009-06-22 00:49:06 +00:00
Cameron Gutman 12adb28b86 - Fix 2 typos
svn path=/trunk/; revision=41463
2009-06-19 07:34:34 +00:00
Cameron Gutman 1cde39c156 - Report that we are NDIS 5.1
svn path=/trunk/; revision=41462
2009-06-19 06:53:58 +00:00
Cameron Gutman cf30be51fb - Big debugging update
- Also fix some little bugs and reduce code duplication

svn path=/trunk/; revision=41461
2009-06-19 06:47:00 +00:00
Cameron Gutman 02b61191c8 - Make CancelId a LONG
svn path=/trunk/; revision=41460
2009-06-19 05:12:20 +00:00
Stefan Ginsberg 3d64a589fb - Do not pass gcc and ld flags to other tools
svn path=/trunk/; revision=41448
2009-06-18 18:18:57 +00:00
Cameron Gutman e2662e4df0 - Make NdisGeneratePartialCancelId safe by using Interlocked functions
svn path=/trunk/; revision=41443
2009-06-18 02:24:19 +00:00
Stefan Ginsberg 88e9b2a513 - In Win32 DBG is defined to 0 for a non-debug build and to 1 for a debug build. In ReactOS we do this slightly different: DBG is correctly defined to 1 for debug, but not defined at all on non-debug/release build. Because gcc is awesome we can then check for debug compilation with both #ifdef DBG and #if DBG (error free! yay gcc!), and so we have mixed usage all over the tree.
- Fix this by defining DBG on non-debug build too and deprecate all usage of #ifdef DBG.

svn path=/trunk/; revision=41436
2009-06-17 12:44:05 +00:00
Cameron Gutman 7c65e049ea - Implement NdisIMGetBindingContext and NdisIMGetDeviceContext
svn path=/trunk/; revision=41405
2009-06-14 05:42:30 +00:00
Cameron Gutman a06e09c9ea - Header cleanup
svn path=/trunk/; revision=41401
2009-06-13 05:51:44 +00:00
Cameron Gutman 78f0b85fae - Implement NdisIMCopySendPerPacketInfo and NdisIMCopySendCompletePerPacketInfo
svn path=/trunk/; revision=41400
2009-06-13 05:37:16 +00:00
Cameron Gutman 166fb4de72 - Implement NdisGeneratePartialCancelId
svn path=/trunk/; revision=41399
2009-06-13 05:25:54 +00:00
Cameron Gutman 7b18ba471e - Implement NdisCancelSendPackets
svn path=/trunk/; revision=41388
2009-06-11 23:53:23 +00:00
Stefan Ginsberg 4d52a6e737 - MINIPORT_CONFIGURATION_CONTEXT must be allocated from nonpaged pool as it contains a spinlock
svn path=/trunk/; revision=41387
2009-06-11 23:45:59 +00:00
Cameron Gutman 4ceaa89fbd - Check to see that the packet status isn't NDIS_STATUS_RESOURCES before forwarding the packet descriptor to the ReceivePacketHandler
svn path=/trunk/; revision=41349
2009-06-08 09:45:13 +00:00
Cameron Gutman b59d119c6c - Rewrite MiniQueryInformation so it creates a NDIS_REQUEST and passes it to MiniDoRequest for processing to reduce code duplication
- Call MiniportCoRequest in connection-oriented miniports
 - Now our NDIS loads all the way to the ASSERT for unsupported media on XP

svn path=/trunk/; revision=41348
2009-06-08 03:12:03 +00:00
Cameron Gutman 3f12788efc - Fix our handler checks
- Now XP's intermediate miniport drivers can load on ROS's NDIS
 - More work still needs to be done to get them working though

svn path=/trunk/; revision=41346
2009-06-08 02:23:47 +00:00
Cameron Gutman f088b72ab8 - Register the adapter shutdown handler if it is specified in the miniport characteristics
svn path=/trunk/; revision=41345
2009-06-08 01:14:19 +00:00
Cameron Gutman 68fef5356a - Revert r41287
svn path=/trunk/; revision=41289
2009-06-04 20:11:01 +00:00
Cameron Gutman 7445880f25 - Fix the map register count check
svn path=/trunk/; revision=41287
2009-06-04 18:00:17 +00:00
Cameron Gutman 64ef1907f0 - Export NdisFreeToBlockPool
svn path=/trunk/; revision=41272
2009-06-03 23:51:35 +00:00
Cameron Gutman 84594fb342 - Remove an incorrect comment (I wasn't thinking when I wrote it ;))
- Add an ASSERT for an unhandled case

svn path=/trunk/; revision=41265
2009-06-03 01:48:47 +00:00
Cameron Gutman 70a581c537 - Enable the code in NdisSetTimerEx
- Add a debug print

svn path=/trunk/; revision=41258
2009-06-02 18:20:15 +00:00
Cameron Gutman 6530a6856e - Forgot to free DmaContext
svn path=/trunk/; revision=41247
2009-06-02 00:43:21 +00:00
Cameron Gutman 2d20153f5f - Finish our NDIS S/G DMA implementation
- Totally untested due to lack of HAL S/G support

svn path=/trunk/; revision=41246
2009-06-02 00:37:23 +00:00
Cameron Gutman 85da39f0ab - Handle IRP_MN_QUERY_PNP_DEVICE_STATE
svn path=/trunk/; revision=41241
2009-06-01 21:56:44 +00:00
Cameron Gutman 7840b71301 - Register a device interface for each miniport
svn path=/trunk/; revision=41240
2009-06-01 19:10:49 +00:00
Cameron Gutman 6d2f233002 - Implement and export NdisCompareAnsiString, NdisCompareUnicodeString, and NdisInterlockedAddLargeInteger
svn path=/trunk/; revision=41232
2009-05-31 23:20:55 +00:00
Cameron Gutman d6dda55c2d - Export the stubs for NdisRegisterTdiCallBack, NdisSetProtocolFilter, and NdisClGetProtocolVcContextFromTapiCallId
- Remove some extra stuff
 - Move implemented stuff to misc.c
 - Add some debug prints

svn path=/trunk/; revision=41231
2009-05-31 23:00:32 +00:00
Sylvain Petreolle 6f6a9fe1c5 Return NDIS 5.1 in NdisGetVersion (its XP+)
svn path=/trunk/; revision=41226
2009-05-31 16:14:27 +00:00
Cameron Gutman 67f8c6d15c - Implement and export NdisOverrideBusNumber
svn path=/trunk/; revision=41225
2009-05-31 16:04:43 +00:00
Dmitry Chapyshev e258863e18 - Implement NdisGetSharedDataAlignment and NdisGetVersion
svn path=/trunk/; revision=41224
2009-05-31 15:24:56 +00:00
Cameron Gutman 9ee18c1c89 - Fix build
svn path=/trunk/; revision=41223
2009-05-31 14:59:56 +00:00
Cameron Gutman c57e5460f5 - Export and stub NdisAllocateFromBlockPool, NdisCancelSendPackets, NdisCoAssignInstanceName, NdisCoGetTapiCallId, NdisCreateBlockPool, NdisDestroyBlockPool, NdisGeneratePartialCancelId, NdisGetRoutineAddress, NdisGetSharedDataAlignment, NdisGetVersion, NdisIMGetCurrentPacketStack, NdisIMNotifyPnPEvent, NdisQueryPendingIOCount, and NdisSetPacketStatus
svn path=/trunk/; revision=41222
2009-05-31 14:47:06 +00:00
Cameron Gutman 2c542da5fb - Export and hackplement NdisSetTimerEx
- Implementation is #ifed out currently but I may enable it later
 - Hopefully somebody can think of a better way to do it than the current code

svn path=/trunk/; revision=41213
2009-05-30 23:07:13 +00:00
Cameron Gutman 7d457b6fd5 - Export stubs for NdisQueryBindInstanceName and NdisSetPacketPoolProtocolId
svn path=/trunk/; revision=41211
2009-05-30 22:50:33 +00:00
Cameron Gutman 4b7dc042c1 - Export NdisGetFirstBufferFromPacketSafe, NdisGetPacketCancelId, NdisGetPoolFromPacket, NdisPacketSize, and NdisSetPacketCancelId
svn path=/trunk/; revision=41210
2009-05-30 22:18:10 +00:00
Sylvain Petreolle e1bafda4d6 Export NdisCopyFromPacketToPacketSafe
svn path=/trunk/; revision=41208
2009-05-30 21:50:49 +00:00
Cameron Gutman a9826865bc - Fix handling of nonpaged contiguous memory in NdisAllocateMemory and NdisFreeMemory
svn path=/trunk/; revision=41207
2009-05-30 17:12:45 +00:00
Cameron Gutman cabc0627ac - Only register a shutdown handler if adapter initialization has succeeded
svn path=/trunk/; revision=41161
2009-05-27 21:45:01 +00:00
Dmitry Gorbachev a7780a5fda Use a constant of the right type.
svn path=/trunk/; revision=41155
2009-05-27 20:27:27 +00:00
Cameron Gutman a49c349111 - Fix a bug that could result in Dma32BitAddresses being set if the caller specifies NDIS_DMA_24BITS
svn path=/trunk/; revision=41105
2009-05-24 20:25:11 +00:00
Cameron Gutman e9cab0901b - MajorFunction has IRP_MJ_MAXIMUM_FUNCTION positions
- Sorry for so many commits on the same function

svn path=/trunk/; revision=41090
2009-05-24 00:49:02 +00:00
Cameron Gutman d63e071c3d - We also shouldn't use our Shutdown handler
svn path=/trunk/; revision=41089
2009-05-24 00:38:10 +00:00
Cameron Gutman b1b02ec330 - Don't use NDIS's ioctl handler for devices registered from NdisMRegisterDevice
svn path=/trunk/; revision=41088
2009-05-24 00:32:38 +00:00
Cameron Gutman 4546411768 - Irp->AssociatedIrp.SystemBuffer is a PNDIS_OID
svn path=/trunk/; revision=41087
2009-05-24 00:21:37 +00:00
Cameron Gutman 13d610f832 - Fix our DMA implementation to use documented structs
svn path=/trunk/; revision=41039
2009-05-22 01:26:18 +00:00
Cameron Gutman 4db4705697 - Implement NdisReadPcmciaAttributeMemory and NdisWritePcmciaAttributeMemory
- Add some debug prints to NdisReadEisaSlotInformation

svn path=/trunk/; revision=41038
2009-05-22 00:56:49 +00:00