{
/* Not used in the driver yet */
case 1:
- UNIMPLEMENTED;
- while (TRUE);
+ UNIMPLEMENTED_DBGBREAK();
break;
/* Not used in the driver yet */
case 2:
- UNIMPLEMENTED;
- while (TRUE);
+ UNIMPLEMENTED_DBGBREAK();
break;
/* A drain request */
PciQueryEjectionRelations(IN PPCI_PDO_EXTENSION PdoExtension,
IN OUT PDEVICE_RELATIONS *pDeviceRelations)
{
+ UNREFERENCED_PARAMETER(PdoExtension);
+ UNREFERENCED_PARAMETER(pDeviceRelations);
+
/* Not yet implemented */
- UNIMPLEMENTED;
- while (TRUE);
+ UNIMPLEMENTED_DBGBREAK();
+ return STATUS_NOT_IMPLEMENTED;
}
NTSTATUS
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;
(ExIsProcessorFeaturePresent(PF_PAE_ENABLED)))
{
/* Have not tested this on eVb's machine yet */
- UNIMPLEMENTED;
- while (TRUE);
+ UNIMPLEMENTED_DBGBREAK();
}
/* Check if the requirements are actually the zero list */
USHORT Command;
UCHAR RegValue;
+ UNREFERENCED_PARAMETER(SlotNumber);
+
/* Check what kind of hack operation this is */
switch (OperationType)
{
else
{
/* Logic error in the driver */
- ASSERTMSG(FALSE, "PCI Skip Function - Operation type unknown.");
+ ASSERTMSG("PCI Skip Function - Operation type unknown.", FALSE);
}
/* Check for legacy bridges during resource enumeration */
PPCI_COMMON_HEADER PciData, Current;
PPCI_PDO_EXTENSION PdoExtension;
+ UNREFERENCED_PARAMETER(Reserved);
+
/* Grab all parameters from the context */
PdoExtension = Context->PdoExtension;
Current = Context->Current;
if (!PCI_IS_ROOT_FDO(DeviceExtension))
{
/* Not really handling this year */
- UNIMPLEMENTED;
- while (TRUE);
+ UNIMPLEMENTED_DBGBREAK();
/* Check for PCI bridges with the ISA bit set, or required */
if ((PdoExtension) &&
(PdoExtension->Dependent.type1.IsaBitSet)))
{
/* We'll need to do some legacy support */
- UNIMPLEMENTED;
- while (TRUE);
+ UNIMPLEMENTED_DBGBREAK();
}
}
else
if (PdoExtension->Dependent.type1.VgaBitSet)
{
/* Again, some more legacy support we'll have to do */
- UNIMPLEMENTED;
- while (TRUE);
+ UNIMPLEMENTED_DBGBREAK();
}
}
}
if (PciAssignBusNumbers)
{
/* Not yet supported */
- UNIMPLEMENTED;
- while (TRUE);
+ UNIMPLEMENTED_DBGBREAK();
}
}
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? */
sizeof(UCHAR));
if (SecondaryBus != PdoExtension->Dependent.type1.SecondaryBus)
{
- DPRINT1("PCI: Bus numbers have been changed! Restoring originals.\n");
- UNIMPLEMENTED;
- while (TRUE);
+ UNIMPLEMENTED_DBGBREAK("PCI: Bus numbers have been changed! Restoring originals.\n");
}
}
if (WdTable)
{
/* Check if this PCI device is the ACPI Watchdog Device... */
- UNIMPLEMENTED;
- while (TRUE);
+ UNIMPLEMENTED_DBGBREAK();
}
/* Check for non-simple devices */
if (PdoExtension)
{
/* Rescan scenarios are not yet implemented */
- UNIMPLEMENTED;
- while (TRUE);
+ UNIMPLEMENTED_DBGBREAK();
}
/* Bus processing will need to happen */
((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;
}
{
/* 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
}
/* 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);
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 ?
}
/* 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);
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);
if (!PcipIsSameDevice(PdoExtension, &PciData))
{
/* Fail */
- ASSERTMSG(FALSE, "PCI Set resources - not same device");
+ ASSERTMSG("PCI Set resources - not same device", FALSE);
return STATUS_DEVICE_DOES_NOT_EXIST;
}
(FdoExtension->HotPlugParameters.Acquired))
{
/* Don't have hotplug devices to test with yet, QEMU 0.14 should */
- UNIMPLEMENTED;
- while (TRUE);
+ UNIMPLEMENTED_DBGBREAK();
}
/* Locate the correct resource configurator for this type of device */
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);
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);