From 5e00b52f0af667b34647d328e6ac707228e49fbd Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Thu, 17 Jul 2003 18:17:55 +0000 Subject: [PATCH] Partially implemented NdisImmediateWritePciSlotInformation() and NdisWritePciSlotInformation(). svn path=/trunk/; revision=5153 --- reactos/drivers/net/ndis/ndis/hardware.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/reactos/drivers/net/ndis/ndis/hardware.c b/reactos/drivers/net/ndis/ndis/hardware.c index 55dc9520d1b..da695c7d94d 100644 --- a/reactos/drivers/net/ndis/ndis/hardware.c +++ b/reactos/drivers/net/ndis/ndis/hardware.c @@ -32,7 +32,7 @@ NdisImmediateReadPciSlotInformation( /* - * @unimplemented + * @implemented */ ULONG EXPORT @@ -43,9 +43,12 @@ NdisImmediateWritePciSlotInformation( IN PVOID Buffer, IN ULONG Length) { - UNIMPLEMENTED - - return 0; + return HalSetBusDataByOffset (PCIConfiguration, + 0, /* FIXME */ + SlotNumber, + Buffer, + Offset, + Length); } @@ -148,7 +151,7 @@ NdisReadPciSlotInformation( /* - * @unimplemented + * @implemented */ ULONG EXPORT @@ -159,9 +162,12 @@ NdisWritePciSlotInformation( IN PVOID Buffer, IN ULONG Length) { - UNIMPLEMENTED - - return 0; + return HalSetBusDataByOffset (PCIConfiguration, + 0, /* FIXME */ + SlotNumber, + Buffer, + Offset, + Length); } /* EOF */