TianoCore EDK2 master
Loading...
Searching...
No Matches
PciExpressLib.h
Go to the documentation of this file.
1
14#ifndef __PCI_EXPRESS_LIB_H__
15#define __PCI_EXPRESS_LIB_H__
16
18
35#define PCI_EXPRESS_LIB_ADDRESS(Bus, Device, Function, Offset) PCI_ECAM_ADDRESS ((Bus), (Device), (Function), (Offset))
36
59RETURN_STATUS
60EFIAPI
62 IN UINTN Address
63 );
64
80UINT8
81EFIAPI
83 IN UINTN Address
84 );
85
102UINT8
103EFIAPI
105 IN UINTN Address,
106 IN UINT8 Value
107 );
108
129UINT8
130EFIAPI
132 IN UINTN Address,
133 IN UINT8 OrData
134 );
135
156UINT8
157EFIAPI
159 IN UINTN Address,
160 IN UINT8 AndData
161 );
162
185UINT8
186EFIAPI
188 IN UINTN Address,
189 IN UINT8 AndData,
190 IN UINT8 OrData
191 );
192
214UINT8
215EFIAPI
217 IN UINTN Address,
218 IN UINTN StartBit,
219 IN UINTN EndBit
220 );
221
246UINT8
247EFIAPI
249 IN UINTN Address,
250 IN UINTN StartBit,
251 IN UINTN EndBit,
252 IN UINT8 Value
253 );
254
282UINT8
283EFIAPI
285 IN UINTN Address,
286 IN UINTN StartBit,
287 IN UINTN EndBit,
288 IN UINT8 OrData
289 );
290
318UINT8
319EFIAPI
321 IN UINTN Address,
322 IN UINTN StartBit,
323 IN UINTN EndBit,
324 IN UINT8 AndData
325 );
326
358UINT8
359EFIAPI
361 IN UINTN Address,
362 IN UINTN StartBit,
363 IN UINTN EndBit,
364 IN UINT8 AndData,
365 IN UINT8 OrData
366 );
367
384UINT16
385EFIAPI
387 IN UINTN Address
388 );
389
407UINT16
408EFIAPI
410 IN UINTN Address,
411 IN UINT16 Value
412 );
413
435UINT16
436EFIAPI
438 IN UINTN Address,
439 IN UINT16 OrData
440 );
441
463UINT16
464EFIAPI
466 IN UINTN Address,
467 IN UINT16 AndData
468 );
469
493UINT16
494EFIAPI
496 IN UINTN Address,
497 IN UINT16 AndData,
498 IN UINT16 OrData
499 );
500
523UINT16
524EFIAPI
526 IN UINTN Address,
527 IN UINTN StartBit,
528 IN UINTN EndBit
529 );
530
556UINT16
557EFIAPI
559 IN UINTN Address,
560 IN UINTN StartBit,
561 IN UINTN EndBit,
562 IN UINT16 Value
563 );
564
593UINT16
594EFIAPI
596 IN UINTN Address,
597 IN UINTN StartBit,
598 IN UINTN EndBit,
599 IN UINT16 OrData
600 );
601
630UINT16
631EFIAPI
633 IN UINTN Address,
634 IN UINTN StartBit,
635 IN UINTN EndBit,
636 IN UINT16 AndData
637 );
638
671UINT16
672EFIAPI
674 IN UINTN Address,
675 IN UINTN StartBit,
676 IN UINTN EndBit,
677 IN UINT16 AndData,
678 IN UINT16 OrData
679 );
680
697UINT32
698EFIAPI
700 IN UINTN Address
701 );
702
720UINT32
721EFIAPI
723 IN UINTN Address,
724 IN UINT32 Value
725 );
726
748UINT32
749EFIAPI
751 IN UINTN Address,
752 IN UINT32 OrData
753 );
754
776UINT32
777EFIAPI
779 IN UINTN Address,
780 IN UINT32 AndData
781 );
782
806UINT32
807EFIAPI
809 IN UINTN Address,
810 IN UINT32 AndData,
811 IN UINT32 OrData
812 );
813
836UINT32
837EFIAPI
839 IN UINTN Address,
840 IN UINTN StartBit,
841 IN UINTN EndBit
842 );
843
869UINT32
870EFIAPI
872 IN UINTN Address,
873 IN UINTN StartBit,
874 IN UINTN EndBit,
875 IN UINT32 Value
876 );
877
906UINT32
907EFIAPI
909 IN UINTN Address,
910 IN UINTN StartBit,
911 IN UINTN EndBit,
912 IN UINT32 OrData
913 );
914
943UINT32
944EFIAPI
946 IN UINTN Address,
947 IN UINTN StartBit,
948 IN UINTN EndBit,
949 IN UINT32 AndData
950 );
951
984UINT32
985EFIAPI
987 IN UINTN Address,
988 IN UINTN StartBit,
989 IN UINTN EndBit,
990 IN UINT32 AndData,
991 IN UINT32 OrData
992 );
993
1017UINTN
1018EFIAPI
1020 IN UINTN StartAddress,
1021 IN UINTN Size,
1022 OUT VOID *Buffer
1023 );
1024
1049UINTN
1050EFIAPI
1052 IN UINTN StartAddress,
1053 IN UINTN Size,
1054 IN VOID *Buffer
1055 );
1056
1057#endif
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
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)