#include "acpi.h"
#include "accommon.h"
Go to the source code of this file.
◆ _COMPONENT
◆ ACPI_PORT_INFO_ENTRIES
◆ AcpiHwReadPort()
Definition at line 237 of file hwvalid.c.
241{
245
246
247
248
249 if (AcpiGbl_TruncateIoAddresses)
250 {
252 }
253
254
255
258 {
261 }
262
264 {
266 }
267
268
269
270
271
272
274 {
275
276
278 {
281 {
283 }
284
286 }
287
289 }
290
292}
#define AE_AML_ILLEGAL_ADDRESS
ACPI_STATUS AcpiOsReadPort(ACPI_IO_ADDRESS Address, UINT32 *Value, UINT32 Width)
_Check_return_ _In_ D3DDDI_VIDEO_PRESENT_TARGET_ID _In_ PDXGKARG_SYSTEM_DISPLAY_ENABLE_FLAGS _Out_ UINT * Width
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static ACPI_STATUS AcpiHwValidateIoRequest(ACPI_IO_ADDRESS Address, UINT32 BitWidth)
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Referenced by AcpiExSystemIoSpaceHandler(), AcpiHwRead(), and AcpiHwRegisterRead().
◆ AcpiHwValidateIoRequest()
| static ACPI_STATUS AcpiHwValidateIoRequest |
( |
ACPI_IO_ADDRESS |
Address, |
|
|
UINT32 |
BitWidth |
|
) |
| |
|
static |
Definition at line 130 of file hwvalid.c.
133{
136 ACPI_IO_ADDRESS LastAddress;
138
139
141
142
143
144
145 if ((BitWidth != 8) &&
146 (BitWidth != 16) &&
147 (BitWidth != 32))
148 {
150 "Bad BitWidth parameter: %8.8X", BitWidth));
152 }
153
156 LastAddress =
Address + ByteWidth - 1;
157
159 "Address %8.8X%8.8X LastAddress %8.8X%8.8X Length %X",
161 ByteWidth));
162
163
164
166 {
168 "Illegal I/O port address/length above 64K: %8.8X%8.8X/0x%X",
171 }
172
173
174
176 {
178 }
179
180
181
183 {
184
185
186
187
188
189
190
191
192
193 if ((Address <= PortInfo->
End) && (LastAddress >= PortInfo->
Start))
194 {
195
196
198 {
200 "Denied AML access to port 0x%8.8X%8.8X/%X (%s 0x%.4X-0x%.4X)\n",
203
205 }
206 }
207
208
209
210 if (LastAddress <= PortInfo->
End)
211 {
212 break;
213 }
214 }
215
217}
#define ACPI_FORMAT_UINT64(i)
#define ACPI_DEBUG_PRINT(pl)
#define return_ACPI_STATUS(s)
#define ACPI_FUNCTION_TRACE(a)
#define ACPI_ERROR(plist)
static const ACPI_PORT_INFO AcpiProtectedPorts[]
#define ACPI_PORT_INFO_ENTRIES
Referenced by AcpiHwReadPort(), and AcpiHwWritePort().
◆ AcpiHwWritePort()
◆ AcpiProtectedPorts