Lines 86-98
acpi_status acpi_os_initialize1(void)
Link Here
|
86 |
* Initialize PCI configuration space access, as we'll need to access |
86 |
* Initialize PCI configuration space access, as we'll need to access |
87 |
* it while walking the namespace (bus 0 and root bridges w/ _BBNs). |
87 |
* it while walking the namespace (bus 0 and root bridges w/ _BBNs). |
88 |
*/ |
88 |
*/ |
89 |
#ifdef CONFIG_ACPI_PCI |
|
|
90 |
if (!raw_pci_ops) { |
89 |
if (!raw_pci_ops) { |
91 |
printk(KERN_ERR PREFIX |
90 |
printk(KERN_ERR PREFIX |
92 |
"Access to PCI configuration space unavailable\n"); |
91 |
"Access to PCI configuration space unavailable\n"); |
93 |
return AE_NULL_ENTRY; |
92 |
return AE_NULL_ENTRY; |
94 |
} |
93 |
} |
95 |
#endif |
|
|
96 |
kacpid_wq = create_singlethread_workqueue("kacpid"); |
94 |
kacpid_wq = create_singlethread_workqueue("kacpid"); |
97 |
BUG_ON(!kacpid_wq); |
95 |
BUG_ON(!kacpid_wq); |
98 |
|
96 |
|
Lines 484-491
acpi_os_write_memory(acpi_physical_addre
Link Here
|
484 |
return AE_OK; |
482 |
return AE_OK; |
485 |
} |
483 |
} |
486 |
|
484 |
|
487 |
#ifdef CONFIG_ACPI_PCI |
|
|
488 |
|
489 |
acpi_status |
485 |
acpi_status |
490 |
acpi_os_read_pci_configuration(struct acpi_pci_id * pci_id, u32 reg, |
486 |
acpi_os_read_pci_configuration(struct acpi_pci_id * pci_id, u32 reg, |
491 |
void *value, u32 width) |
487 |
void *value, u32 width) |
Lines 618-647
void acpi_os_derive_pci_id(acpi_handle r
Link Here
|
618 |
acpi_os_derive_pci_id_2(rhandle, chandle, id, &is_bridge, &bus_number); |
614 |
acpi_os_derive_pci_id_2(rhandle, chandle, id, &is_bridge, &bus_number); |
619 |
} |
615 |
} |
620 |
|
616 |
|
621 |
#else /*!CONFIG_ACPI_PCI */ |
|
|
622 |
|
623 |
acpi_status |
624 |
acpi_os_write_pci_configuration(struct acpi_pci_id * pci_id, |
625 |
u32 reg, acpi_integer value, u32 width) |
626 |
{ |
627 |
return AE_SUPPORT; |
628 |
} |
629 |
|
630 |
acpi_status |
631 |
acpi_os_read_pci_configuration(struct acpi_pci_id * pci_id, |
632 |
u32 reg, void *value, u32 width) |
633 |
{ |
634 |
return AE_SUPPORT; |
635 |
} |
636 |
|
637 |
void acpi_os_derive_pci_id(acpi_handle rhandle, /* upper bound */ |
638 |
acpi_handle chandle, /* current node */ |
639 |
struct acpi_pci_id **id) |
640 |
{ |
641 |
} |
642 |
|
643 |
#endif /*CONFIG_ACPI_PCI */ |
644 |
|
645 |
static void acpi_os_execute_deferred(void *context) |
617 |
static void acpi_os_execute_deferred(void *context) |
646 |
{ |
618 |
{ |
647 |
struct acpi_os_dpc *dpc = NULL; |
619 |
struct acpi_os_dpc *dpc = NULL; |