EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index

MdePkg/Library/BasePciLibCf8/PciLib.c

Go to the documentation of this file.
00001 
00017 #include <Base.h>
00018 
00019 #include <Library/PciLib.h>
00020 #include <Library/PciCf8Lib.h>
00021 
00043 RETURN_STATUS
00044 EFIAPI
00045 PciRegisterForRuntimeAccess (
00046   IN UINTN  Address
00047   )
00048 {
00049   return PciCf8RegisterForRuntimeAccess (Address);
00050 }
00051 
00067 UINT8
00068 EFIAPI
00069 PciRead8 (
00070   IN      UINTN                     Address
00071   )
00072 {
00073   return PciCf8Read8 (Address);
00074 }
00075 
00092 UINT8
00093 EFIAPI
00094 PciWrite8 (
00095   IN      UINTN                     Address,
00096   IN      UINT8                     Value
00097   )
00098 {
00099   return PciCf8Write8 (Address, Value);
00100 }
00101 
00122 UINT8
00123 EFIAPI
00124 PciOr8 (
00125   IN      UINTN                     Address,
00126   IN      UINT8                     OrData
00127   )
00128 {
00129   return PciCf8Or8 (Address, OrData);
00130 }
00131 
00152 UINT8
00153 EFIAPI
00154 PciAnd8 (
00155   IN      UINTN                     Address,
00156   IN      UINT8                     AndData
00157   )
00158 {
00159   return PciCf8And8 (Address, AndData);
00160 }
00161 
00184 UINT8
00185 EFIAPI
00186 PciAndThenOr8 (
00187   IN      UINTN                     Address,
00188   IN      UINT8                     AndData,
00189   IN      UINT8                     OrData
00190   )
00191 {
00192   return PciCf8AndThenOr8 (Address, AndData, OrData);
00193 }
00194 
00216 UINT8
00217 EFIAPI
00218 PciBitFieldRead8 (
00219   IN      UINTN                     Address,
00220   IN      UINTN                     StartBit,
00221   IN      UINTN                     EndBit
00222   )
00223 {
00224   return PciCf8BitFieldRead8 (Address, StartBit, EndBit);
00225 }
00226 
00250 UINT8
00251 EFIAPI
00252 PciBitFieldWrite8 (
00253   IN      UINTN                     Address,
00254   IN      UINTN                     StartBit,
00255   IN      UINTN                     EndBit,
00256   IN      UINT8                     Value
00257   )
00258 {
00259   return PciCf8BitFieldWrite8 (Address, StartBit, EndBit, Value);
00260 }
00261 
00288 UINT8
00289 EFIAPI
00290 PciBitFieldOr8 (
00291   IN      UINTN                     Address,
00292   IN      UINTN                     StartBit,
00293   IN      UINTN                     EndBit,
00294   IN      UINT8                     OrData
00295   )
00296 {
00297   return PciCf8BitFieldOr8 (Address, StartBit, EndBit, OrData);
00298 }
00299 
00326 UINT8
00327 EFIAPI
00328 PciBitFieldAnd8 (
00329   IN      UINTN                     Address,
00330   IN      UINTN                     StartBit,
00331   IN      UINTN                     EndBit,
00332   IN      UINT8                     AndData
00333   )
00334 {
00335   return PciCf8BitFieldAnd8 (Address, StartBit, EndBit, AndData);
00336 }
00337 
00367 UINT8
00368 EFIAPI
00369 PciBitFieldAndThenOr8 (
00370   IN      UINTN                     Address,
00371   IN      UINTN                     StartBit,
00372   IN      UINTN                     EndBit,
00373   IN      UINT8                     AndData,
00374   IN      UINT8                     OrData
00375   )
00376 {
00377   return PciCf8BitFieldAndThenOr8 (Address, StartBit, EndBit, AndData, OrData);
00378 }
00379 
00396 UINT16
00397 EFIAPI
00398 PciRead16 (
00399   IN      UINTN                     Address
00400   )
00401 {
00402   return PciCf8Read16 (Address);
00403 }
00404 
00422 UINT16
00423 EFIAPI
00424 PciWrite16 (
00425   IN      UINTN                     Address,
00426   IN      UINT16                    Value
00427   )
00428 {
00429   return PciCf8Write16 (Address, Value);
00430 }
00431 
00453 UINT16
00454 EFIAPI
00455 PciOr16 (
00456   IN      UINTN                     Address,
00457   IN      UINT16                    OrData
00458   )
00459 {
00460   return PciCf8Or16 (Address, OrData);
00461 }
00462 
00484 UINT16
00485 EFIAPI
00486 PciAnd16 (
00487   IN      UINTN                     Address,
00488   IN      UINT16                    AndData
00489   )
00490 {
00491   return PciCf8And16 (Address, AndData);
00492 }
00493 
00517 UINT16
00518 EFIAPI
00519 PciAndThenOr16 (
00520   IN      UINTN                     Address,
00521   IN      UINT16                    AndData,
00522   IN      UINT16                    OrData
00523   )
00524 {
00525   return PciCf8AndThenOr16 (Address, AndData, OrData);
00526 }
00527 
00550 UINT16
00551 EFIAPI
00552 PciBitFieldRead16 (
00553   IN      UINTN                     Address,
00554   IN      UINTN                     StartBit,
00555   IN      UINTN                     EndBit
00556   )
00557 {
00558   return PciCf8BitFieldRead16 (Address, StartBit, EndBit);
00559 }
00560 
00585 UINT16
00586 EFIAPI
00587 PciBitFieldWrite16 (
00588   IN      UINTN                     Address,
00589   IN      UINTN                     StartBit,
00590   IN      UINTN                     EndBit,
00591   IN      UINT16                    Value
00592   )
00593 {
00594   return PciCf8BitFieldWrite16 (Address, StartBit, EndBit, Value);
00595 }
00596 
00624 UINT16
00625 EFIAPI
00626 PciBitFieldOr16 (
00627   IN      UINTN                     Address,
00628   IN      UINTN                     StartBit,
00629   IN      UINTN                     EndBit,
00630   IN      UINT16                    OrData
00631   )
00632 {
00633   return PciCf8BitFieldOr16 (Address, StartBit, EndBit, OrData);
00634 }
00635 
00663 UINT16
00664 EFIAPI
00665 PciBitFieldAnd16 (
00666   IN      UINTN                     Address,
00667   IN      UINTN                     StartBit,
00668   IN      UINTN                     EndBit,
00669   IN      UINT16                    AndData
00670   )
00671 {
00672   return PciCf8BitFieldAnd16 (Address, StartBit, EndBit, AndData);
00673 }
00674 
00705 UINT16
00706 EFIAPI
00707 PciBitFieldAndThenOr16 (
00708   IN      UINTN                     Address,
00709   IN      UINTN                     StartBit,
00710   IN      UINTN                     EndBit,
00711   IN      UINT16                    AndData,
00712   IN      UINT16                    OrData
00713   )
00714 {
00715   return PciCf8BitFieldAndThenOr16 (Address, StartBit, EndBit, AndData, OrData);
00716 }
00717 
00734 UINT32
00735 EFIAPI
00736 PciRead32 (
00737   IN      UINTN                     Address
00738   )
00739 {
00740   return PciCf8Read32 (Address);
00741 }
00742 
00760 UINT32
00761 EFIAPI
00762 PciWrite32 (
00763   IN      UINTN                     Address,
00764   IN      UINT32                    Value
00765   )
00766 {
00767   return PciCf8Write32 (Address, Value);
00768 }
00769 
00791 UINT32
00792 EFIAPI
00793 PciOr32 (
00794   IN      UINTN                     Address,
00795   IN      UINT32                    OrData
00796   )
00797 {
00798   return PciCf8Or32 (Address, OrData);
00799 }
00800 
00822 UINT32
00823 EFIAPI
00824 PciAnd32 (
00825   IN      UINTN                     Address,
00826   IN      UINT32                    AndData
00827   )
00828 {
00829   return PciCf8And32 (Address, AndData);
00830 }
00831 
00855 UINT32
00856 EFIAPI
00857 PciAndThenOr32 (
00858   IN      UINTN                     Address,
00859   IN      UINT32                    AndData,
00860   IN      UINT32                    OrData
00861   )
00862 {
00863   return PciCf8AndThenOr32 (Address, AndData, OrData);
00864 }
00865 
00888 UINT32
00889 EFIAPI
00890 PciBitFieldRead32 (
00891   IN      UINTN                     Address,
00892   IN      UINTN                     StartBit,
00893   IN      UINTN                     EndBit
00894   )
00895 {
00896   return PciCf8BitFieldRead32 (Address, StartBit, EndBit);
00897 }
00898 
00923 UINT32
00924 EFIAPI
00925 PciBitFieldWrite32 (
00926   IN      UINTN                     Address,
00927   IN      UINTN                     StartBit,
00928   IN      UINTN                     EndBit,
00929   IN      UINT32                    Value
00930   )
00931 {
00932   return PciCf8BitFieldWrite32 (Address, StartBit, EndBit, Value);
00933 }
00934 
00962 UINT32
00963 EFIAPI
00964 PciBitFieldOr32 (
00965   IN      UINTN                     Address,
00966   IN      UINTN                     StartBit,
00967   IN      UINTN                     EndBit,
00968   IN      UINT32                    OrData
00969   )
00970 {
00971   return PciCf8BitFieldOr32 (Address, StartBit, EndBit, OrData);
00972 }
00973 
01001 UINT32
01002 EFIAPI
01003 PciBitFieldAnd32 (
01004   IN      UINTN                     Address,
01005   IN      UINTN                     StartBit,
01006   IN      UINTN                     EndBit,
01007   IN      UINT32                    AndData
01008   )
01009 {
01010   return PciCf8BitFieldAnd32 (Address, StartBit, EndBit, AndData);
01011 }
01012 
01043 UINT32
01044 EFIAPI
01045 PciBitFieldAndThenOr32 (
01046   IN      UINTN                     Address,
01047   IN      UINTN                     StartBit,
01048   IN      UINTN                     EndBit,
01049   IN      UINT32                    AndData,
01050   IN      UINT32                    OrData
01051   )
01052 {
01053   return PciCf8BitFieldAndThenOr32 (Address, StartBit, EndBit, AndData, OrData);
01054 }
01055 
01079 UINTN
01080 EFIAPI
01081 PciReadBuffer (
01082   IN      UINTN                     StartAddress,
01083   IN      UINTN                     Size,
01084   OUT     VOID                      *Buffer
01085   )
01086 {
01087   return PciCf8ReadBuffer (StartAddress, Size, Buffer);
01088 }
01089 
01114 UINTN
01115 EFIAPI
01116 PciWriteBuffer (
01117   IN      UINTN                     StartAddress,
01118   IN      UINTN                     Size,
01119   IN      VOID                      *Buffer
01120   )
01121 {
01122   return PciCf8WriteBuffer (StartAddress, Size, Buffer);
01123 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines