Create a branch for cmake bringup.
[reactos.git] / drivers / bus / pci / pci.c
index 135bc7b..25621e4 100644 (file)
 #include <debug.h>
 
 static DRIVER_DISPATCH PciDispatchDeviceControl;
-static NTSTATUS STDCALL PciDispatchDeviceControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
+static NTSTATUS NTAPI PciDispatchDeviceControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
 
 static DRIVER_ADD_DEVICE PciAddDevice;
-static NTSTATUS STDCALL PciAddDevice(IN PDRIVER_OBJECT DriverObject, IN PDEVICE_OBJECT PhysicalDeviceObject);
+static NTSTATUS NTAPI PciAddDevice(IN PDRIVER_OBJECT DriverObject, IN PDEVICE_OBJECT PhysicalDeviceObject);
 
 static DRIVER_DISPATCH PciPowerControl;
-static NTSTATUS STDCALL PciPowerControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
+static NTSTATUS NTAPI PciPowerControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
 
 static DRIVER_DISPATCH PciPnpControl;
-static NTSTATUS STDCALL PciPnpControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
+static NTSTATUS NTAPI PciPnpControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
 
 
 #ifdef  ALLOC_PRAGMA
@@ -44,7 +44,7 @@ PPCI_DRIVER_EXTENSION DriverExtension = NULL;
 /*** PRIVATE *****************************************************************/
 
 static NTSTATUS
-STDCALL
+NTAPI
 PciDispatchDeviceControl(
   IN PDEVICE_OBJECT DeviceObject,
   IN PIRP Irp)
@@ -52,6 +52,7 @@ PciDispatchDeviceControl(
   PIO_STACK_LOCATION IrpSp;
   NTSTATUS Status;
 
+  UNREFERENCED_PARAMETER(DeviceObject);
   DPRINT("Called. IRP is at (0x%X)\n", Irp);
 
   Irp->IoStatus.Information = 0;
@@ -79,7 +80,7 @@ PciDispatchDeviceControl(
 
 
 static NTSTATUS
-STDCALL
+NTAPI
 PciPnpControl(
   IN PDEVICE_OBJECT DeviceObject,
   IN PIRP Irp)
@@ -110,7 +111,7 @@ PciPnpControl(
 
 
 static NTSTATUS
-STDCALL
+NTAPI
 PciPowerControl(
   IN PDEVICE_OBJECT DeviceObject,
   IN PIRP Irp)
@@ -139,7 +140,7 @@ PciPowerControl(
 
 
 static NTSTATUS
-STDCALL
+NTAPI
 PciAddDevice(
   IN PDRIVER_OBJECT DriverObject,
   IN PDEVICE_OBJECT PhysicalDeviceObject)
@@ -181,13 +182,14 @@ PciAddDevice(
 
 
 NTSTATUS
-STDCALL
+NTAPI
 DriverEntry(
   IN PDRIVER_OBJECT DriverObject,
   IN PUNICODE_STRING RegistryPath)
 {
   NTSTATUS Status;
 
+  UNREFERENCED_PARAMETER(RegistryPath);
   DPRINT("Peripheral Component Interconnect Bus Driver\n");
 
   DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = PciDispatchDeviceControl;
@@ -606,6 +608,10 @@ PciCreateDeviceDescriptionString(PUNICODE_STRING DeviceDescription,
           Description = L"Fibre Channel controller";
           break;
 
+        case PCI_SUBCLASS_SB_SMBUS:
+          Description = L"SMBus controller";
+          break;
+
         default:
           Description = L"Other serial bus controller";
           break;