Home | History | Annotate | Download | only in DxeIoLibCpuIo2

Lines Matching refs:Port

52   Reads the I/O port specified by Port with registers width specified by Width.

56 @param Port The base address of the I/O operation.
66 IN UINTN Port,
73 Status = mCpuIo->Io.Read (mCpuIo, Width, Port, 1, &Data);
82 Writes the I/O port specified by Port with registers width and value specified by Width
86 @param Port The base address of the I/O operation.
89 @param Data The value to write to the I/O port.
97 IN UINTN Port,
104 Status = mCpuIo->Io.Write (mCpuIo, Width, Port, 1, &Data);
150 @param Data The value to write to the I/O port.
172 Reads an 8-bit I/O port.
174 Reads the 8-bit I/O port specified by Port. The 8-bit read value is returned.
178 If 8-bit I/O port operations are not supported, then ASSERT().
180 @param Port The I/O port to read.
188 IN UINTN Port
191 return (UINT8)IoReadWorker (Port, EfiCpuIoWidthUint8);
195 Writes an 8-bit I/O port.
197 Writes the 8-bit I/O port specified by Port with the value specified by Value
201 If 8-bit I/O port operations are not supported, then ASSERT().
203 @param Port The I/O port to write.
204 @param Value The value to write to the I/O port.
206 @return The value written the I/O port.
212 IN UINTN Port,
216 return (UINT8)IoWriteWorker (Port, EfiCpuIoWidthUint8, Value);
220 Reads a 16-bit I/O port.
222 Reads the 16-bit I/O port specified by Port. The 16-bit read value is returned.
226 If Port is not aligned on a 16-bit boundary, then ASSERT().
228 If 16-bit I/O port operations are not supported, then ASSERT().
230 @param Port The I/O port to read.
238 IN UINTN Port
242 // Make sure Port is aligned on a 16-bit boundary.
244 ASSERT ((Port & 1) == 0);
245 return (UINT16)IoReadWorker (Port, EfiCpuIoWidthUint16);
249 Writes a 16-bit I/O port.
251 Writes the 16-bit I/O port specified by Port with the value specified by Value
255 If Port is not aligned on a 16-bit boundary, then ASSERT().
257 If 16-bit I/O port operations are not supported, then ASSERT().
259 @param Port The I/O port to write.
260 @param Value The value to write to the I/O port.
262 @return The value written the I/O port.
268 IN UINTN Port,
273 // Make sure Port is aligned on a 16-bit boundary.
275 ASSERT ((Port & 1) == 0);
276 return (UINT16)IoWriteWorker (Port, EfiCpuIoWidthUint16, Value);
280 Reads a 32-bit I/O port.
282 Reads the 32-bit I/O port specified by Port. The 32-bit read value is returned.
286 If Port is not aligned on a 32-bit boundary, then ASSERT().
288 If 32-bit I/O port operations are not supported, then ASSERT().
290 @param Port The I/O port to read.
298 IN UINTN Port
302 // Make sure Port is aligned on a 32-bit boundary.
304 ASSERT ((Port & 3) == 0);
305 return (UINT32)IoReadWorker (Port, EfiCpuIoWidthUint32);
309 Writes a 32-bit I/O port.
311 Writes the 32-bit I/O port specified by Port with the value specified by Value
315 If Port is not aligned on a 32-bit boundary, then ASSERT().
317 If 32-bit I/O port operations are not supported, then ASSERT().
319 @param Port The I/O port to write.
320 @param Value The value to write to the I/O port.
322 @return The value written the I/O port.
328 IN UINTN Port,
333 // Make sure Port is aligned on a 32-bit boundary.
335 ASSERT ((Port & 3) == 0);
336 return (UINT32)IoWriteWorker (Port, EfiCpuIoWidthUint32, Value);
340 Reads a 64-bit I/O port.
342 Reads the 64-bit I/O port specified by Port. The 64-bit read value is returned.
346 If Port is not aligned on a 64-bit boundary, then ASSERT().
348 If 64-bit I/O port operations are not supported, then ASSERT().
350 @param Port The I/O port to read.
358 IN UINTN Port
362 // Make sure Port is aligned on a 64-bit boundary.
364 ASSERT ((Port & 7) == 0);
365 return IoReadWorker (Port, EfiCpuIoWidthUint64);
369 Writes a 64-bit I/O port.
371 Writes the 64-bit I/O port specified by Port with the value specified by Value
375 If Port is not aligned on a 64-bit boundary, then ASSERT().
377 If 64-bit I/O port operations are not supported, then ASSERT().
379 @param Port The I/O port to write.
380 @param Value The value to write to the I/O port.
382 @return The value written the I/O port.
388 IN UINTN Port,
393 // Make sure Port is aligned on a 64-bit boundary.
395 ASSERT ((Port & 7) == 0);
396 return IoWriteWorker (Port, EfiCpuIoWidthUint64, Value);