1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44#ifndef __ACHWARE_H__
45#define __ACHWARE_H__
46
47
48
49#define ACPI_SST_INDICATOR_OFF 0
50#define ACPI_SST_WORKING 1
51#define ACPI_SST_WAKING 2
52#define ACPI_SST_SLEEPING 3
53#define ACPI_SST_SLEEP_CONTEXT 4
54
55
56
57
58acpi_status acpi_hw_set_mode(u32 mode);
59
60u32 acpi_hw_get_mode(void);
61
62
63
64
65acpi_status
66acpi_hw_validate_register(struct acpi_generic_address *reg,
67 u8 max_bit_width, u64 *address);
68
69acpi_status acpi_hw_read(u32 *value, struct acpi_generic_address *reg);
70
71acpi_status acpi_hw_write(u32 value, struct acpi_generic_address *reg);
72
73struct acpi_bit_register_info *acpi_hw_get_bit_register_info(u32 register_id);
74
75acpi_status acpi_hw_write_pm1_control(u32 pm1a_control, u32 pm1b_control);
76
77acpi_status acpi_hw_register_read(u32 register_id, u32 *return_value);
78
79acpi_status acpi_hw_register_write(u32 register_id, u32 value);
80
81acpi_status acpi_hw_clear_acpi_status(void);
82
83
84
85
86acpi_status acpi_hw_legacy_sleep(u8 sleep_state);
87
88acpi_status acpi_hw_legacy_wake_prep(u8 sleep_state);
89
90acpi_status acpi_hw_legacy_wake(u8 sleep_state);
91
92
93
94
95void acpi_hw_execute_sleep_method(char *method_name, u32 integer_argument);
96
97acpi_status acpi_hw_extended_sleep(u8 sleep_state);
98
99acpi_status acpi_hw_extended_wake_prep(u8 sleep_state);
100
101acpi_status acpi_hw_extended_wake(u8 sleep_state);
102
103
104
105
106acpi_status acpi_hw_read_port(acpi_io_address address, u32 *value, u32 width);
107
108acpi_status acpi_hw_write_port(acpi_io_address address, u32 value, u32 width);
109
110
111
112
113u32 acpi_hw_get_gpe_register_bit(struct acpi_gpe_event_info *gpe_event_info);
114
115acpi_status
116acpi_hw_low_set_gpe(struct acpi_gpe_event_info *gpe_event_info, u32 action);
117
118acpi_status
119acpi_hw_disable_gpe_block(struct acpi_gpe_xrupt_info *gpe_xrupt_info,
120 struct acpi_gpe_block_info *gpe_block, void *context);
121
122acpi_status acpi_hw_clear_gpe(struct acpi_gpe_event_info *gpe_event_info);
123
124acpi_status
125acpi_hw_clear_gpe_block(struct acpi_gpe_xrupt_info *gpe_xrupt_info,
126 struct acpi_gpe_block_info *gpe_block, void *context);
127
128acpi_status
129acpi_hw_get_gpe_status(struct acpi_gpe_event_info *gpe_event_info,
130 acpi_event_status *event_status);
131
132acpi_status acpi_hw_disable_all_gpes(void);
133
134acpi_status acpi_hw_enable_all_runtime_gpes(void);
135
136acpi_status acpi_hw_enable_all_wakeup_gpes(void);
137
138acpi_status
139acpi_hw_enable_runtime_gpe_block(struct acpi_gpe_xrupt_info *gpe_xrupt_info,
140 struct acpi_gpe_block_info *gpe_block,
141 void *context);
142
143
144
145
146acpi_status
147acpi_hw_derive_pci_id(struct acpi_pci_id *pci_id,
148 acpi_handle root_pci_device, acpi_handle pci_region);
149
150#endif
151