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>
14
36RETURN_STATUS
37EFIAPI
39 IN UINTN Address
40 )
41{
43}
44
60UINT8
61EFIAPI
63 IN UINTN Address
64 )
65{
66 return PciExpressRead8 (Address);
67}
68
85UINT8
86EFIAPI
88 IN UINTN Address,
89 IN UINT8 Value
90 )
91{
92 return PciExpressWrite8 (Address, Value);
93}
94
115UINT8
116EFIAPI
118 IN UINTN Address,
119 IN UINT8 OrData
120 )
121{
122 return PciExpressOr8 (Address, OrData);
123}
124
145UINT8
146EFIAPI
148 IN UINTN Address,
149 IN UINT8 AndData
150 )
151{
152 return PciExpressAnd8 (Address, AndData);
153}
154
177UINT8
178EFIAPI
180 IN UINTN Address,
181 IN UINT8 AndData,
182 IN UINT8 OrData
183 )
184{
185 return PciExpressAndThenOr8 (Address, AndData, OrData);
186}
187
209UINT8
210EFIAPI
212 IN UINTN Address,
213 IN UINTN StartBit,
214 IN UINTN EndBit
215 )
216{
217 return PciExpressBitFieldRead8 (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 PciExpressBitFieldWrite8 (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 PciExpressBitFieldOr8 (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 PciExpressBitFieldAnd8 (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 PciExpressBitFieldAndThenOr8 (Address, StartBit, EndBit, AndData, OrData);
376}
377
394UINT16
395EFIAPI
397 IN UINTN Address
398 )
399{
400 return PciExpressRead16 (Address);
401}
402
420UINT16
421EFIAPI
423 IN UINTN Address,
424 IN UINT16 Value
425 )
426{
427 return PciExpressWrite16 (Address, Value);
428}
429
451UINT16
452EFIAPI
454 IN UINTN Address,
455 IN UINT16 OrData
456 )
457{
458 return PciExpressOr16 (Address, OrData);
459}
460
482UINT16
483EFIAPI
485 IN UINTN Address,
486 IN UINT16 AndData
487 )
488{
489 return PciExpressAnd16 (Address, AndData);
490}
491
515UINT16
516EFIAPI
518 IN UINTN Address,
519 IN UINT16 AndData,
520 IN UINT16 OrData
521 )
522{
523 return PciExpressAndThenOr16 (Address, AndData, OrData);
524}
525
548UINT16
549EFIAPI
551 IN UINTN Address,
552 IN UINTN StartBit,
553 IN UINTN EndBit
554 )
555{
556 return PciExpressBitFieldRead16 (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 PciExpressBitFieldWrite16 (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 PciExpressBitFieldOr16 (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 PciExpressBitFieldAnd16 (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 PciExpressBitFieldAndThenOr16 (Address, StartBit, EndBit, AndData, OrData);
719}
720
737UINT32
738EFIAPI
740 IN UINTN Address
741 )
742{
743 return PciExpressRead32 (Address);
744}
745
763UINT32
764EFIAPI
766 IN UINTN Address,
767 IN UINT32 Value
768 )
769{
770 return PciExpressWrite32 (Address, Value);
771}
772
794UINT32
795EFIAPI
797 IN UINTN Address,
798 IN UINT32 OrData
799 )
800{
801 return PciExpressOr32 (Address, OrData);
802}
803
825UINT32
826EFIAPI
828 IN UINTN Address,
829 IN UINT32 AndData
830 )
831{
832 return PciExpressAnd32 (Address, AndData);
833}
834
858UINT32
859EFIAPI
861 IN UINTN Address,
862 IN UINT32 AndData,
863 IN UINT32 OrData
864 )
865{
866 return PciExpressAndThenOr32 (Address, AndData, OrData);
867}
868
891UINT32
892EFIAPI
894 IN UINTN Address,
895 IN UINTN StartBit,
896 IN UINTN EndBit
897 )
898{
899 return PciExpressBitFieldRead32 (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 PciExpressBitFieldWrite32 (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 PciExpressBitFieldOr32 (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 PciExpressBitFieldAnd32 (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 PciExpressBitFieldAndThenOr32 (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 PciExpressReadBuffer (StartAddress, Size, Buffer);
1096}
1097
1122UINTN
1123EFIAPI
1125 IN UINTN StartAddress,
1126 IN UINTN Size,
1127 IN VOID *Buffer
1128 )
1129{
1130 return PciExpressWriteBuffer (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
RETURN_STATUS EFIAPI PciExpressRegisterForRuntimeAccess(IN UINTN Address)
Definition: PciExpressLib.c:56
UINT8 EFIAPI PciExpressBitFieldAnd8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData)
UINT32 EFIAPI PciExpressWrite32(IN UINTN Address, IN UINT32 Value)
UINT16 EFIAPI PciExpressBitFieldAnd16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData)
UINT8 EFIAPI PciExpressAndThenOr8(IN UINTN Address, IN UINT8 AndData, IN UINT8 OrData)
UINT32 EFIAPI PciExpressBitFieldOr32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 OrData)
UINT16 EFIAPI PciExpressOr16(IN UINTN Address, IN UINT16 OrData)
UINT8 EFIAPI PciExpressBitFieldAndThenOr8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData, IN UINT8 OrData)
UINT16 EFIAPI PciExpressBitFieldAndThenOr16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData, IN UINT16 OrData)
UINT32 EFIAPI PciExpressBitFieldWrite32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 Value)
UINT16 EFIAPI PciExpressRead16(IN UINTN Address)
UINTN EFIAPI PciExpressReadBuffer(IN UINTN StartAddress, IN UINTN Size, OUT VOID *Buffer)
UINT8 EFIAPI PciExpressWrite8(IN UINTN Address, IN UINT8 Value)
UINT8 EFIAPI PciExpressBitFieldWrite8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 Value)
UINT8 EFIAPI PciExpressAnd8(IN UINTN Address, IN UINT8 AndData)
UINT32 EFIAPI PciExpressOr32(IN UINTN Address, IN UINT32 OrData)
UINT16 EFIAPI PciExpressWrite16(IN UINTN Address, IN UINT16 Value)
UINTN EFIAPI PciExpressWriteBuffer(IN UINTN StartAddress, IN UINTN Size, IN VOID *Buffer)
UINT8 EFIAPI PciExpressOr8(IN UINTN Address, IN UINT8 OrData)
UINT32 EFIAPI PciExpressBitFieldAndThenOr32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData, IN UINT32 OrData)
UINT8 EFIAPI PciExpressBitFieldOr8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 OrData)
UINT32 EFIAPI PciExpressBitFieldAnd32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData)
UINT16 EFIAPI PciExpressBitFieldWrite16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 Value)
UINT16 EFIAPI PciExpressBitFieldOr16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 OrData)
UINT16 EFIAPI PciExpressAndThenOr16(IN UINTN Address, IN UINT16 AndData, IN UINT16 OrData)
UINT32 EFIAPI PciExpressAndThenOr32(IN UINTN Address, IN UINT32 AndData, IN UINT32 OrData)
UINT8 EFIAPI PciExpressBitFieldRead8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit)
UINT16 EFIAPI PciExpressAnd16(IN UINTN Address, IN UINT16 AndData)
UINT8 EFIAPI PciExpressRead8(IN UINTN Address)
UINT32 EFIAPI PciExpressBitFieldRead32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit)
UINT32 EFIAPI PciExpressAnd32(IN UINTN Address, IN UINT32 AndData)
UINT32 EFIAPI PciExpressRead32(IN UINTN Address)
UINT16 EFIAPI PciExpressBitFieldRead16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit)