TianoCore EDK2 master
Loading...
Searching...
No Matches
PciSegmentLib.h
Go to the documentation of this file.
1
31#ifndef __PCI_SEGMENT_LIB__
32#define __PCI_SEGMENT_LIB__
33
51#define PCI_SEGMENT_LIB_ADDRESS(Segment, Bus, Device, Function, Register) \
52 ((Segment != 0) ? \
53 ( ((Register) & 0xfff) | \
54 (((Function) & 0x07) << 12) | \
55 (((Device) & 0x1f) << 15) | \
56 (((Bus) & 0xff) << 20) | \
57 (LShiftU64 ((Segment) & 0xffff, 32)) \
58 ) : \
59 ( ((Register) & 0xfff) | \
60 (((Function) & 0x07) << 12) | \
61 (((Device) & 0x1f) << 15) | \
62 (((Bus) & 0xff) << 20) \
63 ) \
64 )
65
84RETURN_STATUS
85EFIAPI
87 IN UINTN Address
88 );
89
103UINT8
104EFIAPI
106 IN UINT64 Address
107 );
108
123UINT8
124EFIAPI
126 IN UINT64 Address,
127 IN UINT8 Value
128 );
129
147UINT8
148EFIAPI
150 IN UINT64 Address,
151 IN UINT8 OrData
152 );
153
170UINT8
171EFIAPI
173 IN UINT64 Address,
174 IN UINT8 AndData
175 );
176
197UINT8
198EFIAPI
200 IN UINT64 Address,
201 IN UINT8 AndData,
202 IN UINT8 OrData
203 );
204
226UINT8
227EFIAPI
229 IN UINT64 Address,
230 IN UINTN StartBit,
231 IN UINTN EndBit
232 );
233
258UINT8
259EFIAPI
261 IN UINT64 Address,
262 IN UINTN StartBit,
263 IN UINTN EndBit,
264 IN UINT8 Value
265 );
266
294UINT8
295EFIAPI
297 IN UINT64 Address,
298 IN UINTN StartBit,
299 IN UINTN EndBit,
300 IN UINT8 OrData
301 );
302
330UINT8
331EFIAPI
333 IN UINT64 Address,
334 IN UINTN StartBit,
335 IN UINTN EndBit,
336 IN UINT8 AndData
337 );
338
369UINT8
370EFIAPI
372 IN UINT64 Address,
373 IN UINTN StartBit,
374 IN UINTN EndBit,
375 IN UINT8 AndData,
376 IN UINT8 OrData
377 );
378
393UINT16
394EFIAPI
396 IN UINT64 Address
397 );
398
414UINT16
415EFIAPI
417 IN UINT64 Address,
418 IN UINT16 Value
419 );
420
441UINT16
442EFIAPI
444 IN UINT64 Address,
445 IN UINT16 OrData
446 );
447
466UINT16
467EFIAPI
469 IN UINT64 Address,
470 IN UINT16 AndData
471 );
472
494UINT16
495EFIAPI
497 IN UINT64 Address,
498 IN UINT16 AndData,
499 IN UINT16 OrData
500 );
501
524UINT16
525EFIAPI
527 IN UINT64 Address,
528 IN UINTN StartBit,
529 IN UINTN EndBit
530 );
531
557UINT16
558EFIAPI
560 IN UINT64 Address,
561 IN UINTN StartBit,
562 IN UINTN EndBit,
563 IN UINT16 Value
564 );
565
594UINT16
595EFIAPI
597 IN UINT64 Address,
598 IN UINTN StartBit,
599 IN UINTN EndBit,
600 IN UINT16 OrData
601 );
602
631UINT16
632EFIAPI
634 IN UINT64 Address,
635 IN UINTN StartBit,
636 IN UINTN EndBit,
637 IN UINT16 AndData
638 );
639
671UINT16
672EFIAPI
674 IN UINT64 Address,
675 IN UINTN StartBit,
676 IN UINTN EndBit,
677 IN UINT16 AndData,
678 IN UINT16 OrData
679 );
680
695UINT32
696EFIAPI
698 IN UINT64 Address
699 );
700
716UINT32
717EFIAPI
719 IN UINT64 Address,
720 IN UINT32 Value
721 );
722
741UINT32
742EFIAPI
744 IN UINT64 Address,
745 IN UINT32 OrData
746 );
747
766UINT32
767EFIAPI
769 IN UINT64 Address,
770 IN UINT32 AndData
771 );
772
794UINT32
795EFIAPI
797 IN UINT64 Address,
798 IN UINT32 AndData,
799 IN UINT32 OrData
800 );
801
824UINT32
825EFIAPI
827 IN UINT64 Address,
828 IN UINTN StartBit,
829 IN UINTN EndBit
830 );
831
857UINT32
858EFIAPI
860 IN UINT64 Address,
861 IN UINTN StartBit,
862 IN UINTN EndBit,
863 IN UINT32 Value
864 );
865
893UINT32
894EFIAPI
896 IN UINT64 Address,
897 IN UINTN StartBit,
898 IN UINTN EndBit,
899 IN UINT32 OrData
900 );
901
929UINT32
930EFIAPI
932 IN UINT64 Address,
933 IN UINTN StartBit,
934 IN UINTN EndBit,
935 IN UINT32 AndData
936 );
937
969UINT32
970EFIAPI
972 IN UINT64 Address,
973 IN UINTN StartBit,
974 IN UINTN EndBit,
975 IN UINT32 AndData,
976 IN UINT32 OrData
977 );
978
1002UINTN
1003EFIAPI
1005 IN UINT64 StartAddress,
1006 IN UINTN Size,
1007 OUT VOID *Buffer
1008 );
1009
1034UINTN
1035EFIAPI
1037 IN UINT64 StartAddress,
1038 IN UINTN Size,
1039 IN VOID *Buffer
1040 );
1041
1042#endif
UINT64 UINTN
UINT8 EFIAPI PciSegmentRead8(IN UINT64 Address)
Definition: PciSegmentLib.c:78
UINT32 EFIAPI PciSegmentAnd32(IN UINT64 Address, IN UINT32 AndData)
UINT16 EFIAPI PciSegmentWrite16(IN UINT64 Address, IN UINT16 Value)
UINT16 EFIAPI PciSegmentBitFieldAnd16(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData)
UINT32 EFIAPI PciSegmentWrite32(IN UINT64 Address, IN UINT32 Value)
UINT8 EFIAPI PciSegmentBitFieldOr8(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 OrData)
UINT16 EFIAPI PciSegmentBitFieldOr16(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 OrData)
UINTN EFIAPI PciSegmentReadBuffer(IN UINT64 StartAddress, IN UINTN Size, OUT VOID *Buffer)
UINT8 EFIAPI PciSegmentBitFieldAnd8(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData)
UINT16 EFIAPI PciSegmentAnd16(IN UINT64 Address, IN UINT16 AndData)
UINT16 EFIAPI PciSegmentRead16(IN UINT64 Address)
RETURN_STATUS EFIAPI PciSegmentRegisterForRuntimeAccess(IN UINTN Address)
Definition: PciSegmentLib.c:55
UINT32 EFIAPI PciSegmentBitFieldWrite32(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 Value)
UINT8 EFIAPI PciSegmentBitFieldWrite8(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 Value)
UINT16 EFIAPI PciSegmentOr16(IN UINT64 Address, IN UINT16 OrData)
UINT32 EFIAPI PciSegmentBitFieldAndThenOr32(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData, IN UINT32 OrData)
UINT8 EFIAPI PciSegmentBitFieldRead8(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit)
UINT8 EFIAPI PciSegmentOr8(IN UINT64 Address, IN UINT8 OrData)
UINT16 EFIAPI PciSegmentBitFieldAndThenOr16(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData, IN UINT16 OrData)
UINT16 EFIAPI PciSegmentBitFieldRead16(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit)
UINT32 EFIAPI PciSegmentAndThenOr32(IN UINT64 Address, IN UINT32 AndData, IN UINT32 OrData)
UINT32 EFIAPI PciSegmentRead32(IN UINT64 Address)
UINT8 EFIAPI PciSegmentAnd8(IN UINT64 Address, IN UINT8 AndData)
UINT8 EFIAPI PciSegmentBitFieldAndThenOr8(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData, IN UINT8 OrData)
UINT32 EFIAPI PciSegmentBitFieldOr32(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 OrData)
UINT16 EFIAPI PciSegmentAndThenOr16(IN UINT64 Address, IN UINT16 AndData, IN UINT16 OrData)
UINT32 EFIAPI PciSegmentBitFieldAnd32(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData)
UINT8 EFIAPI PciSegmentAndThenOr8(IN UINT64 Address, IN UINT8 AndData, IN UINT8 OrData)
UINT16 EFIAPI PciSegmentBitFieldWrite16(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 Value)
UINT8 EFIAPI PciSegmentWrite8(IN UINT64 Address, IN UINT8 Value)
UINT32 EFIAPI PciSegmentBitFieldRead32(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit)
UINTN EFIAPI PciSegmentWriteBuffer(IN UINT64 StartAddress, IN UINTN Size, IN VOID *Buffer)
UINT32 EFIAPI PciSegmentOr32(IN UINT64 Address, IN UINT32 OrData)
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284