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

MdePkg/Include/Library/S3IoLib.h

Go to the documentation of this file.
00001 
00019 #ifndef __S3_IO_LIB_H__
00020 #define __S3_IO_LIB_H__
00021 
00037 UINT8
00038 EFIAPI
00039 S3IoRead8 (
00040   IN UINTN  Port
00041   );
00042 
00059 UINT8
00060 EFIAPI
00061 S3IoWrite8 (
00062   IN UINTN  Port,
00063   IN UINT8  Value
00064   );
00065 
00085 UINT8
00086 EFIAPI
00087 S3IoOr8 (
00088   IN UINTN  Port,
00089   IN UINT8  OrData
00090   );
00091 
00111 UINT8
00112 EFIAPI
00113 S3IoAnd8 (
00114   IN UINTN  Port,
00115   IN UINT8  AndData
00116   );
00117 
00139 UINT8
00140 EFIAPI
00141 S3IoAndThenOr8 (
00142   IN UINTN  Port,
00143   IN UINT8  AndData,
00144   IN UINT8  OrData
00145   );
00146 
00168 UINT8
00169 EFIAPI
00170 S3IoBitFieldRead8 (
00171   IN UINTN  Port,
00172   IN UINTN  StartBit,
00173   IN UINTN  EndBit
00174   );
00175 
00200 UINT8
00201 EFIAPI
00202 S3IoBitFieldWrite8 (
00203   IN UINTN  Port,
00204   IN UINTN  StartBit,
00205   IN UINTN  EndBit,
00206   IN UINT8  Value
00207   );
00208 
00235 UINT8
00236 EFIAPI
00237 S3IoBitFieldOr8 (
00238   IN UINTN  Port,
00239   IN UINTN  StartBit,
00240   IN UINTN  EndBit,
00241   IN UINT8  OrData
00242   );
00243 
00270 UINT8
00271 EFIAPI
00272 S3IoBitFieldAnd8 (
00273   IN UINTN  Port,
00274   IN UINTN  StartBit,
00275   IN UINTN  EndBit,
00276   IN UINT8  AndData
00277   );
00278 
00307 UINT8
00308 EFIAPI
00309 S3IoBitFieldAndThenOr8 (
00310   IN UINTN  Port,
00311   IN UINTN  StartBit,
00312   IN UINTN  EndBit,
00313   IN UINT8  AndData,
00314   IN UINT8  OrData
00315   );
00316 
00332 UINT16
00333 EFIAPI
00334 S3IoRead16 (
00335   IN UINTN  Port
00336   );
00337 
00354 UINT16
00355 EFIAPI
00356 S3IoWrite16 (
00357   IN UINTN   Port,
00358   IN UINT16  Value
00359   );
00360 
00380 UINT16
00381 EFIAPI
00382 S3IoOr16 (
00383   IN UINTN   Port,
00384   IN UINT16  OrData
00385   );
00386 
00406 UINT16
00407 EFIAPI
00408 S3IoAnd16 (
00409   IN UINTN   Port,
00410   IN UINT16  AndData
00411   );
00412 
00434 UINT16
00435 EFIAPI
00436 S3IoAndThenOr16 (
00437   IN UINTN   Port,
00438   IN UINT16  AndData,
00439   IN UINT16  OrData
00440   );
00441 
00463 UINT16
00464 EFIAPI
00465 S3IoBitFieldRead16 (
00466   IN UINTN  Port,
00467   IN UINTN  StartBit,
00468   IN UINTN  EndBit
00469   );
00470 
00495 UINT16
00496 EFIAPI
00497 S3IoBitFieldWrite16 (
00498   IN UINTN   Port,
00499   IN UINTN   StartBit,
00500   IN UINTN   EndBit,
00501   IN UINT16  Value
00502   );
00503 
00530 UINT16
00531 EFIAPI
00532 S3IoBitFieldOr16 (
00533   IN UINTN   Port,
00534   IN UINTN   StartBit,
00535   IN UINTN   EndBit,
00536   IN UINT16  OrData
00537   );
00538 
00565 UINT16
00566 EFIAPI
00567 S3IoBitFieldAnd16 (
00568   IN UINTN   Port,
00569   IN UINTN   StartBit,
00570   IN UINTN   EndBit,
00571   IN UINT16  AndData
00572   );
00573 
00603 UINT16
00604 EFIAPI
00605 S3IoBitFieldAndThenOr16 (
00606   IN UINTN   Port,
00607   IN UINTN   StartBit,
00608   IN UINTN   EndBit,
00609   IN UINT16  AndData,
00610   IN UINT16  OrData
00611   );
00612 
00628 UINT32
00629 EFIAPI
00630 S3IoRead32 (
00631   IN UINTN  Port
00632   );
00633 
00650 UINT32
00651 EFIAPI
00652 S3IoWrite32 (
00653   IN UINTN   Port,
00654   IN UINT32  Value
00655   );
00656 
00676 UINT32
00677 EFIAPI
00678 S3IoOr32 (
00679   IN UINTN   Port,
00680   IN UINT32  OrData
00681   );
00682 
00702 UINT32
00703 EFIAPI
00704 S3IoAnd32 (
00705   IN UINTN   Port,
00706   IN UINT32  AndData
00707   );
00708 
00730 UINT32
00731 EFIAPI
00732 S3IoAndThenOr32 (
00733   IN UINTN   Port,
00734   IN UINT32  AndData,
00735   IN UINT32  OrData
00736   );
00737 
00759 UINT32
00760 EFIAPI
00761 S3IoBitFieldRead32 (
00762   IN UINTN  Port,
00763   IN UINTN  StartBit,
00764   IN UINTN  EndBit
00765   );
00766 
00791 UINT32
00792 EFIAPI
00793 S3IoBitFieldWrite32 (
00794   IN UINTN   Port,
00795   IN UINTN   StartBit,
00796   IN UINTN   EndBit,
00797   IN UINT32  Value
00798   );
00799 
00826 UINT32
00827 EFIAPI
00828 S3IoBitFieldOr32 (
00829   IN UINTN   Port,
00830   IN UINTN   StartBit,
00831   IN UINTN   EndBit,
00832   IN UINT32  OrData
00833   );
00834 
00861 UINT32
00862 EFIAPI
00863 S3IoBitFieldAnd32 (
00864   IN UINTN   Port,
00865   IN UINTN   StartBit,
00866   IN UINTN   EndBit,
00867   IN UINT32  AndData
00868   );
00869 
00899 UINT32
00900 EFIAPI
00901 S3IoBitFieldAndThenOr32 (
00902   IN UINTN   Port,
00903   IN UINTN   StartBit,
00904   IN UINTN   EndBit,
00905   IN UINT32  AndData,
00906   IN UINT32  OrData
00907   );
00908 
00924 UINT64
00925 EFIAPI
00926 S3IoRead64 (
00927   IN UINTN  Port
00928   );
00929 
00946 UINT64
00947 EFIAPI
00948 S3IoWrite64 (
00949   IN UINTN   Port,
00950   IN UINT64  Value
00951   );
00952 
00972 UINT64
00973 EFIAPI
00974 S3IoOr64 (
00975   IN UINTN   Port,
00976   IN UINT64  OrData
00977   );
00978 
00998 UINT64
00999 EFIAPI
01000 S3IoAnd64 (
01001   IN UINTN   Port,
01002   IN UINT64  AndData
01003   );
01004 
01026 UINT64
01027 EFIAPI
01028 S3IoAndThenOr64 (
01029   IN UINTN   Port,
01030   IN UINT64  AndData,
01031   IN UINT64  OrData
01032   );
01033 
01055 UINT64
01056 EFIAPI
01057 S3IoBitFieldRead64 (
01058   IN UINTN  Port,
01059   IN UINTN  StartBit,
01060   IN UINTN  EndBit
01061   );
01062 
01087 UINT64
01088 EFIAPI
01089 S3IoBitFieldWrite64 (
01090   IN UINTN   Port,
01091   IN UINTN   StartBit,
01092   IN UINTN   EndBit,
01093   IN UINT64  Value
01094   );
01095 
01122 UINT64
01123 EFIAPI
01124 S3IoBitFieldOr64 (
01125   IN UINTN   Port,
01126   IN UINTN   StartBit,
01127   IN UINTN   EndBit,
01128   IN UINT64  OrData
01129   );
01130 
01157 UINT64
01158 EFIAPI
01159 S3IoBitFieldAnd64 (
01160   IN UINTN   Port,
01161   IN UINTN   StartBit,
01162   IN UINTN   EndBit,
01163   IN UINT64  AndData
01164   );
01165 
01195 UINT64
01196 EFIAPI
01197 S3IoBitFieldAndThenOr64 (
01198   IN UINTN   Port,
01199   IN UINTN   StartBit,
01200   IN UINTN   EndBit,
01201   IN UINT64  AndData,
01202   IN UINT64  OrData
01203   );
01204 
01220 UINT8
01221 EFIAPI
01222 S3MmioRead8 (
01223   IN UINTN  Address
01224   );
01225 
01242 UINT8
01243 EFIAPI
01244 S3MmioWrite8 (
01245   IN UINTN  Address,
01246   IN UINT8  Value
01247   );
01248 
01268 UINT8
01269 EFIAPI
01270 S3MmioOr8 (
01271   IN UINTN  Address,
01272   IN UINT8  OrData
01273   );
01274 
01294 UINT8
01295 EFIAPI
01296 S3MmioAnd8 (
01297   IN UINTN  Address,
01298   IN UINT8  AndData
01299   );
01300 
01322 UINT8
01323 EFIAPI
01324 S3MmioAndThenOr8 (
01325   IN UINTN  Address,
01326   IN UINT8  AndData,
01327   IN UINT8  OrData
01328   );
01329 
01351 UINT8
01352 EFIAPI
01353 S3MmioBitFieldRead8 (
01354   IN UINTN  Address,
01355   IN UINTN  StartBit,
01356   IN UINTN  EndBit
01357   );
01358 
01382 UINT8
01383 EFIAPI
01384 S3MmioBitFieldWrite8 (
01385   IN UINTN  Address,
01386   IN UINTN  StartBit,
01387   IN UINTN  EndBit,
01388   IN UINT8  Value
01389   );
01390 
01418 UINT8
01419 EFIAPI
01420 S3MmioBitFieldOr8 (
01421   IN UINTN  Address,
01422   IN UINTN  StartBit,
01423   IN UINTN  EndBit,
01424   IN UINT8  OrData
01425   );
01426 
01454 UINT8
01455 EFIAPI
01456 S3MmioBitFieldAnd8 (
01457   IN UINTN  Address,
01458   IN UINTN  StartBit,
01459   IN UINTN  EndBit,
01460   IN UINT8  AndData
01461   );
01462 
01492 UINT8
01493 EFIAPI
01494 S3MmioBitFieldAndThenOr8 (
01495   IN UINTN  Address,
01496   IN UINTN  StartBit,
01497   IN UINTN  EndBit,
01498   IN UINT8  AndData,
01499   IN UINT8  OrData
01500   );
01501 
01517 UINT16
01518 EFIAPI
01519 S3MmioRead16 (
01520   IN UINTN  Address
01521   );
01522 
01540 UINT16
01541 EFIAPI
01542 S3MmioWrite16 (
01543   IN UINTN   Address,
01544   IN UINT16  Value
01545   );
01546 
01566 UINT16
01567 EFIAPI
01568 S3MmioOr16 (
01569   IN UINTN   Address,
01570   IN UINT16  OrData
01571   );
01572 
01592 UINT16
01593 EFIAPI
01594 S3MmioAnd16 (
01595   IN UINTN   Address,
01596   IN UINT16  AndData
01597   );
01598 
01620 UINT16
01621 EFIAPI
01622 S3MmioAndThenOr16 (
01623   IN UINTN   Address,
01624   IN UINT16  AndData,
01625   IN UINT16  OrData
01626   );
01627 
01649 UINT16
01650 EFIAPI
01651 S3MmioBitFieldRead16 (
01652   IN UINTN  Address,
01653   IN UINTN  StartBit,
01654   IN UINTN  EndBit
01655   );
01656 
01680 UINT16
01681 EFIAPI
01682 S3MmioBitFieldWrite16 (
01683   IN UINTN   Address,
01684   IN UINTN   StartBit,
01685   IN UINTN   EndBit,
01686   IN UINT16  Value
01687   );
01688 
01716 UINT16
01717 EFIAPI
01718 S3MmioBitFieldOr16 (
01719   IN UINTN   Address,
01720   IN UINTN   StartBit,
01721   IN UINTN   EndBit,
01722   IN UINT16  OrData
01723   );
01724 
01752 UINT16
01753 EFIAPI
01754 S3MmioBitFieldAnd16 (
01755   IN UINTN   Address,
01756   IN UINTN   StartBit,
01757   IN UINTN   EndBit,
01758   IN UINT16  AndData
01759   );
01760 
01790 UINT16
01791 EFIAPI
01792 S3MmioBitFieldAndThenOr16 (
01793   IN UINTN   Address,
01794   IN UINTN   StartBit,
01795   IN UINTN   EndBit,
01796   IN UINT16  AndData,
01797   IN UINT16  OrData
01798   );
01799 
01815 UINT32
01816 EFIAPI
01817 S3MmioRead32 (
01818   IN UINTN  Address
01819   );
01820 
01837 UINT32
01838 EFIAPI
01839 S3MmioWrite32 (
01840   IN UINTN   Address,
01841   IN UINT32  Value
01842   );
01843 
01863 UINT32
01864 EFIAPI
01865 S3MmioOr32 (
01866   IN UINTN   Address,
01867   IN UINT32  OrData
01868   );
01869 
01889 UINT32
01890 EFIAPI
01891 S3MmioAnd32 (
01892   IN UINTN   Address,
01893   IN UINT32  AndData
01894   );
01895 
01917 UINT32
01918 EFIAPI
01919 S3MmioAndThenOr32 (
01920   IN UINTN    Address,
01921   IN UINT32   AndData,
01922   IN UINT32   OrData
01923   );
01924 
01946 UINT32
01947 EFIAPI
01948 S3MmioBitFieldRead32 (
01949   IN UINTN  Address,
01950   IN UINTN  StartBit,
01951   IN UINTN  EndBit
01952   );
01953 
01977 UINT32
01978 EFIAPI
01979 S3MmioBitFieldWrite32 (
01980   IN UINTN   Address,
01981   IN UINTN   StartBit,
01982   IN UINTN   EndBit,
01983   IN UINT32  Value
01984   );
01985 
02013 UINT32
02014 EFIAPI
02015 S3MmioBitFieldOr32 (
02016   IN UINTN   Address,
02017   IN UINTN   StartBit,
02018   IN UINTN   EndBit,
02019   IN UINT32  OrData
02020   );
02021 
02049 UINT32
02050 EFIAPI
02051 S3MmioBitFieldAnd32 (
02052   IN UINTN   Address,
02053   IN UINTN   StartBit,
02054   IN UINTN   EndBit,
02055   IN UINT32  AndData
02056   );
02057 
02087 UINT32
02088 EFIAPI
02089 S3MmioBitFieldAndThenOr32 (
02090   IN UINTN   Address,
02091   IN UINTN   StartBit,
02092   IN UINTN   EndBit,
02093   IN UINT32  AndData,
02094   IN UINT32  OrData
02095   );
02096 
02112 UINT64
02113 EFIAPI
02114 S3MmioRead64 (
02115   IN UINTN  Address
02116   );
02117 
02134 UINT64
02135 EFIAPI
02136 S3MmioWrite64 (
02137   IN UINTN   Address,
02138   IN UINT64  Value
02139   );
02140 
02160 UINT64
02161 EFIAPI
02162 S3MmioOr64 (
02163   IN UINTN   Address,
02164   IN UINT64  OrData
02165   );
02166 
02186 UINT64
02187 EFIAPI
02188 S3MmioAnd64 (
02189   IN UINTN              Address,
02190   IN UINT64             AndData
02191   );
02192 
02214 UINT64
02215 EFIAPI
02216 S3MmioAndThenOr64 (
02217   IN UINTN   Address,
02218   IN UINT64  AndData,
02219   IN UINT64  OrData
02220   );
02221 
02243 UINT64
02244 EFIAPI
02245 S3MmioBitFieldRead64 (
02246   IN UINTN  Address,
02247   IN UINTN  StartBit,
02248   IN UINTN  EndBit
02249   );
02250 
02274 UINT64
02275 EFIAPI
02276 S3MmioBitFieldWrite64 (
02277   IN UINTN   Address,
02278   IN UINTN   StartBit,
02279   IN UINTN   EndBit,
02280   IN UINT64  Value
02281   );
02282 
02310 UINT64
02311 EFIAPI
02312 S3MmioBitFieldOr64 (
02313   IN UINTN   Address,
02314   IN UINTN   StartBit,
02315   IN UINTN   EndBit,
02316   IN UINT64  OrData
02317   );
02318 
02346 UINT64
02347 EFIAPI
02348 S3MmioBitFieldAnd64 (
02349   IN UINTN    Address,
02350   IN UINTN    StartBit,
02351   IN UINTN    EndBit,
02352   IN UINT64   AndData
02353   );
02354 
02384 UINT64
02385 EFIAPI
02386 S3MmioBitFieldAndThenOr64 (
02387   IN UINTN   Address,
02388   IN UINTN   StartBit,
02389   IN UINTN   EndBit,
02390   IN UINT64  AndData,
02391   IN UINT64  OrData
02392   );
02393 
02413 UINT8 *
02414 EFIAPI
02415 S3MmioReadBuffer8 (
02416   IN  UINTN  StartAddress,
02417   IN  UINTN  Length,
02418   OUT UINT8  *Buffer
02419   );
02420 
02444 UINT16 *
02445 EFIAPI
02446 S3MmioReadBuffer16 (
02447   IN  UINTN   StartAddress,
02448   IN  UINTN   Length,
02449   OUT UINT16  *Buffer
02450   );
02451 
02475 UINT32 *
02476 EFIAPI
02477 S3MmioReadBuffer32 (
02478   IN  UINTN   StartAddress,
02479   IN  UINTN   Length,
02480   OUT UINT32  *Buffer
02481   );
02482 
02506 UINT64 *
02507 EFIAPI
02508 S3MmioReadBuffer64 (
02509   IN  UINTN       StartAddress,
02510   IN  UINTN       Length,
02511   OUT UINT64      *Buffer
02512   );
02513 
02533 UINT8 *
02534 EFIAPI
02535 S3MmioWriteBuffer8 (
02536   IN  UINTN         StartAddress,
02537   IN  UINTN         Length,
02538   IN  CONST UINT8   *Buffer
02539   );
02540 
02565 UINT16 *
02566 EFIAPI
02567 S3MmioWriteBuffer16 (
02568   IN  UINTN         StartAddress,
02569   IN  UINTN         Length,
02570   IN  CONST UINT16  *Buffer
02571   );
02572 
02597 UINT32 *
02598 EFIAPI
02599 S3MmioWriteBuffer32 (
02600   IN  UINTN         StartAddress,
02601   IN  UINTN         Length,
02602   IN  CONST UINT32  *Buffer
02603   );
02604 
02629 UINT64 *
02630 EFIAPI
02631 S3MmioWriteBuffer64 (
02632   IN  UINTN         StartAddress,
02633   IN  UINTN         Length,
02634   IN  CONST UINT64  *Buffer
02635   );
02636 
02637 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines