TianoCore EDK2 master
Loading...
Searching...
No Matches
PciLib.c
Go to the documentation of this file.
1
10#include <Base.h>
11
12#include <Library/PciLib.h>
13#include <Library/PciCf8Lib.h>
14
36RETURN_STATUS
37EFIAPI
39 IN UINTN Address
40 )
41{
42 return PciCf8RegisterForRuntimeAccess (Address);
43}
44
60UINT8
61EFIAPI
63 IN UINTN Address
64 )
65{
66 return PciCf8Read8 (Address);
67}
68
85UINT8
86EFIAPI
88 IN UINTN Address,
89 IN UINT8 Value
90 )
91{
92 return PciCf8Write8 (Address, Value);
93}
94
115UINT8
116EFIAPI
118 IN UINTN Address,
119 IN UINT8 OrData
120 )
121{
122 return PciCf8Or8 (Address, OrData);
123}
124
145UINT8
146EFIAPI
148 IN UINTN Address,
149 IN UINT8 AndData
150 )
151{
152 return PciCf8And8 (Address, AndData);
153}
154
177UINT8
178EFIAPI
180 IN UINTN Address,
181 IN UINT8 AndData,
182 IN UINT8 OrData
183 )
184{
185 return PciCf8AndThenOr8 (Address, AndData, OrData);
186}
187
209UINT8
210EFIAPI
212 IN UINTN Address,
213 IN UINTN StartBit,
214 IN UINTN EndBit
215 )
216{
217 return PciCf8BitFieldRead8 (Address, StartBit, EndBit);
218}
219
244UINT8
245EFIAPI
247 IN UINTN Address,
248 IN UINTN StartBit,
249 IN UINTN EndBit,
250 IN UINT8 Value
251 )
252{
253 return PciCf8BitFieldWrite8 (Address, StartBit, EndBit, Value);
254}
255
283UINT8
284EFIAPI
286 IN UINTN Address,
287 IN UINTN StartBit,
288 IN UINTN EndBit,
289 IN UINT8 OrData
290 )
291{
292 return PciCf8BitFieldOr8 (Address, StartBit, EndBit, OrData);
293}
294
322UINT8
323EFIAPI
325 IN UINTN Address,
326 IN UINTN StartBit,
327 IN UINTN EndBit,
328 IN UINT8 AndData
329 )
330{
331 return PciCf8BitFieldAnd8 (Address, StartBit, EndBit, AndData);
332}
333
365UINT8
366EFIAPI
368 IN UINTN Address,
369 IN UINTN StartBit,
370 IN UINTN EndBit,
371 IN UINT8 AndData,
372 IN UINT8 OrData
373 )
374{
375 return PciCf8BitFieldAndThenOr8 (Address, StartBit, EndBit, AndData, OrData);
376}
377
394UINT16
395EFIAPI
397 IN UINTN Address
398 )
399{
400 return PciCf8Read16 (Address);
401}
402
420UINT16
421EFIAPI
423 IN UINTN Address,
424 IN UINT16 Value
425 )
426{
427 return PciCf8Write16 (Address, Value);
428}
429
451UINT16
452EFIAPI
454 IN UINTN Address,
455 IN UINT16 OrData
456 )
457{
458 return PciCf8Or16 (Address, OrData);
459}
460
482UINT16
483EFIAPI
485 IN UINTN Address,
486 IN UINT16 AndData
487 )
488{
489 return PciCf8And16 (Address, AndData);
490}
491
515UINT16
516EFIAPI
518 IN UINTN Address,
519 IN UINT16 AndData,
520 IN UINT16 OrData
521 )
522{
523 return PciCf8AndThenOr16 (Address, AndData, OrData);
524}
525
548UINT16
549EFIAPI
551 IN UINTN Address,
552 IN UINTN StartBit,
553 IN UINTN EndBit
554 )
555{
556 return PciCf8BitFieldRead16 (Address, StartBit, EndBit);
557}
558
584UINT16
585EFIAPI
587 IN UINTN Address,
588 IN UINTN StartBit,
589 IN UINTN EndBit,
590 IN UINT16 Value
591 )
592{
593 return PciCf8BitFieldWrite16 (Address, StartBit, EndBit, Value);
594}
595
624UINT16
625EFIAPI
627 IN UINTN Address,
628 IN UINTN StartBit,
629 IN UINTN EndBit,
630 IN UINT16 OrData
631 )
632{
633 return PciCf8BitFieldOr16 (Address, StartBit, EndBit, OrData);
634}
635
664UINT16
665EFIAPI
667 IN UINTN Address,
668 IN UINTN StartBit,
669 IN UINTN EndBit,
670 IN UINT16 AndData
671 )
672{
673 return PciCf8BitFieldAnd16 (Address, StartBit, EndBit, AndData);
674}
675
708UINT16
709EFIAPI
711 IN UINTN Address,
712 IN UINTN StartBit,
713 IN UINTN EndBit,
714 IN UINT16 AndData,
715 IN UINT16 OrData
716 )
717{
718 return PciCf8BitFieldAndThenOr16 (Address, StartBit, EndBit, AndData, OrData);
719}
720
737UINT32
738EFIAPI
740 IN UINTN Address
741 )
742{
743 return PciCf8Read32 (Address);
744}
745
763UINT32
764EFIAPI
766 IN UINTN Address,
767 IN UINT32 Value
768 )
769{
770 return PciCf8Write32 (Address, Value);
771}
772
794UINT32
795EFIAPI
797 IN UINTN Address,
798 IN UINT32 OrData
799 )
800{
801 return PciCf8Or32 (Address, OrData);
802}
803
825UINT32
826EFIAPI
828 IN UINTN Address,
829 IN UINT32 AndData
830 )
831{
832 return PciCf8And32 (Address, AndData);
833}
834
858UINT32
859EFIAPI
861 IN UINTN Address,
862 IN UINT32 AndData,
863 IN UINT32 OrData
864 )
865{
866 return PciCf8AndThenOr32 (Address, AndData, OrData);
867}
868
891UINT32
892EFIAPI
894 IN UINTN Address,
895 IN UINTN StartBit,
896 IN UINTN EndBit
897 )
898{
899 return PciCf8BitFieldRead32 (Address, StartBit, EndBit);
900}
901
927UINT32
928EFIAPI
930 IN UINTN Address,
931 IN UINTN StartBit,
932 IN UINTN EndBit,
933 IN UINT32 Value
934 )
935{
936 return PciCf8BitFieldWrite32 (Address, StartBit, EndBit, Value);
937}
938
967UINT32
968EFIAPI
970 IN UINTN Address,
971 IN UINTN StartBit,
972 IN UINTN EndBit,
973 IN UINT32 OrData
974 )
975{
976 return PciCf8BitFieldOr32 (Address, StartBit, EndBit, OrData);
977}
978
1007UINT32
1008EFIAPI
1010 IN UINTN Address,
1011 IN UINTN StartBit,
1012 IN UINTN EndBit,
1013 IN UINT32 AndData
1014 )
1015{
1016 return PciCf8BitFieldAnd32 (Address, StartBit, EndBit, AndData);
1017}
1018
1051UINT32
1052EFIAPI
1054 IN UINTN Address,
1055 IN UINTN StartBit,
1056 IN UINTN EndBit,
1057 IN UINT32 AndData,
1058 IN UINT32 OrData
1059 )
1060{
1061 return PciCf8BitFieldAndThenOr32 (Address, StartBit, EndBit, AndData, OrData);
1062}
1063
1087UINTN
1088EFIAPI
1090 IN UINTN StartAddress,
1091 IN UINTN Size,
1092 OUT VOID *Buffer
1093 )
1094{
1095 return PciCf8ReadBuffer (StartAddress, Size, Buffer);
1096}
1097
1122UINTN
1123EFIAPI
1125 IN UINTN StartAddress,
1126 IN UINTN Size,
1127 IN VOID *Buffer
1128 )
1129{
1130 return PciCf8WriteBuffer (StartAddress, Size, Buffer);
1131}
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
UINT16 EFIAPI PciBitFieldOr16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 OrData)
Definition: PciLib.c:626
UINTN EFIAPI PciWriteBuffer(IN UINTN StartAddress, IN UINTN Size, IN VOID *Buffer)
Definition: PciLib.c:1124
UINT32 EFIAPI PciBitFieldWrite32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 Value)
Definition: PciLib.c:929
UINT32 EFIAPI PciAndThenOr32(IN UINTN Address, IN UINT32 AndData, IN UINT32 OrData)
Definition: PciLib.c:860
UINT32 EFIAPI PciBitFieldOr32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 OrData)
Definition: PciLib.c:969
UINT32 EFIAPI PciRead32(IN UINTN Address)
Definition: PciLib.c:739
UINT32 EFIAPI PciOr32(IN UINTN Address, IN UINT32 OrData)
Definition: PciLib.c:796
UINT8 EFIAPI PciBitFieldWrite8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 Value)
Definition: PciLib.c:246
RETURN_STATUS EFIAPI PciRegisterForRuntimeAccess(IN UINTN Address)
Definition: PciLib.c:38
UINT8 EFIAPI PciRead8(IN UINTN Address)
Definition: PciLib.c:62
UINT8 EFIAPI PciAnd8(IN UINTN Address, IN UINT8 AndData)
Definition: PciLib.c:147
UINT8 EFIAPI PciOr8(IN UINTN Address, IN UINT8 OrData)
Definition: PciLib.c:117
UINT16 EFIAPI PciAnd16(IN UINTN Address, IN UINT16 AndData)
Definition: PciLib.c:484
UINT32 EFIAPI PciWrite32(IN UINTN Address, IN UINT32 Value)
Definition: PciLib.c:765
UINT16 EFIAPI PciOr16(IN UINTN Address, IN UINT16 OrData)
Definition: PciLib.c:453
UINT16 EFIAPI PciBitFieldAnd16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData)
Definition: PciLib.c:666
UINT32 EFIAPI PciBitFieldAnd32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData)
Definition: PciLib.c:1009
UINT32 EFIAPI PciBitFieldRead32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit)
Definition: PciLib.c:893
UINT16 EFIAPI PciBitFieldAndThenOr16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData, IN UINT16 OrData)
Definition: PciLib.c:710
UINT8 EFIAPI PciAndThenOr8(IN UINTN Address, IN UINT8 AndData, IN UINT8 OrData)
Definition: PciLib.c:179
UINT8 EFIAPI PciWrite8(IN UINTN Address, IN UINT8 Value)
Definition: PciLib.c:87
UINT16 EFIAPI PciWrite16(IN UINTN Address, IN UINT16 Value)
Definition: PciLib.c:422
UINT16 EFIAPI PciBitFieldRead16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit)
Definition: PciLib.c:550
UINT16 EFIAPI PciBitFieldWrite16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 Value)
Definition: PciLib.c:586
UINT8 EFIAPI PciBitFieldAnd8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData)
Definition: PciLib.c:324
UINT8 EFIAPI PciBitFieldAndThenOr8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData, IN UINT8 OrData)
Definition: PciLib.c:367
UINT8 EFIAPI PciBitFieldOr8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 OrData)
Definition: PciLib.c:285
UINT32 EFIAPI PciAnd32(IN UINTN Address, IN UINT32 AndData)
Definition: PciLib.c:827
UINT32 EFIAPI PciBitFieldAndThenOr32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData, IN UINT32 OrData)
Definition: PciLib.c:1053
UINT8 EFIAPI PciBitFieldRead8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit)
Definition: PciLib.c:211
UINT16 EFIAPI PciAndThenOr16(IN UINTN Address, IN UINT16 AndData, IN UINT16 OrData)
Definition: PciLib.c:517
UINTN EFIAPI PciReadBuffer(IN UINTN StartAddress, IN UINTN Size, OUT VOID *Buffer)
Definition: PciLib.c:1089
UINT16 EFIAPI PciRead16(IN UINTN Address)
Definition: PciLib.c:396
UINT8 EFIAPI PciCf8Read8(IN UINTN Address)
Definition: PciCf8Lib.c:106
UINT32 EFIAPI PciCf8BitFieldOr32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 OrData)
Definition: PciCf8Lib.c:1435
UINT32 EFIAPI PciCf8BitFieldRead32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit)
Definition: PciCf8Lib.c:1326
UINT32 EFIAPI PciCf8BitFieldWrite32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 Value)
Definition: PciCf8Lib.c:1378
UINT8 EFIAPI PciCf8And8(IN UINTN Address, IN UINT8 AndData)
Definition: PciCf8Lib.c:233
UINT32 EFIAPI PciCf8Write32(IN UINTN Address, IN UINT32 Value)
Definition: PciCf8Lib.c:1137
UINT32 EFIAPI PciCf8And32(IN UINTN Address, IN UINT32 AndData)
Definition: PciCf8Lib.c:1229
UINTN EFIAPI PciCf8WriteBuffer(IN UINTN StartAddress, IN UINTN Size, IN VOID *Buffer)
Definition: PciCf8Lib.c:1707
UINT8 EFIAPI PciCf8BitFieldWrite8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 Value)
Definition: PciCf8Lib.c:379
UINT32 EFIAPI PciCf8Or32(IN UINTN Address, IN UINT32 OrData)
Definition: PciCf8Lib.c:1183
UINT32 EFIAPI PciCf8Read32(IN UINTN Address)
Definition: PciCf8Lib.c:1099
UINT8 EFIAPI PciCf8AndThenOr8(IN UINTN Address, IN UINT8 AndData, IN UINT8 OrData)
Definition: PciCf8Lib.c:280
UINT8 EFIAPI PciCf8BitFieldRead8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit)
Definition: PciCf8Lib.c:328
UINT8 EFIAPI PciCf8Or8(IN UINTN Address, IN UINT8 OrData)
Definition: PciCf8Lib.c:188
UINT16 EFIAPI PciCf8BitFieldOr16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 OrData)
Definition: PciCf8Lib.c:934
UINT16 EFIAPI PciCf8Write16(IN UINTN Address, IN UINT16 Value)
Definition: PciCf8Lib.c:636
UINT16 EFIAPI PciCf8And16(IN UINTN Address, IN UINT16 AndData)
Definition: PciCf8Lib.c:728
UINT8 EFIAPI PciCf8BitFieldAndThenOr8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData, IN UINT8 OrData)
Definition: PciCf8Lib.c:551
UINT8 EFIAPI PciCf8Write8(IN UINTN Address, IN UINT8 Value)
Definition: PciCf8Lib.c:143
UINT32 EFIAPI PciCf8AndThenOr32(IN UINTN Address, IN UINT32 AndData, IN UINT32 OrData)
Definition: PciCf8Lib.c:1277
RETURN_STATUS EFIAPI PciCf8RegisterForRuntimeAccess(IN UINTN Address)
Definition: PciCf8Lib.c:80
UINT32 EFIAPI PciCf8BitFieldAndThenOr32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData, IN UINT32 OrData)
Definition: PciCf8Lib.c:1553
UINT16 EFIAPI PciCf8Read16(IN UINTN Address)
Definition: PciCf8Lib.c:598
UINT16 EFIAPI PciCf8Or16(IN UINTN Address, IN UINT16 OrData)
Definition: PciCf8Lib.c:682
UINT16 EFIAPI PciCf8BitFieldAndThenOr16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData, IN UINT16 OrData)
Definition: PciCf8Lib.c:1052
UINT16 EFIAPI PciCf8BitFieldAnd16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData)
Definition: PciCf8Lib.c:991
UINT8 EFIAPI PciCf8BitFieldAnd8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData)
Definition: PciCf8Lib.c:491
UINT16 EFIAPI PciCf8AndThenOr16(IN UINTN Address, IN UINT16 AndData, IN UINT16 OrData)
Definition: PciCf8Lib.c:776
UINT16 EFIAPI PciCf8BitFieldWrite16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 Value)
Definition: PciCf8Lib.c:877
UINT8 EFIAPI PciCf8BitFieldOr8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 OrData)
Definition: PciCf8Lib.c:435
UINTN EFIAPI PciCf8ReadBuffer(IN UINTN StartAddress, IN UINTN Size, OUT VOID *Buffer)
Definition: PciCf8Lib.c:1607
UINT32 EFIAPI PciCf8BitFieldAnd32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData)
Definition: PciCf8Lib.c:1492
UINT16 EFIAPI PciCf8BitFieldRead16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit)
Definition: PciCf8Lib.c:825