Author: akhaldi Date: Fri May 10 10:22:01 2013 New Revision: 58982
URL: http://svn.reactos.org/svn/reactos?rev=58982&view=rev Log: [PCIX] * Add some function annotations. * Fix several debug print specifiers. * Properly mark some unreferenced parameters as such.
Modified: trunk/reactos/drivers/bus/pcix/arb/ar_busno.c trunk/reactos/drivers/bus/pcix/arb/ar_memio.c trunk/reactos/drivers/bus/pcix/arb/arb_comn.c trunk/reactos/drivers/bus/pcix/arb/tr_irq.c trunk/reactos/drivers/bus/pcix/debug.c trunk/reactos/drivers/bus/pcix/device.c trunk/reactos/drivers/bus/pcix/dispatch.c trunk/reactos/drivers/bus/pcix/enum.c trunk/reactos/drivers/bus/pcix/fdo.c trunk/reactos/drivers/bus/pcix/hookhal.c trunk/reactos/drivers/bus/pcix/init.c trunk/reactos/drivers/bus/pcix/intrface/agpintrf.c trunk/reactos/drivers/bus/pcix/intrface/busintrf.c trunk/reactos/drivers/bus/pcix/intrface/cardbus.c trunk/reactos/drivers/bus/pcix/intrface/devhere.c trunk/reactos/drivers/bus/pcix/intrface/intrface.c trunk/reactos/drivers/bus/pcix/intrface/lddintrf.c trunk/reactos/drivers/bus/pcix/intrface/locintrf.c trunk/reactos/drivers/bus/pcix/intrface/pmeintf.c trunk/reactos/drivers/bus/pcix/intrface/routintf.c trunk/reactos/drivers/bus/pcix/pci.h trunk/reactos/drivers/bus/pcix/pci/id.c trunk/reactos/drivers/bus/pcix/pci/ppbridge.c trunk/reactos/drivers/bus/pcix/pcivrify.c trunk/reactos/drivers/bus/pcix/pdo.c trunk/reactos/drivers/bus/pcix/power.c trunk/reactos/drivers/bus/pcix/utils.c
Modified: trunk/reactos/drivers/bus/pcix/arb/ar_busno.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/arb/ar_bus... ============================================================================== --- trunk/reactos/drivers/bus/pcix/arb/ar_busno.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/arb/ar_busno.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -33,6 +33,7 @@ NTAPI arbusno_Initializer(IN PVOID Instance) { + UNREFERENCED_PARAMETER(Instance); /* Not yet implemented */ UNIMPLEMENTED; //while (TRUE); @@ -51,6 +52,11 @@ PPCI_FDO_EXTENSION FdoExtension = (PPCI_FDO_EXTENSION)DeviceExtension; NTSTATUS Status; PAGED_CODE(); + + UNREFERENCED_PARAMETER(PciInterface); + UNREFERENCED_PARAMETER(Version); + UNREFERENCED_PARAMETER(Size); + UNREFERENCED_PARAMETER(Interface);
/* Make sure it's the expected interface */ if ((ULONG)InterfaceData != CmResourceTypeBusNumber)
Modified: trunk/reactos/drivers/bus/pcix/arb/ar_memio.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/arb/ar_mem... ============================================================================== --- trunk/reactos/drivers/bus/pcix/arb/ar_memio.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/arb/ar_memio.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -46,6 +46,8 @@ NTAPI ario_Initializer(IN PVOID Instance) { + UNREFERENCED_PARAMETER(Instance); + /* Not yet implemented */ UNIMPLEMENTED; //while (TRUE); @@ -64,6 +66,11 @@ PPCI_FDO_EXTENSION FdoExtension = (PPCI_FDO_EXTENSION)DeviceExtension; NTSTATUS Status; PAGED_CODE(); + + UNREFERENCED_PARAMETER(PciInterface); + UNREFERENCED_PARAMETER(Version); + UNREFERENCED_PARAMETER(Size); + UNREFERENCED_PARAMETER(Interface);
/* Make sure it's the expected interface */ if ((ULONG)InterfaceData != CmResourceTypePort) @@ -135,6 +142,8 @@ NTAPI armem_Initializer(IN PVOID Instance) { + UNREFERENCED_PARAMETER(Instance); + /* Not yet implemented */ UNIMPLEMENTED; //while (TRUE); @@ -153,6 +162,11 @@ PPCI_FDO_EXTENSION FdoExtension = (PPCI_FDO_EXTENSION)DeviceExtension; NTSTATUS Status; PAGED_CODE(); + + UNREFERENCED_PARAMETER(PciInterface); + UNREFERENCED_PARAMETER(Version); + UNREFERENCED_PARAMETER(Size); + UNREFERENCED_PARAMETER(Interface);
/* Make sure it's the expected interface */ if ((ULONG)InterfaceData != CmResourceTypeMemory)
Modified: trunk/reactos/drivers/bus/pcix/arb/arb_comn.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/arb/arb_co... ============================================================================== --- trunk/reactos/drivers/bus/pcix/arb/arb_comn.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/arb/arb_comn.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -28,6 +28,7 @@ NTAPI PciArbiterDestructor(IN PPCI_ARBITER_INSTANCE Arbiter) { + UNREFERENCED_PARAMETER(Arbiter); /* This function is not yet implemented */ UNIMPLEMENTED; while (TRUE); @@ -57,7 +58,7 @@ /* Skip this bus if it does subtractive decode */ if (PdoExtension->Dependent.type1.SubtractiveDecode) { - DPRINT1("PCI Not creating arbiters for subtractive bus %d\n", + DPRINT1("PCI Not creating arbiters for subtractive bus %u\n", PdoExtension->Dependent.type1.SubtractiveDecode); continue; } @@ -77,7 +78,7 @@ if (!*Interfaces) { /* Skip this arbiter and try the next one */ - DPRINT1("PCI - FDO ext 0x%08x no %s arbiter.\n", + DPRINT1("PCI - FDO ext 0x%p no %s arbiter.\n", FdoExtension, PciArbiterNames[ArbiterType - PciArb_Io]); continue; @@ -110,7 +111,7 @@ PciArbiterDestructor);
/* This arbiter is now initialized, move to the next one */ - DPRINT1("PCI - FDO ext 0x%08x %S arbiter initialized (context 0x%08x).\n", + DPRINT1("PCI - FDO ext 0x%p %S arbiter initialized (context 0x%p).\n", FdoExtension, L"ARBITER HEADER MISSING", //ArbiterInterface->CommonInstance.Name, ArbiterInterface); @@ -131,11 +132,13 @@ PVOID Instance; PCI_SIGNATURE ArbiterType;
+ UNREFERENCED_PARAMETER(Resources); + /* Arbiters should not already be initialized */ if (DeviceExtension->ArbitersInitialized) { /* Duplicated start request, fail initialization */ - DPRINT1("PCI Warning hot start FDOx %08x, resource ranges not checked.\n", DeviceExtension); + DPRINT1("PCI Warning hot start FDOx %p, resource ranges not checked.\n", DeviceExtension); return STATUS_INVALID_DEVICE_REQUEST; }
@@ -190,7 +193,7 @@ else { /* The arbiter was not found, this is an error! */ - DPRINT1("PCI - FDO ext 0x%08x %s arbiter (REQUIRED) is missing.\n", + DPRINT1("PCI - FDO ext 0x%p %s arbiter (REQUIRED) is missing.\n", DeviceExtension, PciArbiterNames[ArbiterType - PciArb_Io]); }
Modified: trunk/reactos/drivers/bus/pcix/arb/tr_irq.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/arb/tr_irq... ============================================================================== --- trunk/reactos/drivers/bus/pcix/arb/tr_irq.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/arb/tr_irq.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -33,6 +33,7 @@ NTAPI tranirq_Initializer(IN PVOID Instance) { + UNREFERENCED_PARAMETER(Instance); /* PnP Interfaces don't get Initialized */ ASSERTMSG(FALSE, "PCI tranirq_Initializer, unexpected call."); return STATUS_UNSUCCESSFUL; @@ -52,11 +53,15 @@ INTERFACE_TYPE ParentInterface; ASSERT_FDO(FdoExtension);
+ UNREFERENCED_PARAMETER(Instance); + UNREFERENCED_PARAMETER(Version); + UNREFERENCED_PARAMETER(Size); + /* Make sure it's the right resource type */ if ((ULONG)InterfaceData != CmResourceTypeInterrupt) { /* Fail this invalid request */ - DPRINT1("PCI - IRQ trans constructor doesn't like %x in InterfaceSpecificData\n", + DPRINT1("PCI - IRQ trans constructor doesn't like %p in InterfaceSpecificData\n", InterfaceData); return STATUS_INVALID_PARAMETER_3; }
Modified: trunk/reactos/drivers/bus/pcix/debug.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/debug.c?re... ============================================================================== --- trunk/reactos/drivers/bus/pcix/debug.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/debug.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -190,7 +190,7 @@ }
/* For an FDO, just dump the extension pointer and IRP string */ - DPRINT1("FDO(%x)<-%s\n", DeviceExtension, IrpString); + DPRINT1("FDO(%p)<-%s\n", DeviceExtension, IrpString); }
/* If the function is illegal for this extension, complain */ @@ -222,17 +222,17 @@ ULONG i;
/* Dump the capabilities */ - DPRINT1("Capabilities\n Lock:%d, Eject:%d, Remove:%d, Dock:%d, UniqueId:%d\n", + DPRINT1("Capabilities\n Lock:%u, Eject:%u, Remove:%u, Dock:%u, UniqueId:%u\n", DeviceCaps->LockSupported, DeviceCaps->EjectSupported, DeviceCaps->Removable, DeviceCaps->DockDevice, DeviceCaps->UniqueID); - DbgPrint(" SilentInstall:%d, RawOk:%d, SurpriseOk:%d\n", + DbgPrint(" SilentInstall:%u, RawOk:%u, SurpriseOk:%u\n", DeviceCaps->SilentInstall, DeviceCaps->RawDeviceOK, DeviceCaps->SurpriseRemovalOK); - DbgPrint(" Address %08x, UINumber %08x, Latencies D1 %d, D2 %d, D3 %d\n", + DbgPrint(" Address %08x, UINumber %08x, Latencies D1 %u, D2 %u, D3 %u\n", DeviceCaps->Address, DeviceCaps->UINumber, DeviceCaps->D1Latency, @@ -281,10 +281,10 @@ PULONG Data;
/* Print out the header */ - DPRINT1(" IoResource Descriptor dump: Descriptor @0x%x\n", Descriptor); + DPRINT1(" IoResource Descriptor dump: Descriptor @0x%p\n", Descriptor); DPRINT1(" Option = 0x%x\n", Descriptor->Option); - DPRINT1(" Type = %d (%s)\n", Descriptor->Type, PciDebugCmResourceTypeToText(Descriptor->Type)); - DPRINT1(" ShareDisposition = %d\n", Descriptor->ShareDisposition); + DPRINT1(" Type = %u (%s)\n", Descriptor->Type, PciDebugCmResourceTypeToText(Descriptor->Type)); + DPRINT1(" ShareDisposition = %u\n", Descriptor->ShareDisposition); DPRINT1(" Flags = 0x%04X\n", Descriptor->Flags);
/* Loop private data */ @@ -292,7 +292,7 @@ for (i = 0; i < 6; i += 3) { /* Dump it in 32-bit triplets */ - DPRINT1(" Data[%d] = %08x %08x %08x\n", i, Data[0], Data[1], Data[2]); + DPRINT1(" Data[%u] = %08x %08x %08x\n", i, Data[0], Data[1], Data[2]); } }
@@ -321,7 +321,7 @@ Requirements->SlotNumber, ((PCI_SLOT_NUMBER*)&Requirements->SlotNumber)->u.bits.DeviceNumber, ((PCI_SLOT_NUMBER*)&Requirements->SlotNumber)->u.bits.FunctionNumber); - DPRINT1(" AlternativeLists %d\n", AlternativeLists); + DPRINT1(" AlternativeLists %u\n", AlternativeLists);
/* Scan alternative lists */ while (AlternativeLists--) @@ -331,7 +331,7 @@ Count = List->Count;
/* Print out each descriptor */ - DPRINT1("\n List[%d].Count = %d\n", AlternativeLists, Count); + DPRINT1("\n List[%u].Count = %u\n", AlternativeLists, Count); while (Count--) PciDebugPrintIoResource(Descriptor++);
/* Should've reached a new list now */ @@ -347,9 +347,9 @@ PciDebugPrintPartialResource(IN PCM_PARTIAL_RESOURCE_DESCRIPTOR PartialResource) { /* Dump all the data in the partial */ - DPRINT1(" Partial Resource Descriptor @0x%x\n", PartialResource); - DPRINT1(" Type = %d (%s)\n", PartialResource->Type, PciDebugCmResourceTypeToText(PartialResource->Type)); - DPRINT1(" ShareDisposition = %d\n", PartialResource->ShareDisposition); + DPRINT1(" Partial Resource Descriptor @0x%p\n", PartialResource); + DPRINT1(" Type = %u (%s)\n", PartialResource->Type, PciDebugCmResourceTypeToText(PartialResource->Type)); + DPRINT1(" ShareDisposition = %u\n", PartialResource->ShareDisposition); DPRINT1(" Flags = 0x%04X\n", PartialResource->Flags); DPRINT1(" Data[%d] = %08x %08x %08x\n", 0, @@ -372,7 +372,7 @@ /* Get the full list count */ ListCount = PartialList->Count; FullDescriptor = PartialList->List; - DPRINT1(" CM_RESOURCE_LIST (PCI Bus Driver) (List Count = %d)\n", PartialList->Count); + DPRINT1(" CM_RESOURCE_LIST (PCI Bus Driver) (List Count = %u)\n", PartialList->Count);
/* Loop full list */ for (i = 0; i < ListCount; i++)
Modified: trunk/reactos/drivers/bus/pcix/device.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/device.c?r... ============================================================================== --- trunk/reactos/drivers/bus/pcix/device.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/device.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -250,6 +250,7 @@ NTAPI Device_RestoreCurrent(IN PPCI_CONFIGURATOR_CONTEXT Context) { + UNREFERENCED_PARAMETER(Context); /* Nothing to do for devices */ return; } @@ -260,6 +261,9 @@ IN PPCI_COMMON_HEADER PciData, IN PIO_RESOURCE_DESCRIPTOR IoDescriptor) { + UNREFERENCED_PARAMETER(Context); + UNREFERENCED_PARAMETER(PciData); + UNREFERENCED_PARAMETER(IoDescriptor); /* Not yet implemented */ UNIMPLEMENTED_DBGBREAK(); } @@ -269,6 +273,8 @@ Device_ResetDevice(IN PPCI_PDO_EXTENSION PdoExtension, IN PPCI_COMMON_HEADER PciData) { + UNREFERENCED_PARAMETER(PdoExtension); + UNREFERENCED_PARAMETER(PciData); /* Not yet implemented */ UNIMPLEMENTED_DBGBREAK(); } @@ -278,6 +284,8 @@ Device_ChangeResourceSettings(IN PPCI_PDO_EXTENSION PdoExtension, IN PPCI_COMMON_HEADER PciData) { + UNREFERENCED_PARAMETER(PdoExtension); + UNREFERENCED_PARAMETER(PciData); /* Not yet implemented */ UNIMPLEMENTED_DBGBREAK(); }
Modified: trunk/reactos/drivers/bus/pcix/dispatch.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/dispatch.c... ============================================================================== --- trunk/reactos/drivers/bus/pcix/dispatch.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/dispatch.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -16,6 +16,8 @@
/* FUNCTIONS ******************************************************************/
+IO_COMPLETION_ROUTINE PciSetEventCompletion; + NTSTATUS NTAPI PciSetEventCompletion(IN PDEVICE_OBJECT DeviceObject, @@ -24,6 +26,9 @@ { PKEVENT Event = (PVOID)Context; ASSERT(Event); + + UNREFERENCED_PARAMETER(DeviceObject); + UNREFERENCED_PARAMETER(Irp);
/* Set the event and return the appropriate status code */ KeSetEvent(Event, FALSE, IO_NO_INCREMENT); @@ -258,6 +263,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_FDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + /* Not supported */ DPRINT1("WARNING: PCI received unsupported IRP!\n"); //DbgBreakPoint(); @@ -270,6 +279,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_FDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + /* Not supported */ return STATUS_INVALID_DEVICE_REQUEST; }
Modified: trunk/reactos/drivers/bus/pcix/enum.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/enum.c?rev... ============================================================================== --- trunk/reactos/drivers/bus/pcix/enum.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/enum.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -537,6 +537,9 @@ PciQueryEjectionRelations(IN PPCI_PDO_EXTENSION PdoExtension, IN OUT PDEVICE_RELATIONS *pDeviceRelations) { + UNREFERENCED_PARAMETER(PdoExtension); + UNREFERENCED_PARAMETER(pDeviceRelations); + /* Not yet implemented */ UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_IMPLEMENTED; @@ -549,6 +552,10 @@ OUT PIO_RESOURCE_REQUIREMENTS_LIST* Buffer) { PIO_RESOURCE_REQUIREMENTS_LIST RequirementsList; + + UNREFERENCED_PARAMETER(PdoExtension); + UNREFERENCED_PARAMETER(PciData); + { /* There aren't, so use the zero descriptor */ RequirementsList = PciZeroIoResourceRequirements; @@ -792,6 +799,8 @@ ULONG LegacyBaseAddress; USHORT Command; UCHAR RegValue; + + UNREFERENCED_PARAMETER(SlotNumber);
/* Check what kind of hack operation this is */ switch (OperationType) @@ -1293,6 +1302,8 @@ PPCI_COMMON_HEADER PciData, Current; PPCI_PDO_EXTENSION PdoExtension;
+ UNREFERENCED_PARAMETER(Reserved); + /* Grab all parameters from the context */ PdoExtension = Context->PdoExtension; Current = Context->Current; @@ -1577,7 +1588,7 @@ USHORT SubVendorId, SubSystemId; PCI_CAPABILITIES_HEADER CapHeader, PcixCapHeader; UCHAR SecondaryBus; - DPRINT1("PCI Scan Bus: FDO Extension @ 0x%x, Base Bus = 0x%x\n", + DPRINT1("PCI Scan Bus: FDO Extension @ 0x%p, Base Bus = 0x%x\n", DeviceExtension, DeviceExtension->BaseBus);
/* Is this the root FDO? */ @@ -1996,7 +2007,7 @@ ((TempOffset) && (PciData->LatencyTimer == 64))) { /* Keep track of the fact that it needs configuration */ - DPRINT1("PCI - ScanBus, PDOx %x found unconfigured\n", + DPRINT1("PCI - ScanBus, PDOx %p found unconfigured\n", NewExtension); NewExtension->NeedsHotPlugConfiguration = TRUE; } @@ -2060,7 +2071,7 @@ { /* This means this PDO existed before, but not anymore */ PdoExtension->ReportedMissing = TRUE; - DPRINT1("PCI - Old device (pdox) %08x not found on rescan.\n", + DPRINT1("PCI - Old device (pdox) %p not found on rescan.\n", PdoExtension); } else @@ -2098,7 +2109,7 @@ }
/* Print out that we're ready to dump relations */ - DPRINT1("PCI QueryDeviceRelations/BusRelations FDOx %08x (bus 0x%02x)\n", + DPRINT1("PCI QueryDeviceRelations/BusRelations FDOx %p (bus 0x%02x)\n", DeviceExtension, DeviceExtension->BaseBus);
@@ -2108,7 +2119,7 @@ while (PdoExtension) { /* Dump this relation */ - DPRINT1(" QDR PDO %08x (x %08x)%s\n", + DPRINT1(" QDR PDO %p (x %p)%s\n", PdoExtension->PhysicalDeviceObject, PdoExtension, PdoExtension->NotPresent ? @@ -2128,7 +2139,7 @@ }
/* Terminate dumping the relations */ - DPRINT1(" QDR Total PDO count = %d (%d already in list)\n", + DPRINT1(" QDR Total PDO count = %u (%u already in list)\n", NewRelations->Count + PdoCount, NewRelations->Count);
@@ -2150,6 +2161,8 @@ BOOLEAN Native; PPCI_CONFIGURATOR Configurator;
+ UNREFERENCED_PARAMETER(SomethingSomethingDarkSide); + /* Get the FDO and read the configuration data */ FdoExtension = PdoExtension->ParentFdoExtension; PciReadDeviceConfig(PdoExtension, &PciData, 0, PCI_COMMON_HDR_LENGTH); @@ -2210,7 +2223,7 @@ if (PciData.LatencyTimer != NewLatencyTimer) { /* Debug notification */ - DPRINT1("PCI (pdox %08x) changing latency from %02x to %02x.\n", + DPRINT1("PCI (pdox %p) changing latency from %02x to %02x.\n", PdoExtension, PciData.LatencyTimer, NewLatencyTimer); @@ -2221,7 +2234,7 @@ if (PciData.CacheLineSize != NewCacheLineSize) { /* Debug notification */ - DPRINT1("PCI (pdox %08x) changing cache line size from %02x to %02x.\n", + DPRINT1("PCI (pdox %p) changing cache line size from %02x to %02x.\n", PdoExtension, PciData.CacheLineSize, NewCacheLineSize);
Modified: trunk/reactos/drivers/bus/pcix/fdo.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/fdo.c?rev=... ============================================================================== --- trunk/reactos/drivers/bus/pcix/fdo.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/fdo.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -124,6 +124,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_FDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED; return STATUS_NOT_SUPPORTED; } @@ -134,6 +138,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_FDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_SUPPORTED; } @@ -144,6 +152,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_FDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_SUPPORTED; } @@ -154,6 +166,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_FDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_SUPPORTED; } @@ -164,6 +180,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_FDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_SUPPORTED; } @@ -174,6 +194,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_FDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_SUPPORTED; } @@ -290,6 +314,8 @@ PAGED_CODE(); ASSERT_FDO(DeviceExtension);
+ UNREFERENCED_PARAMETER(Irp); + /* Get the capabilities */ Capabilities = IoStackLocation->Parameters.DeviceCapabilities.Capabilities;
@@ -311,6 +337,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_FDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_SUPPORTED; } @@ -321,6 +351,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_FDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_SUPPORTED; } @@ -331,6 +365,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_FDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_SUPPORTED; }
Modified: trunk/reactos/drivers/bus/pcix/hookhal.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/hookhal.c?... ============================================================================== --- trunk/reactos/drivers/bus/pcix/hookhal.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/hookhal.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -27,6 +27,10 @@ OUT PULONG AddressSpace, OUT PPHYSICAL_ADDRESS TranslatedAddress) { + UNREFERENCED_PARAMETER(InterfaceType); + UNREFERENCED_PARAMETER(BusNumber); + UNREFERENCED_PARAMETER(AddressSpace); + /* FIXME: Broken translation */ UNIMPLEMENTED; TranslatedAddress->QuadPart = BusAddress.QuadPart;
Modified: trunk/reactos/drivers/bus/pcix/init.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/init.c?rev... ============================================================================== --- trunk/reactos/drivers/bus/pcix/init.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/init.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -677,15 +677,19 @@ NTAPI PciGetDebugPorts(IN HANDLE DebugKey) { + UNREFERENCED_PARAMETER(DebugKey); /* This function is not yet implemented */ UNIMPLEMENTED_DBGBREAK(); return STATUS_SUCCESS; }
+DRIVER_UNLOAD PciDriverUnload; + VOID NTAPI PciDriverUnload(IN PDRIVER_OBJECT DriverObject) { + UNREFERENCED_PARAMETER(DriverObject); /* This function is not yet implemented */ UNIMPLEMENTED_DBGBREAK("PCI: Unload\n"); }
Modified: trunk/reactos/drivers/bus/pcix/intrface/agpintrf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/intrface/a... ============================================================================== --- trunk/reactos/drivers/bus/pcix/intrface/agpintrf.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/intrface/agpintrf.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -33,6 +33,7 @@ NTAPI agpintrf_Initializer(IN PVOID Instance) { + UNREFERENCED_PARAMETER(Instance); /* PnP Interfaces don't get Initialized */ ASSERTMSG(FALSE, "PCI agpintrf_Initializer, unexpected call."); return STATUS_UNSUCCESSFUL; @@ -49,6 +50,12 @@ { PPCI_PDO_EXTENSION PdoExtension = (PPCI_PDO_EXTENSION)DeviceExtension;
+ UNREFERENCED_PARAMETER(Instance); + UNREFERENCED_PARAMETER(InterfaceData); + UNREFERENCED_PARAMETER(Version); + UNREFERENCED_PARAMETER(Size); + UNREFERENCED_PARAMETER(Interface); + /* Only AGP bridges are supported (which are PCI-to-PCI Bridge Devices) */ if ((PdoExtension->BaseClass != PCI_CLASS_BRIDGE_DEV) || (PdoExtension->SubClass != PCI_SUBCLASS_BR_PCI_TO_PCI))
Modified: trunk/reactos/drivers/bus/pcix/intrface/busintrf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/intrface/b... ============================================================================== --- trunk/reactos/drivers/bus/pcix/intrface/busintrf.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/intrface/busintrf.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -33,6 +33,7 @@ NTAPI busintrf_Initializer(IN PVOID Instance) { + UNREFERENCED_PARAMETER(Instance); /* PnP Interfaces don't get Initialized */ ASSERTMSG(FALSE, "PCI busintrf_Initializer, unexpected call."); return STATUS_UNSUCCESSFUL; @@ -47,6 +48,13 @@ IN USHORT Size, IN PINTERFACE Interface) { + UNREFERENCED_PARAMETER(DeviceExtension); + UNREFERENCED_PARAMETER(Instance); + UNREFERENCED_PARAMETER(InterfaceData); + UNREFERENCED_PARAMETER(Version); + UNREFERENCED_PARAMETER(Size); + UNREFERENCED_PARAMETER(Interface); + /* Not yet implemented */ UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_IMPLEMENTED;
Modified: trunk/reactos/drivers/bus/pcix/intrface/cardbus.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/intrface/c... ============================================================================== --- trunk/reactos/drivers/bus/pcix/intrface/cardbus.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/intrface/cardbus.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -33,6 +33,7 @@ NTAPI Cardbus_SaveCurrentSettings(IN PPCI_CONFIGURATOR_CONTEXT Context) { + UNREFERENCED_PARAMETER(Context); UNIMPLEMENTED_DBGBREAK(); }
@@ -40,6 +41,7 @@ NTAPI Cardbus_SaveLimits(IN PPCI_CONFIGURATOR_CONTEXT Context) { + UNREFERENCED_PARAMETER(Context); UNIMPLEMENTED_DBGBREAK(); }
@@ -47,6 +49,7 @@ NTAPI Cardbus_MassageHeaderForLimitsDetermination(IN PPCI_CONFIGURATOR_CONTEXT Context) { + UNREFERENCED_PARAMETER(Context); UNIMPLEMENTED_DBGBREAK(); }
@@ -54,6 +57,7 @@ NTAPI Cardbus_RestoreCurrent(IN PPCI_CONFIGURATOR_CONTEXT Context) { + UNREFERENCED_PARAMETER(Context); UNIMPLEMENTED_DBGBREAK(); }
@@ -63,6 +67,9 @@ IN PPCI_COMMON_HEADER PciData, IN PIO_RESOURCE_DESCRIPTOR IoDescriptor) { + UNREFERENCED_PARAMETER(Context); + UNREFERENCED_PARAMETER(PciData); + UNREFERENCED_PARAMETER(IoDescriptor); UNIMPLEMENTED_DBGBREAK(); }
@@ -71,6 +78,8 @@ Cardbus_ResetDevice(IN PPCI_PDO_EXTENSION PdoExtension, IN PPCI_COMMON_HEADER PciData) { + UNREFERENCED_PARAMETER(PdoExtension); + UNREFERENCED_PARAMETER(PciData); UNIMPLEMENTED_DBGBREAK(); }
@@ -79,6 +88,8 @@ Cardbus_ChangeResourceSettings(IN PPCI_PDO_EXTENSION PdoExtension, IN PPCI_COMMON_HEADER PciData) { + UNREFERENCED_PARAMETER(PdoExtension); + UNREFERENCED_PARAMETER(PciData); UNIMPLEMENTED_DBGBREAK(); }
@@ -86,6 +97,7 @@ NTAPI pcicbintrf_Initializer(IN PVOID Instance) { + UNREFERENCED_PARAMETER(Instance); /* PnP Interfaces don't get Initialized */ ASSERTMSG(FALSE, "PCI pcicbintrf_Initializer, unexpected call."); return STATUS_UNSUCCESSFUL; @@ -100,6 +112,13 @@ IN USHORT Size, IN PINTERFACE Interface) { + UNREFERENCED_PARAMETER(DeviceExtension); + UNREFERENCED_PARAMETER(Instance); + UNREFERENCED_PARAMETER(InterfaceData); + UNREFERENCED_PARAMETER(Version); + UNREFERENCED_PARAMETER(Size); + UNREFERENCED_PARAMETER(Interface); + /* Not yet implemented */ UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_IMPLEMENTED;
Modified: trunk/reactos/drivers/bus/pcix/intrface/devhere.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/intrface/d... ============================================================================== --- trunk/reactos/drivers/bus/pcix/intrface/devhere.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/intrface/devhere.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -33,6 +33,7 @@ NTAPI devpresent_Initializer(IN PVOID Instance) { + UNREFERENCED_PARAMETER(Instance); /* PnP Interfaces don't get Initialized */ ASSERTMSG(FALSE, "PCI devpresent_Initializer, unexpected call."); return STATUS_UNSUCCESSFUL; @@ -49,6 +50,13 @@ { PAGED_CODE();
+ UNREFERENCED_PARAMETER(DeviceExtension); + UNREFERENCED_PARAMETER(Instance); + UNREFERENCED_PARAMETER(InterfaceData); + UNREFERENCED_PARAMETER(Version); + UNREFERENCED_PARAMETER(Size); + UNREFERENCED_PARAMETER(Interface); + /* Not yet implemented */ UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_IMPLEMENTED;
Modified: trunk/reactos/drivers/bus/pcix/intrface/intrface.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/intrface/i... ============================================================================== --- trunk/reactos/drivers/bus/pcix/intrface/intrface.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/intrface/intrface.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -56,7 +56,7 @@ RtlStringFromGUID(InterfaceType, &GuidString); DPRINT1("PCI - PciQueryInterface TYPE = %wZ\n", &GuidString); RtlFreeUnicodeString(&GuidString); - DPRINT1(" Size = %d, Version = %d, InterfaceData = %x, LastChance = %s\n", + DPRINT1(" Size = %u, Version = %u, InterfaceData = %p, LastChance = %s\n", Size, Version, InterfaceData, @@ -130,7 +130,7 @@ if (!NT_SUCCESS(Status)) { /* This interface was not initialized correctly, skip it */ - DPRINT1("PCI - PciQueryInterface - Contructor %08lx = %08lx\n", + DPRINT1("PCI - PciQueryInterface - Contructor %p = %08lx\n", PciInterface->Constructor, Status); continue; }
Modified: trunk/reactos/drivers/bus/pcix/intrface/lddintrf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/intrface/l... ============================================================================== --- trunk/reactos/drivers/bus/pcix/intrface/lddintrf.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/intrface/lddintrf.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -33,6 +33,7 @@ NTAPI lddintrf_Initializer(IN PVOID Instance) { + UNREFERENCED_PARAMETER(Instance); /* PnP Interfaces don't get Initialized */ ASSERTMSG(FALSE, "PCI lddintrf_Initializer, unexpected call."); return STATUS_UNSUCCESSFUL; @@ -47,6 +48,13 @@ IN USHORT Size, IN PINTERFACE Interface) { + UNREFERENCED_PARAMETER(DeviceExtension); + UNREFERENCED_PARAMETER(Instance); + UNREFERENCED_PARAMETER(InterfaceData); + UNREFERENCED_PARAMETER(Version); + UNREFERENCED_PARAMETER(Size); + UNREFERENCED_PARAMETER(Interface); + /* Not yet implemented */ UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_IMPLEMENTED;
Modified: trunk/reactos/drivers/bus/pcix/intrface/locintrf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/intrface/l... ============================================================================== --- trunk/reactos/drivers/bus/pcix/intrface/locintrf.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/intrface/locintrf.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -33,6 +33,7 @@ NTAPI locintrf_Initializer(IN PVOID Instance) { + UNREFERENCED_PARAMETER(Instance); /* PnP Interfaces don't get Initialized */ ASSERTMSG(FALSE, "PCI locintrf_Initializer, unexpected call."); return STATUS_UNSUCCESSFUL; @@ -47,6 +48,13 @@ IN USHORT Size, IN PINTERFACE Interface) { + UNREFERENCED_PARAMETER(DeviceExtension); + UNREFERENCED_PARAMETER(Instance); + UNREFERENCED_PARAMETER(InterfaceData); + UNREFERENCED_PARAMETER(Version); + UNREFERENCED_PARAMETER(Size); + UNREFERENCED_PARAMETER(Interface); + /* Not yet implemented */ UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_IMPLEMENTED;
Modified: trunk/reactos/drivers/bus/pcix/intrface/pmeintf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/intrface/p... ============================================================================== --- trunk/reactos/drivers/bus/pcix/intrface/pmeintf.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/intrface/pmeintf.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -33,6 +33,7 @@ NTAPI PciPmeInterfaceInitializer(IN PVOID Instance) { + UNREFERENCED_PARAMETER(Instance); /* PnP Interfaces don't get Initialized */ ASSERTMSG(FALSE, "PCI PciPmeInterfaceInitializer, unexpected call."); return STATUS_UNSUCCESSFUL; @@ -47,6 +48,12 @@ IN USHORT Size, IN PINTERFACE Interface) { + UNREFERENCED_PARAMETER(DeviceExtension); + UNREFERENCED_PARAMETER(Instance); + UNREFERENCED_PARAMETER(InterfaceData); + UNREFERENCED_PARAMETER(Size); + UNREFERENCED_PARAMETER(Interface); + /* Only version 1 is supported */ if (Version != PCI_PME_INTRF_STANDARD_VER) return STATUS_NOINTERFACE;
Modified: trunk/reactos/drivers/bus/pcix/intrface/routintf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/intrface/r... ============================================================================== --- trunk/reactos/drivers/bus/pcix/intrface/routintf.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/intrface/routintf.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -35,6 +35,7 @@ NTAPI routeintrf_Initializer(IN PVOID Instance) { + UNREFERENCED_PARAMETER(Instance); /* PnP Interfaces don't get Initialized */ ASSERTMSG(FALSE, "PCI routeintrf_Initializer, unexpected call."); return STATUS_UNSUCCESSFUL; @@ -49,6 +50,12 @@ IN USHORT Size, IN PINTERFACE Interface) { + UNREFERENCED_PARAMETER(DeviceExtension); + UNREFERENCED_PARAMETER(Instance); + UNREFERENCED_PARAMETER(InterfaceData); + UNREFERENCED_PARAMETER(Size); + UNREFERENCED_PARAMETER(Interface); + /* Only version 1 is supported */ if (Version != PCI_INT_ROUTE_INTRF_STANDARD_VER) return STATUS_NOINTERFACE;
Modified: trunk/reactos/drivers/bus/pcix/pci.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/pci.h?rev=... ============================================================================== --- trunk/reactos/drivers/bus/pcix/pci.h [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/pci.h [iso-8859-1] Fri May 10 10:22:01 2013 @@ -535,6 +535,9 @@ // // IRP Dispatch Routines // + +DRIVER_DISPATCH PciDispatchIrp; + NTSTATUS NTAPI PciDispatchIrp( @@ -610,6 +613,9 @@ // // Bus FDO Routines // + +DRIVER_ADD_DEVICE PciAddDevice; + NTSTATUS NTAPI PciAddDevice( @@ -1120,6 +1126,8 @@ PciClassifyDeviceType( IN PPCI_PDO_EXTENSION PdoExtension ); + +KIPI_BROADCAST_WORKER PciExecuteCriticalSystemRoutine;
ULONG_PTR NTAPI
Modified: trunk/reactos/drivers/bus/pcix/pci/id.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/pci/id.c?r... ============================================================================== --- trunk/reactos/drivers/bus/pcix/pci/id.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/pci/id.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -397,6 +397,8 @@ ULONG Length; NTSTATUS Status;
+ UNREFERENCED_PARAMETER(Locale); + /* Check what the caller is requesting */ switch (QueryType) {
Modified: trunk/reactos/drivers/bus/pcix/pci/ppbridge.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/pci/ppbrid... ============================================================================== --- trunk/reactos/drivers/bus/pcix/pci/ppbridge.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/pci/ppbridge.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -630,6 +630,9 @@ IN PPCI_COMMON_HEADER PciData, IN PIO_RESOURCE_DESCRIPTOR IoDescriptor) { + + UNREFERENCED_PARAMETER(Context); + /* Does this bridge have VGA decodes on it? */ if (PciData->u.type1.BridgeControl & PCI_ENABLE_BRIDGE_VGA) { @@ -671,6 +674,8 @@ PPBridge_ResetDevice(IN PPCI_PDO_EXTENSION PdoExtension, IN PPCI_COMMON_HEADER PciData) { + UNREFERENCED_PARAMETER(PdoExtension); + UNREFERENCED_PARAMETER(PciData); UNIMPLEMENTED_DBGBREAK(); }
Modified: trunk/reactos/drivers/bus/pcix/pcivrify.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/pcivrify.c... ============================================================================== --- trunk/reactos/drivers/bus/pcix/pcivrify.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/pcivrify.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -73,11 +73,16 @@ return VerifierData; }
+DRIVER_NOTIFICATION_CALLBACK_ROUTINE PciVerifierProfileChangeCallback; + NTSTATUS NTAPI PciVerifierProfileChangeCallback(IN PVOID NotificationStructure, IN PVOID Context) { + UNREFERENCED_PARAMETER(NotificationStructure); + UNREFERENCED_PARAMETER(Context); + /* This function is not yet implemented */ UNIMPLEMENTED_DBGBREAK(); return STATUS_SUCCESS;
Modified: trunk/reactos/drivers/bus/pcix/pdo.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/pdo.c?rev=... ============================================================================== --- trunk/reactos/drivers/bus/pcix/pdo.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/pdo.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -79,6 +79,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_PDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_SUPPORTED; } @@ -89,6 +93,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_PDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED; return STATUS_NOT_SUPPORTED; } @@ -99,6 +107,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_PDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_SUPPORTED; } @@ -113,6 +125,8 @@ BOOLEAN Changed, DoReset; POWER_STATE PowerState; PAGED_CODE(); + + UNREFERENCED_PARAMETER(Irp);
DoReset = FALSE;
@@ -206,6 +220,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_PDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED; return STATUS_NOT_SUPPORTED; } @@ -216,6 +234,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_PDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_SUPPORTED; } @@ -226,6 +248,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_PDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_SUPPORTED; } @@ -236,6 +262,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_PDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_SUPPORTED; } @@ -246,6 +276,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_PDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_SUPPORTED; } @@ -256,6 +290,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_PDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_SUPPORTED; } @@ -266,6 +304,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_PDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_SUPPORTED; } @@ -312,6 +354,8 @@ { PAGED_CODE();
+ UNREFERENCED_PARAMETER(Irp); + /* Call the worker function */ return PciQueryCapabilities(DeviceExtension, IoStackLocation-> @@ -326,6 +370,8 @@ { PAGED_CODE();
+ UNREFERENCED_PARAMETER(IoStackLocation); + /* Call the worker function */ return PciQueryResources(DeviceExtension, (PCM_RESOURCE_LIST*)&Irp->IoStatus.Information); @@ -338,6 +384,8 @@ IN PPCI_PDO_EXTENSION DeviceExtension) { PAGED_CODE(); + + UNREFERENCED_PARAMETER(IoStackLocation);
/* Call the worker function */ return PciQueryRequirements(DeviceExtension, @@ -384,6 +432,8 @@ { PAGED_CODE();
+ UNREFERENCED_PARAMETER(IoStackLocation); + /* Call the worker function */ return PciQueryBusInformation(DeviceExtension, (PPNP_BUS_INFORMATION*)&Irp-> @@ -396,6 +446,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_PDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_SUPPORTED; } @@ -406,6 +460,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_PDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_SUPPORTED; } @@ -416,6 +474,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_PDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED; return STATUS_NOT_SUPPORTED; } @@ -426,6 +488,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_PDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_SUPPORTED; } @@ -436,6 +502,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_PDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_SUPPORTED; } @@ -446,6 +516,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_PDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED_DBGBREAK(); return STATUS_NOT_SUPPORTED; }
Modified: trunk/reactos/drivers/bus/pcix/power.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/power.c?re... ============================================================================== --- trunk/reactos/drivers/bus/pcix/power.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/power.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -206,6 +206,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_FDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED; while (TRUE); return STATUS_NOT_SUPPORTED; @@ -217,6 +221,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_FDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED; while (TRUE); return STATUS_NOT_SUPPORTED; @@ -228,6 +236,10 @@ IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_FDO_EXTENSION DeviceExtension) { + UNREFERENCED_PARAMETER(Irp); + UNREFERENCED_PARAMETER(IoStackLocation); + UNREFERENCED_PARAMETER(DeviceExtension); + UNIMPLEMENTED; while (TRUE); return STATUS_NOT_SUPPORTED;
Modified: trunk/reactos/drivers/bus/pcix/utils.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcix/utils.c?re... ============================================================================== --- trunk/reactos/drivers/bus/pcix/utils.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/pcix/utils.c [iso-8859-1] Fri May 10 10:22:01 2013 @@ -502,7 +502,7 @@ if (!Buffer) { /* No memory, fail the request */ - DPRINT1("PCI - Failed to allocate DeviceProperty buffer (%d bytes).\n", BufferLength); + DPRINT1("PCI - Failed to allocate DeviceProperty buffer (%u bytes).\n", BufferLength); Status = STATUS_INSUFFICIENT_RESOURCES; break; } @@ -750,6 +750,8 @@ PciIsDeviceOnDebugPath(IN PPCI_PDO_EXTENSION DeviceExtension) { PAGED_CODE(); + + UNREFERENCED_PARAMETER(DeviceExtension);
/* Check for too many, or no, debug ports */ ASSERT(PciDebugPortsCount <= MAX_DEBUGGING_DEVICES_SUPPORTED); @@ -1315,6 +1317,8 @@ { PPNP_BUS_INFORMATION BusInfo;
+ UNREFERENCED_PARAMETER(Buffer); + /* Allocate a structure for the bus information */ BusInfo = ExAllocatePoolWithTag(PagedPool, sizeof(PNP_BUS_INFORMATION), @@ -1340,7 +1344,7 @@
/* Check if a $PIR from the BIOS is used (legacy IRQ routing) */ ParentExtension = PdoExtension->ParentFdoExtension; - DPRINT1("Slot lookup for %d.%d.%d\n", + DPRINT1("Slot lookup for %d.%u.%u\n", ParentExtension ? ParentExtension->BaseBus : -1, PdoExtension->Slot.u.bits.DeviceNumber, PdoExtension->Slot.u.bits.FunctionNumber); @@ -1348,12 +1352,12 @@ { /* Read every slot information entry */ SlotInfo = &PciIrqRoutingTable->Slot[0]; - DPRINT1("PIR$ %p is %lx bytes, slot 0 is at: %lx\n", + DPRINT1("PIR$ %p is %lx bytes, slot 0 is at: %p\n", PciIrqRoutingTable, PciIrqRoutingTable->TableSize, SlotInfo); while (SlotInfo < (PSLOT_INFO)((ULONG_PTR)PciIrqRoutingTable + PciIrqRoutingTable->TableSize)) { - DPRINT1("Slot Info: %d.%d->#%d\n", + DPRINT1("Slot Info: %u.%u->#%u\n", SlotInfo->BusNumber, SlotInfo->DeviceNumber, SlotInfo->SlotNumber);