VirtualBox

Ignore:
Timestamp:
Mar 12, 2019 12:40:12 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129295
Message:

EFI: First step in UDK2018 merge. Does not build yet.

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Include/Library/IoLib.h

    r58466 r77662  
    33
    44Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
     5Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>
     6
    57This program and the accompanying materials
    68are licensed and made available under the terms and conditions of the BSD License
     
    7476  IN      UINTN                     Port,
    7577  IN      UINT8                     Value
     78  );
     79
     80/**
     81  Reads an 8-bit I/O port fifo into a block of memory.
     82
     83  Reads the 8-bit I/O fifo port specified by Port.
     84  The port is read Count times, and the read data is
     85  stored in the provided Buffer.
     86
     87  This function must guarantee that all I/O read and write operations are
     88  serialized.
     89
     90  If 8-bit I/O port operations are not supported, then ASSERT().
     91
     92  @param  Port    The I/O port to read.
     93  @param  Count   The number of times to read I/O port.
     94  @param  Buffer  The buffer to store the read data into.
     95
     96**/
     97VOID
     98EFIAPI
     99IoReadFifo8 (
     100  IN      UINTN                     Port,
     101  IN      UINTN                     Count,
     102  OUT     VOID                      *Buffer
     103  );
     104
     105/**
     106  Writes a block of memory into an 8-bit I/O port fifo.
     107
     108  Writes the 8-bit I/O fifo port specified by Port.
     109  The port is written Count times, and the write data is
     110  retrieved from the provided Buffer.
     111
     112  This function must guarantee that all I/O write and write operations are
     113  serialized.
     114
     115  If 8-bit I/O port operations are not supported, then ASSERT().
     116
     117  @param  Port    The I/O port to write.
     118  @param  Count   The number of times to write I/O port.
     119  @param  Buffer  The buffer to retrieve the write data from.
     120
     121**/
     122VOID
     123EFIAPI
     124IoWriteFifo8 (
     125  IN      UINTN                     Port,
     126  IN      UINTN                     Count,
     127  IN      VOID                      *Buffer
    76128  );
    77129
     
    369421
    370422/**
     423  Reads a 16-bit I/O port fifo into a block of memory.
     424
     425  Reads the 16-bit I/O fifo port specified by Port.
     426  The port is read Count times, and the read data is
     427  stored in the provided Buffer.
     428
     429  This function must guarantee that all I/O read and write operations are
     430  serialized.
     431
     432  If 16-bit I/O port operations are not supported, then ASSERT().
     433
     434  @param  Port    The I/O port to read.
     435  @param  Count   The number of times to read I/O port.
     436  @param  Buffer  The buffer to store the read data into.
     437
     438**/
     439VOID
     440EFIAPI
     441IoReadFifo16 (
     442  IN      UINTN                     Port,
     443  IN      UINTN                     Count,
     444  OUT     VOID                      *Buffer
     445  );
     446
     447/**
     448  Writes a block of memory into a 16-bit I/O port fifo.
     449
     450  Writes the 16-bit I/O fifo port specified by Port.
     451  The port is written Count times, and the write data is
     452  retrieved from the provided Buffer.
     453
     454  This function must guarantee that all I/O write and write operations are
     455  serialized.
     456
     457  If 16-bit I/O port operations are not supported, then ASSERT().
     458
     459  @param  Port    The I/O port to write.
     460  @param  Count   The number of times to write I/O port.
     461  @param  Buffer  The buffer to retrieve the write data from.
     462
     463**/
     464VOID
     465EFIAPI
     466IoWriteFifo16 (
     467  IN      UINTN                     Port,
     468  IN      UINTN                     Count,
     469  IN      VOID                      *Buffer
     470  );
     471
     472/**
    371473  Reads a 16-bit I/O port, performs a bitwise OR, and writes the
    372474  result back to the 16-bit I/O port.
     
    670772
    671773/**
     774  Reads a 32-bit I/O port fifo into a block of memory.
     775
     776  Reads the 32-bit I/O fifo port specified by Port.
     777  The port is read Count times, and the read data is
     778  stored in the provided Buffer.
     779
     780  This function must guarantee that all I/O read and write operations are
     781  serialized.
     782
     783  If 32-bit I/O port operations are not supported, then ASSERT().
     784
     785  @param  Port    The I/O port to read.
     786  @param  Count   The number of times to read I/O port.
     787  @param  Buffer  The buffer to store the read data into.
     788
     789**/
     790VOID
     791EFIAPI
     792IoReadFifo32 (
     793  IN      UINTN                     Port,
     794  IN      UINTN                     Count,
     795  OUT     VOID                      *Buffer
     796  );
     797
     798/**
     799  Writes a block of memory into a 32-bit I/O port fifo.
     800
     801  Writes the 32-bit I/O fifo port specified by Port.
     802  The port is written Count times, and the write data is
     803  retrieved from the provided Buffer.
     804
     805  This function must guarantee that all I/O write and write operations are
     806  serialized.
     807
     808  If 32-bit I/O port operations are not supported, then ASSERT().
     809
     810  @param  Port    The I/O port to write.
     811  @param  Count   The number of times to write I/O port.
     812  @param  Buffer  The buffer to retrieve the write data from.
     813
     814**/
     815VOID
     816EFIAPI
     817IoWriteFifo32 (
     818  IN      UINTN                     Port,
     819  IN      UINTN                     Count,
     820  IN      VOID                      *Buffer
     821  );
     822
     823/**
    672824  Reads a 32-bit I/O port, performs a bitwise OR, and writes the
    673825  result back to the 32-bit I/O port.
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette