1 /******************************************************************************
2 *
3 * Name: achware.h -- hardware specific interfaces
4 *
5 *****************************************************************************/
6
7 /*
8 * Copyright (C) 2000 - 2011, Intel Corp.
9 * All rights reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions, and the following disclaimer,
16 * without modification.
17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 * substantially similar to the "NO WARRANTY" disclaimer below
19 * ("Disclaimer") and any redistribution must be conditioned upon
20 * including a substantially similar Disclaimer requirement for further
21 * binary redistribution.
22 * 3. Neither the names of the above-listed copyright holders nor the names
23 * of any contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
25 *
26 * Alternatively, this software may be distributed under the terms of the
27 * GNU General Public License ("GPL") version 2 as published by the Free
28 * Software Foundation.
93 AcpiHwWritePm1Control (
94 UINT32 Pm1aControl,
95 UINT32 Pm1bControl);
96
97 ACPI_STATUS
98 AcpiHwRegisterRead (
99 UINT32 RegisterId,
100 UINT32 *ReturnValue);
101
102 ACPI_STATUS
103 AcpiHwRegisterWrite (
104 UINT32 RegisterId,
105 UINT32 Value);
106
107 ACPI_STATUS
108 AcpiHwClearAcpiStatus (
109 void);
110
111
112 /*
113 * hwvalid - Port I/O with validation
114 */
115 ACPI_STATUS
116 AcpiHwReadPort (
117 ACPI_IO_ADDRESS Address,
118 UINT32 *Value,
119 UINT32 Width);
120
121 ACPI_STATUS
122 AcpiHwWritePort (
123 ACPI_IO_ADDRESS Address,
124 UINT32 Value,
125 UINT32 Width);
126
127
128 /*
129 * hwgpe - GPE support
130 */
131 UINT32
132 AcpiHwGetGpeRegisterBit (
133 ACPI_GPE_EVENT_INFO *GpeEventInfo,
134 ACPI_GPE_REGISTER_INFO *GpeRegisterInfo);
135
136 ACPI_STATUS
137 AcpiHwLowSetGpe (
138 ACPI_GPE_EVENT_INFO *GpeEventInfo,
139 UINT32 Action);
140
141 ACPI_STATUS
142 AcpiHwDisableGpeBlock (
143 ACPI_GPE_XRUPT_INFO *GpeXruptInfo,
144 ACPI_GPE_BLOCK_INFO *GpeBlock,
145 void *Context);
146
147 ACPI_STATUS
148 AcpiHwClearGpe (
149 ACPI_GPE_EVENT_INFO *GpeEventInfo);
150
151 ACPI_STATUS
152 AcpiHwClearGpeBlock (
153 ACPI_GPE_XRUPT_INFO *GpeXruptInfo,
154 ACPI_GPE_BLOCK_INFO *GpeBlock,
171 AcpiHwEnableAllWakeupGpes (
172 void);
173
174 ACPI_STATUS
175 AcpiHwEnableRuntimeGpeBlock (
176 ACPI_GPE_XRUPT_INFO *GpeXruptInfo,
177 ACPI_GPE_BLOCK_INFO *GpeBlock,
178 void *Context);
179
180
181 /*
182 * hwpci - PCI configuration support
183 */
184 ACPI_STATUS
185 AcpiHwDerivePciId (
186 ACPI_PCI_ID *PciId,
187 ACPI_HANDLE RootPciDevice,
188 ACPI_HANDLE PciRegion);
189
190
191 /*
192 * hwtimer - ACPI Timer prototypes
193 */
194 ACPI_STATUS
195 AcpiGetTimerResolution (
196 UINT32 *Resolution);
197
198 ACPI_STATUS
199 AcpiGetTimer (
200 UINT32 *Ticks);
201
202 ACPI_STATUS
203 AcpiGetTimerDuration (
204 UINT32 StartTicks,
205 UINT32 EndTicks,
206 UINT32 *TimeElapsed);
207
208
209 #endif /* __ACHWARE_H__ */
|
1 /******************************************************************************
2 *
3 * Name: achware.h -- hardware specific interfaces
4 *
5 *****************************************************************************/
6
7 /*
8 * Copyright (C) 2000 - 2014, Intel Corp.
9 * All rights reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions, and the following disclaimer,
16 * without modification.
17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 * substantially similar to the "NO WARRANTY" disclaimer below
19 * ("Disclaimer") and any redistribution must be conditioned upon
20 * including a substantially similar Disclaimer requirement for further
21 * binary redistribution.
22 * 3. Neither the names of the above-listed copyright holders nor the names
23 * of any contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
25 *
26 * Alternatively, this software may be distributed under the terms of the
27 * GNU General Public License ("GPL") version 2 as published by the Free
28 * Software Foundation.
93 AcpiHwWritePm1Control (
94 UINT32 Pm1aControl,
95 UINT32 Pm1bControl);
96
97 ACPI_STATUS
98 AcpiHwRegisterRead (
99 UINT32 RegisterId,
100 UINT32 *ReturnValue);
101
102 ACPI_STATUS
103 AcpiHwRegisterWrite (
104 UINT32 RegisterId,
105 UINT32 Value);
106
107 ACPI_STATUS
108 AcpiHwClearAcpiStatus (
109 void);
110
111
112 /*
113 * hwsleep - sleep/wake support (Legacy sleep registers)
114 */
115 ACPI_STATUS
116 AcpiHwLegacySleep (
117 UINT8 SleepState);
118
119 ACPI_STATUS
120 AcpiHwLegacyWakePrep (
121 UINT8 SleepState);
122
123 ACPI_STATUS
124 AcpiHwLegacyWake (
125 UINT8 SleepState);
126
127
128 /*
129 * hwesleep - sleep/wake support (Extended FADT-V5 sleep registers)
130 */
131 void
132 AcpiHwExecuteSleepMethod (
133 char *MethodName,
134 UINT32 IntegerArgument);
135
136 ACPI_STATUS
137 AcpiHwExtendedSleep (
138 UINT8 SleepState);
139
140 ACPI_STATUS
141 AcpiHwExtendedWakePrep (
142 UINT8 SleepState);
143
144 ACPI_STATUS
145 AcpiHwExtendedWake (
146 UINT8 SleepState);
147
148
149 /*
150 * hwvalid - Port I/O with validation
151 */
152 ACPI_STATUS
153 AcpiHwReadPort (
154 ACPI_IO_ADDRESS Address,
155 UINT32 *Value,
156 UINT32 Width);
157
158 ACPI_STATUS
159 AcpiHwWritePort (
160 ACPI_IO_ADDRESS Address,
161 UINT32 Value,
162 UINT32 Width);
163
164
165 /*
166 * hwgpe - GPE support
167 */
168 UINT32
169 AcpiHwGetGpeRegisterBit (
170 ACPI_GPE_EVENT_INFO *GpeEventInfo);
171
172 ACPI_STATUS
173 AcpiHwLowSetGpe (
174 ACPI_GPE_EVENT_INFO *GpeEventInfo,
175 UINT32 Action);
176
177 ACPI_STATUS
178 AcpiHwDisableGpeBlock (
179 ACPI_GPE_XRUPT_INFO *GpeXruptInfo,
180 ACPI_GPE_BLOCK_INFO *GpeBlock,
181 void *Context);
182
183 ACPI_STATUS
184 AcpiHwClearGpe (
185 ACPI_GPE_EVENT_INFO *GpeEventInfo);
186
187 ACPI_STATUS
188 AcpiHwClearGpeBlock (
189 ACPI_GPE_XRUPT_INFO *GpeXruptInfo,
190 ACPI_GPE_BLOCK_INFO *GpeBlock,
207 AcpiHwEnableAllWakeupGpes (
208 void);
209
210 ACPI_STATUS
211 AcpiHwEnableRuntimeGpeBlock (
212 ACPI_GPE_XRUPT_INFO *GpeXruptInfo,
213 ACPI_GPE_BLOCK_INFO *GpeBlock,
214 void *Context);
215
216
217 /*
218 * hwpci - PCI configuration support
219 */
220 ACPI_STATUS
221 AcpiHwDerivePciId (
222 ACPI_PCI_ID *PciId,
223 ACPI_HANDLE RootPciDevice,
224 ACPI_HANDLE PciRegion);
225
226
227 #endif /* __ACHWARE_H__ */
|