forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/acpi/acpica/achware.h
....@@ -3,7 +3,7 @@
33 *
44 * Name: achware.h -- hardware specific interfaces
55 *
6
- * Copyright (C) 2000 - 2018, Intel Corp.
6
+ * Copyright (C) 2000 - 2020, Intel Corp.
77 *
88 *****************************************************************************/
99
....@@ -73,9 +73,15 @@
7373
7474 acpi_status acpi_hw_write_port(acpi_io_address address, u32 value, u32 width);
7575
76
+acpi_status acpi_hw_validate_io_block(u64 address, u32 bit_width, u32 count);
77
+
7678 /*
7779 * hwgpe - GPE support
7880 */
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
+
7985 u32 acpi_hw_get_gpe_register_bit(struct acpi_gpe_event_info *gpe_event_info);
8086
8187 acpi_status
....@@ -101,16 +107,27 @@
101107
102108 acpi_status acpi_hw_enable_all_wakeup_gpes(void);
103109
110
+u8 acpi_hw_check_all_gpes(acpi_handle gpe_skip_device, u32 gpe_skip_number);
111
+
104112 acpi_status
105113 acpi_hw_enable_runtime_gpe_block(struct acpi_gpe_xrupt_info *gpe_xrupt_info,
106114 struct acpi_gpe_block_info *gpe_block,
107115 void *context);
108116
117
+#ifdef ACPI_PCI_CONFIGURED
109118 /*
110119 * hwpci - PCI configuration support
111120 */
112121 acpi_status
113122 acpi_hw_derive_pci_id(struct acpi_pci_id *pci_id,
114123 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
115132
116133 #endif /* __ACHWARE_H__ */