| .. | .. |
|---|
| 3 | 3 | * |
|---|
| 4 | 4 | * Name: achware.h -- hardware specific interfaces |
|---|
| 5 | 5 | * |
|---|
| 6 | | - * Copyright (C) 2000 - 2018, Intel Corp. |
|---|
| 6 | + * Copyright (C) 2000 - 2020, Intel Corp. |
|---|
| 7 | 7 | * |
|---|
| 8 | 8 | *****************************************************************************/ |
|---|
| 9 | 9 | |
|---|
| .. | .. |
|---|
| 73 | 73 | |
|---|
| 74 | 74 | acpi_status acpi_hw_write_port(acpi_io_address address, u32 value, u32 width); |
|---|
| 75 | 75 | |
|---|
| 76 | +acpi_status acpi_hw_validate_io_block(u64 address, u32 bit_width, u32 count); |
|---|
| 77 | + |
|---|
| 76 | 78 | /* |
|---|
| 77 | 79 | * hwgpe - GPE support |
|---|
| 78 | 80 | */ |
|---|
| 81 | +acpi_status acpi_hw_gpe_read(u64 *value, struct acpi_gpe_address *reg); |
|---|
| 82 | + |
|---|
| 83 | +acpi_status acpi_hw_gpe_write(u64 value, struct acpi_gpe_address *reg); |
|---|
| 84 | + |
|---|
| 79 | 85 | u32 acpi_hw_get_gpe_register_bit(struct acpi_gpe_event_info *gpe_event_info); |
|---|
| 80 | 86 | |
|---|
| 81 | 87 | acpi_status |
|---|
| .. | .. |
|---|
| 101 | 107 | |
|---|
| 102 | 108 | acpi_status acpi_hw_enable_all_wakeup_gpes(void); |
|---|
| 103 | 109 | |
|---|
| 110 | +u8 acpi_hw_check_all_gpes(acpi_handle gpe_skip_device, u32 gpe_skip_number); |
|---|
| 111 | + |
|---|
| 104 | 112 | acpi_status |
|---|
| 105 | 113 | acpi_hw_enable_runtime_gpe_block(struct acpi_gpe_xrupt_info *gpe_xrupt_info, |
|---|
| 106 | 114 | struct acpi_gpe_block_info *gpe_block, |
|---|
| 107 | 115 | void *context); |
|---|
| 108 | 116 | |
|---|
| 117 | +#ifdef ACPI_PCI_CONFIGURED |
|---|
| 109 | 118 | /* |
|---|
| 110 | 119 | * hwpci - PCI configuration support |
|---|
| 111 | 120 | */ |
|---|
| 112 | 121 | acpi_status |
|---|
| 113 | 122 | acpi_hw_derive_pci_id(struct acpi_pci_id *pci_id, |
|---|
| 114 | 123 | acpi_handle root_pci_device, acpi_handle pci_region); |
|---|
| 124 | +#else |
|---|
| 125 | +static inline acpi_status |
|---|
| 126 | +acpi_hw_derive_pci_id(struct acpi_pci_id *pci_id, acpi_handle root_pci_device, |
|---|
| 127 | + acpi_handle pci_region) |
|---|
| 128 | +{ |
|---|
| 129 | + return AE_SUPPORT; |
|---|
| 130 | +} |
|---|
| 131 | +#endif |
|---|
| 115 | 132 | |
|---|
| 116 | 133 | #endif /* __ACHWARE_H__ */ |
|---|