Remove obsolete APIs and APIs that are actually implemented only as
macros.
Modified: trunk/reactos/drivers/net/ndis/ndis/40gone.c
Modified: trunk/reactos/drivers/net/ndis/ndis/50gone.c
Modified: trunk/reactos/drivers/net/ndis/ndis/control.c
Modified: trunk/reactos/drivers/net/ndis/ndis/io.c
Modified: trunk/reactos/drivers/net/ndis/ndis/memory.c
Modified: trunk/reactos/drivers/net/ndis/ndis/miniport.c
Modified: trunk/reactos/drivers/net/ndis/ndis/string.c
Modified: trunk/reactos/drivers/net/ndis/ndis/stubs.c
Modified: trunk/reactos/drivers/net/ndis/ndis.def
_____
Modified: trunk/reactos/drivers/net/ndis/ndis/40gone.c
--- trunk/reactos/drivers/net/ndis/ndis/40gone.c 2005-08-23
22:11:03 UTC (rev 17488)
+++ trunk/reactos/drivers/net/ndis/ndis/40gone.c 2005-08-23
22:24:54 UTC (rev 17489)
@@ -105,143 +105,6 @@
/*
* @unimplemented
*/
-#undef NdisCompleteBufferPhysicalMapping
-VOID
-EXPORT
-NdisCompleteBufferPhysicalMapping(
- IN NDIS_HANDLE NdisAdapterHandle,
- IN PNDIS_BUFFER Buffer,
- IN ULONG PhysicalMapRegister)
-{
- UNIMPLEMENTED
-}
-
-
-/*
- * @unimplemented
- */
-#undef NdisCompleteRequest
-VOID
-EXPORT
-NdisCompleteRequest(
- IN NDIS_HANDLE NdisBindingContext,
- IN PNDIS_REQUEST NdisRequest,
- IN NDIS_STATUS Status)
-{
- UNIMPLEMENTED
-}
-
-
-/*
- * @unimplemented
- */
-#undef NdisCompleteReset
-VOID
-EXPORT
-NdisCompleteReset(
- IN NDIS_HANDLE NdisBindingContext,
- IN NDIS_STATUS Status)
-{
- UNIMPLEMENTED
-}
-
-
-/*
- * @unimplemented
- */
-#undef NdisCompleteSend
-VOID
-EXPORT
-NdisCompleteSend(
- IN NDIS_HANDLE NdisBindingContext,
- IN PNDIS_PACKET Packet,
- IN NDIS_STATUS Status)
-{
- UNIMPLEMENTED
-}
-
-
-/*
- * @unimplemented
- */
-#undef NdisCompleteTransferData
-VOID
-EXPORT
-NdisCompleteTransferData(
- IN NDIS_HANDLE NdisBindingContext,
- IN PNDIS_PACKET Packet,
- IN NDIS_STATUS Status,
- IN UINT BytesTransferred)
-{
- UNIMPLEMENTED
-}
-
-
-/*
- * @unimplemented
- */
-#undef NdisIndicateReceive
-VOID
-EXPORT
-NdisIndicateReceive(
- OUT PNDIS_STATUS Status,
- IN NDIS_HANDLE NdisBindingContext,
- IN NDIS_HANDLE MacReceiveContext,
- IN PVOID HeaderBuffer,
- IN UINT HeaderBufferSize,
- IN PVOID LookaheadBuffer,
- IN UINT LookaheadBufferSize,
- IN UINT PacketSize)
-{
- UNIMPLEMENTED
-}
-
-
-/*
- * @unimplemented
- */
-#undef NdisIndicateReceiveComplete
-VOID
-EXPORT
-NdisIndicateReceiveComplete(
- IN NDIS_HANDLE NdisBindingContext)
-{
- UNIMPLEMENTED
-}
-
-
-/*
- * @unimplemented
- */
-#undef NdisIndicateStatus
-VOID
-EXPORT
-NdisIndicateStatus(
- IN NDIS_HANDLE NdisBindingContext,
- IN NDIS_STATUS GeneralStatus,
- IN PVOID StatusBuffer,
- IN UINT StatusBufferSize)
-{
- UNIMPLEMENTED
-}
-
-
-/*
- * @unimplemented
- */
-#undef NdisIndicateStatusComplete
-VOID
-EXPORT
-NdisIndicateStatusComplete(
- IN NDIS_HANDLE NdisBindingContext)
-{
- UNIMPLEMENTED
-}
-
-
-/*
- * @unimplemented
- */
NDIS_STATUS
EXPORT
NdisPciAssignResources(
@@ -270,58 +133,11 @@
UNIMPLEMENTED
}
-
/*
* @unimplemented
*/
-#undef NdisReadDmaCounter
-ULONG
-EXPORT
-NdisReadDmaCounter(
- IN NDIS_HANDLE NdisDmaHandle)
-{
- UNIMPLEMENTED
-
- return 0;
-}
-
-
-/*
- * @unimplemented
- */
-#undef NdisStartBufferPhysicalMapping
VOID
EXPORT
-NdisStartBufferPhysicalMapping(
- IN NDIS_HANDLE NdisAdapterHandle,
- IN PNDIS_BUFFER Buffer,
- IN ULONG PhysicalMapRegister,
- IN BOOLEAN WriteToDevice,
- OUT PNDIS_PHYSICAL_ADDRESS_UNIT PhysicalAddressArray,
- OUT PUINT ArraySize)
-{
- UNIMPLEMENTED
-}
-
-
-/*
- * @unimplemented
- */
-#undef NdisUnmapIoSpace
-VOID
-EXPORT
-NdisUnmapIoSpace(
- IN NDIS_HANDLE NdisAdapterHandle,
- IN PVOID VirtualAddress,
- IN UINT Length)
-{
- UNIMPLEMENTED
-}
-/*
- * @unimplemented
- */
-VOID
-EXPORT
TrFilterDprIndicateReceive(
IN PTR_FILTER Filter,
IN NDIS_HANDLE MacReceiveContext,
_____
Modified: trunk/reactos/drivers/net/ndis/ndis/50gone.c
--- trunk/reactos/drivers/net/ndis/ndis/50gone.c 2005-08-23
22:11:03 UTC (rev 17488)
+++ trunk/reactos/drivers/net/ndis/ndis/50gone.c 2005-08-23
22:24:54 UTC (rev 17489)
@@ -384,11 +384,10 @@
}
-#undef NdisUpdateSharedMemory
-
/*
* @unimplemented
*/
+#undef NdisUpdateSharedMemory
VOID
EXPORT
NdisUpdateSharedMemory(
_____
Modified: trunk/reactos/drivers/net/ndis/ndis/control.c
--- trunk/reactos/drivers/net/ndis/ndis/control.c 2005-08-23
22:11:03 UTC (rev 17488)
+++ trunk/reactos/drivers/net/ndis/ndis/control.c 2005-08-23
22:24:54 UTC (rev 17489)
@@ -14,20 +14,6 @@
/*
- * @implemented
- */
-#undef NdisReinitializePacket
-VOID
-EXPORT
-NdisReinitializePacket(
- IN OUT PNDIS_PACKET Packet)
-{
- (Packet)->Private.Head = (PNDIS_BUFFER)NULL;
- (Packet)->Private.ValidCounts = FALSE;
-}
-
-
-/*
* @unimplemented
*/
VOID
_____
Modified: trunk/reactos/drivers/net/ndis/ndis/io.c
--- trunk/reactos/drivers/net/ndis/ndis/io.c 2005-08-23 22:11:03 UTC
(rev 17488)
+++ trunk/reactos/drivers/net/ndis/ndis/io.c 2005-08-23 22:24:54 UTC
(rev 17489)
@@ -122,35 +122,6 @@
/*
- * @unimplemented
- */
-#undef NdisFlushBuffer
-VOID
-EXPORT
-NdisFlushBuffer(
- IN PNDIS_BUFFER Buffer,
- IN BOOLEAN WriteToDevice)
-{
- UNIMPLEMENTED
-}
-
-
-/*
- * @unimplemented
- */
-#undef NdisGetCacheFillSize
-ULONG
-EXPORT
-NdisGetCacheFillSize(
- VOID)
-{
- UNIMPLEMENTED
-
- return 0;
-}
-
-
-/*
* @implemented
*/
VOID
@@ -561,31 +532,12 @@
Adapter->NdisMiniportBlock.MapRegisters[PhysicalMapRegister].WriteToDevi
ce);
}
-
/*
* @unimplemented
*/
-#undef NdisMCompleteDmaTransfer
VOID
EXPORT
-NdisMCompleteDmaTransfer(
- OUT PNDIS_STATUS Status,
- IN PNDIS_HANDLE MiniportDmaHandle,
- IN PNDIS_BUFFER Buffer,
- IN ULONG Offset,
- IN ULONG Length,
- IN BOOLEAN WriteToDevice)
-{
- UNIMPLEMENTED
-}
-
-
-/*
- * @unimplemented
- */
-VOID
-EXPORT
NdisMDeregisterDmaChannel(
IN PNDIS_HANDLE MiniportDmaHandle)
{
@@ -937,24 +889,7 @@
return NDIS_STATUS_SUCCESS;
}
-/*
- * @unimplemented
- */
-#undef NdisMSetupDmaTransfer
-VOID
-EXPORT
-NdisMSetupDmaTransfer(
- OUT PNDIS_STATUS Status,
- IN PNDIS_HANDLE MiniportDmaHandle,
- IN PNDIS_BUFFER Buffer,
- IN ULONG Offset,
- IN ULONG Length,
- IN BOOLEAN WriteToDevice)
-{
- UNIMPLEMENTED
-}
-
/*
* @implemented
*/
_____
Modified: trunk/reactos/drivers/net/ndis/ndis/memory.c
--- trunk/reactos/drivers/net/ndis/ndis/memory.c 2005-08-23
22:11:03 UTC (rev 17488)
+++ trunk/reactos/drivers/net/ndis/ndis/memory.c 2005-08-23
22:24:54 UTC (rev 17489)
@@ -47,36 +47,9 @@
return NDIS_STATUS_SUCCESS;
}
-
-/*
- * @unimplemented
- */
-#undef NdisCreateLookaheadBufferFromSharedMemory
-VOID
-EXPORT
-NdisCreateLookaheadBufferFromSharedMemory(
- IN PVOID pSharedMemory,
- IN UINT LookaheadLength,
- OUT PVOID *pLookaheadBuffer)
-{
- UNIMPLEMENTED
-}
/*
- * @unimplemented
- */
-#undef NdisDestroyLookaheadBufferFromSharedMemory
-VOID
-EXPORT
-NdisDestroyLookaheadBufferFromSharedMemory(
- IN PVOID pLookaheadBuffer)
-{
- UNIMPLEMENTED
-}
-
-
-/*
* @implemented
*/
NDIS_STATUS
_____
Modified: trunk/reactos/drivers/net/ndis/ndis/miniport.c
--- trunk/reactos/drivers/net/ndis/ndis/miniport.c 2005-08-23
22:11:03 UTC (rev 17488)
+++ trunk/reactos/drivers/net/ndis/ndis/miniport.c 2005-08-23
22:24:54 UTC (rev 17489)
@@ -991,11 +991,10 @@
UNIMPLEMENTED
}
-#undef NdisMIndicateStatus
-
/*
* @unimplemented
*/
+#undef NdisMIndicateStatus
VOID
EXPORT
NdisMIndicateStatus(
@@ -1007,11 +1006,10 @@
UNIMPLEMENTED
}
-#undef NdisMIndicateStatusComplete
-
/*
* @unimplemented
*/
+#undef NdisMIndicateStatusComplete
VOID
EXPORT
NdisMIndicateStatusComplete(
@@ -1932,12 +1930,11 @@
MiniTransferDataComplete(MiniportAdapterHandle, Packet, Status,
BytesTransferred);
}
-#undef NdisMSetInformationComplete
-
/*
* @implemented
*/
+#undef NdisMSetInformationComplete
VOID
EXPORT
NdisMSetInformationComplete(
@@ -1947,12 +1944,11 @@
(*((PNDIS_MINIPORT_BLOCK)(MiniportAdapterHandle))->SetCompleteHandler)(M
iniportAdapterHandle, Status);
}
-#undef NdisMSetAttributes
-
/*
* @implemented
*/
+#undef NdisMSetAttributes
VOID
EXPORT
NdisMSetAttributes(
_____
Modified: trunk/reactos/drivers/net/ndis/ndis/string.c
--- trunk/reactos/drivers/net/ndis/ndis/string.c 2005-08-23
22:11:03 UTC (rev 17488)
+++ trunk/reactos/drivers/net/ndis/ndis/string.c 2005-08-23
22:24:54 UTC (rev 17489)
@@ -40,12 +40,12 @@
(PANSI_STRING)SourceString, FALSE);
}
-#undef NdisEqualString
/*
* @implemented
*/
+#undef NdisEqualString
BOOLEAN
EXPORT
NdisEqualString(
_____
Modified: trunk/reactos/drivers/net/ndis/ndis/stubs.c
--- trunk/reactos/drivers/net/ndis/ndis/stubs.c 2005-08-23 22:11:03 UTC
(rev 17488)
+++ trunk/reactos/drivers/net/ndis/ndis/stubs.c 2005-08-23 22:24:54 UTC
(rev 17489)
@@ -38,11 +38,10 @@
}
-#undef NdisInterlockedAddUlong
-
/*
* @implemented
*/
+#undef NdisInterlockedAddUlong
VOID
EXPORT
NdisInterlockedAddUlong (
@@ -54,11 +53,10 @@
}
-#undef NdisInterlockedInsertHeadList
-
/*
* @implemented
*/
+#undef NdisInterlockedInsertHeadList
PLIST_ENTRY
EXPORT
NdisInterlockedInsertHeadList(
@@ -70,11 +68,10 @@
}
-#undef NdisInterlockedInsertTailList
-
/*
* @implemented
*/
+#undef NdisInterlockedInsertTailList
PLIST_ENTRY
EXPORT
NdisInterlockedInsertTailList(
@@ -86,11 +83,10 @@
}
-#undef NdisInterlockedRemoveHeadList
-
/*
* @implemented
*/
+#undef NdisInterlockedRemoveHeadList
PLIST_ENTRY
EXPORT
NdisInterlockedRemoveHeadList(
@@ -183,11 +179,10 @@
}
-#undef NdisIMInitializeDeviceInstance
-
/*
* @unimplemented
*/
+#undef NdisIMInitializeDeviceInstance
NDIS_STATUS
EXPORT
NdisIMInitializeDeviceInstance(
@@ -544,11 +539,10 @@
}
-#undef NdisInterlockedDecrement
-
/*
* @implemented
*/
+#undef NdisInterlockedDecrement
LONG
EXPORT
NdisInterlockedDecrement(
@@ -564,11 +558,10 @@
}
-#undef NdisInterlockedIncrement
-
/*
* @implemented
*/
+#undef NdisInterlockedIncrement
LONG
EXPORT
NdisInterlockedIncrement(
_____
Modified: trunk/reactos/drivers/net/ndis/ndis.def
--- trunk/reactos/drivers/net/ndis/ndis.def 2005-08-23 22:11:03 UTC
(rev 17488)
+++ trunk/reactos/drivers/net/ndis/ndis.def 2005-08-23 22:24:54 UTC
(rev 17489)
@@ -85,7 +85,6 @@
NdisDprFreePacketNonInterlocked@4
NdisDprReleaseSpinLock@4
NdisEqualString@12
-NdisFlushBuffer@8
NdisFreeBuffer@4
NdisFreeBufferPool@4
NdisFreeDmaChannel@4
@@ -235,7 +234,6 @@
NdisReadPciSlotInformation@20
NdisReadPcmciaAttributeMemory@16
;NdisReEnumerateProtocolBindings ?
-NdisReinitializePacket@4
NdisRegisterAdapter@24
NdisRegisterAdapterShutdownHandler@12
NdisRegisterProtocol@16