kernel/acpi: Tabify
authorSascha Wildner <saw@online.de>
Thu, 12 Jun 2014 17:06:52 +0000 (19:06 +0200)
committerSascha Wildner <saw@online.de>
Thu, 12 Jun 2014 17:06:52 +0000 (19:06 +0200)
sys/dev/acpica/Osd/OsdHardware.c
sys/dev/acpica/Osd/OsdInterrupt.c
sys/dev/acpica/Osd/OsdTable.c

index 12bea65..13b94f1 100644 (file)
@@ -62,14 +62,14 @@ AcpiOsReadPort(ACPI_IO_ADDRESS InPort, UINT32 *Value, UINT32 Width)
 {
     switch (Width) {
     case 8:
-        *Value = bus_space_read_1(ACPI_BUS_SPACE_IO, ACPI_BUS_HANDLE, InPort);
-        break;
+       *Value = bus_space_read_1(ACPI_BUS_SPACE_IO, ACPI_BUS_HANDLE, InPort);
+       break;
     case 16:
-        *Value = bus_space_read_2(ACPI_BUS_SPACE_IO, ACPI_BUS_HANDLE, InPort);
-        break;
+       *Value = bus_space_read_2(ACPI_BUS_SPACE_IO, ACPI_BUS_HANDLE, InPort);
+       break;
     case 32:
-        *Value = bus_space_read_4(ACPI_BUS_SPACE_IO, ACPI_BUS_HANDLE, InPort);
-        break;
+       *Value = bus_space_read_4(ACPI_BUS_SPACE_IO, ACPI_BUS_HANDLE, InPort);
+       break;
     }
 
     return (AE_OK);
@@ -80,14 +80,14 @@ AcpiOsWritePort(ACPI_IO_ADDRESS OutPort, UINT32 Value, UINT32 Width)
 {
     switch (Width) {
     case 8:
-        bus_space_write_1(ACPI_BUS_SPACE_IO, ACPI_BUS_HANDLE, OutPort, Value);
-        break;
+       bus_space_write_1(ACPI_BUS_SPACE_IO, ACPI_BUS_HANDLE, OutPort, Value);
+       break;
     case 16:
-        bus_space_write_2(ACPI_BUS_SPACE_IO, ACPI_BUS_HANDLE, OutPort, Value);
-        break;
+       bus_space_write_2(ACPI_BUS_SPACE_IO, ACPI_BUS_HANDLE, OutPort, Value);
+       break;
     case 32:
-        bus_space_write_4(ACPI_BUS_SPACE_IO, ACPI_BUS_HANDLE, OutPort, Value);
-        break;
+       bus_space_write_4(ACPI_BUS_SPACE_IO, ACPI_BUS_HANDLE, OutPort, Value);
+       break;
     }
 
     return (AE_OK);
@@ -103,7 +103,7 @@ AcpiOsReadPciConfiguration(ACPI_PCI_ID *PciId, UINT32 Register, UINT64 *Value,
        return (AE_SUPPORT);
 
     if (!pci_cfgregopen())
-        return (AE_NOT_EXIST);
+       return (AE_NOT_EXIST);
 
     *Value = pci_cfgregread(PciId->Bus, PciId->Device,
                                      PciId->Function, Register, bytes);
index 4e52409..d02111e 100644 (file)
@@ -94,7 +94,7 @@ AcpiOsInstallInterruptHandler(UINT32 InterruptNumber,
     /* Set up the interrupt resource. */
     sc->acpi_irq_rid = 0;
     bus_set_resource(sc->acpi_dev, SYS_RES_IRQ, 0, InterruptNumber, 1,
-        machintr_legacy_intr_cpuid(InterruptNumber));
+       machintr_legacy_intr_cpuid(InterruptNumber));
     sc->acpi_irq = bus_alloc_resource_any(sc->acpi_dev, SYS_RES_IRQ,
        &sc->acpi_irq_rid, flags);
     if (sc->acpi_irq == NULL) {
index 30110c3..a718c80 100644 (file)
@@ -44,7 +44,7 @@ TUNABLE_STR("hw.acpi.osname", acpi_osname, sizeof(acpi_osname));
 ACPI_STATUS
 AcpiOsPredefinedOverride (
     const ACPI_PREDEFINED_NAMES *InitVal,
-    ACPI_STRING                 *NewVal)
+    ACPI_STRING                 *NewVal)
 {
     if (InitVal == NULL || NewVal == NULL)
        return (AE_BAD_PARAMETER);
@@ -63,18 +63,18 @@ AcpiOsTableOverride (
     ACPI_TABLE_HEADER       *ExistingTable,
     ACPI_TABLE_HEADER       **NewTable)
 {
-    caddr_t                 acpi_dsdt, p;
+    caddr_t                acpi_dsdt, p;
 
     if (ExistingTable == NULL || NewTable == NULL)
-        return(AE_BAD_PARAMETER);
+       return(AE_BAD_PARAMETER);
 
     *NewTable = NULL;
     if (ACPI_COMPARE_NAME(ExistingTable->Signature, ACPI_SIG_DSDT) == 0)
-        return(AE_SUPPORT);
+       return(AE_SUPPORT);
     if ((acpi_dsdt = preload_search_by_type("acpi_dsdt")) == NULL)
-        return(AE_NOT_FOUND);
+       return(AE_NOT_FOUND);
     if ((p = preload_search_info(acpi_dsdt, MODINFO_ADDR)) == NULL)
-        return(AE_ERROR);
+       return(AE_ERROR);
     *NewTable = *(void **)p;
 
     return (AE_OK);