TianoCore EDK2 master
Loading...
Searching...
No Matches
S3PciSegmentLib.h
Go to the documentation of this file.
1
11#ifndef __S3_PCI_SEGMENT_LIB__
12#define __S3_PCI_SEGMENT_LIB__
13
31#define S3_PCI_SEGMENT_LIB_ADDRESS(Segment, Bus, Device, Function, Register) \
32 ((Segment != 0) ? \
33 ( ((Register) & 0xfff) | \
34 (((Function) & 0x07) << 12) | \
35 (((Device) & 0x1f) << 15) | \
36 (((Bus) & 0xff) << 20) | \
37 (LShiftU64 ((Segment) & 0xffff, 32)) \
38 ) : \
39 ( ((Register) & 0xfff) | \
40 (((Function) & 0x07) << 12) | \
41 (((Device) & 0x1f) << 15) | \
42 (((Bus) & 0xff) << 20) \
43 ) \
44 )
45
60UINT8
61EFIAPI
63 IN UINT64 Address
64 );
65
81UINT8
82EFIAPI
84 IN UINT64 Address,
85 IN UINT8 Value
86 );
87
106UINT8
107EFIAPI
109 IN UINT64 Address,
110 IN UINT8 OrData
111 );
112
130UINT8
131EFIAPI
133 IN UINT64 Address,
134 IN UINT8 AndData
135 );
136
158UINT8
159EFIAPI
161 IN UINT64 Address,
162 IN UINT8 AndData,
163 IN UINT8 OrData
164 );
165
188UINT8
189EFIAPI
191 IN UINT64 Address,
192 IN UINTN StartBit,
193 IN UINTN EndBit
194 );
195
221UINT8
222EFIAPI
224 IN UINT64 Address,
225 IN UINTN StartBit,
226 IN UINTN EndBit,
227 IN UINT8 Value
228 );
229
258UINT8
259EFIAPI
261 IN UINT64 Address,
262 IN UINTN StartBit,
263 IN UINTN EndBit,
264 IN UINT8 OrData
265 );
266
295UINT8
296EFIAPI
298 IN UINT64 Address,
299 IN UINTN StartBit,
300 IN UINTN EndBit,
301 IN UINT8 AndData
302 );
303
335UINT8
336EFIAPI
338 IN UINT64 Address,
339 IN UINTN StartBit,
340 IN UINTN EndBit,
341 IN UINT8 AndData,
342 IN UINT8 OrData
343 );
344
360UINT16
361EFIAPI
363 IN UINT64 Address
364 );
365
382UINT16
383EFIAPI
385 IN UINT64 Address,
386 IN UINT16 Value
387 );
388
409UINT16
410EFIAPI
412 IN UINT64 Address,
413 IN UINT16 OrData
414 );
415
435UINT16
436EFIAPI
438 IN UINT64 Address,
439 IN UINT16 AndData
440 );
441
464UINT16
465EFIAPI
467 IN UINT64 Address,
468 IN UINT16 AndData,
469 IN UINT16 OrData
470 );
471
495UINT16
496EFIAPI
498 IN UINT64 Address,
499 IN UINTN StartBit,
500 IN UINTN EndBit
501 );
502
529UINT16
530EFIAPI
532 IN UINT64 Address,
533 IN UINTN StartBit,
534 IN UINTN EndBit,
535 IN UINT16 Value
536 );
537
567UINT16
568EFIAPI
570 IN UINT64 Address,
571 IN UINTN StartBit,
572 IN UINTN EndBit,
573 IN UINT16 OrData
574 );
575
605UINT16
606EFIAPI
608 IN UINT64 Address,
609 IN UINTN StartBit,
610 IN UINTN EndBit,
611 IN UINT16 AndData
612 );
613
645UINT16
646EFIAPI
648 IN UINT64 Address,
649 IN UINTN StartBit,
650 IN UINTN EndBit,
651 IN UINT16 AndData,
652 IN UINT16 OrData
653 );
654
670UINT32
671EFIAPI
673 IN UINT64 Address
674 );
675
692UINT32
693EFIAPI
695 IN UINT64 Address,
696 IN UINT32 Value
697 );
698
719UINT32
720EFIAPI
722 IN UINT64 Address,
723 IN UINT32 OrData
724 );
725
745UINT32
746EFIAPI
748 IN UINT64 Address,
749 IN UINT32 AndData
750 );
751
774UINT32
775EFIAPI
777 IN UINT64 Address,
778 IN UINT32 AndData,
779 IN UINT32 OrData
780 );
781
805UINT32
806EFIAPI
808 IN UINT64 Address,
809 IN UINTN StartBit,
810 IN UINTN EndBit
811 );
812
839UINT32
840EFIAPI
842 IN UINT64 Address,
843 IN UINTN StartBit,
844 IN UINTN EndBit,
845 IN UINT32 Value
846 );
847
877UINT32
878EFIAPI
880 IN UINT64 Address,
881 IN UINTN StartBit,
882 IN UINTN EndBit,
883 IN UINT32 OrData
884 );
885
915UINT32
916EFIAPI
918 IN UINT64 Address,
919 IN UINTN StartBit,
920 IN UINTN EndBit,
921 IN UINT32 AndData
922 );
923
955UINT32
956EFIAPI
958 IN UINT64 Address,
959 IN UINTN StartBit,
960 IN UINTN EndBit,
961 IN UINT32 AndData,
962 IN UINT32 OrData
963 );
964
989UINTN
990EFIAPI
992 IN UINT64 StartAddress,
993 IN UINTN Size,
994 OUT VOID *Buffer
995 );
996
1022UINTN
1023EFIAPI
1025 IN UINT64 StartAddress,
1026 IN UINTN Size,
1027 IN VOID *Buffer
1028 );
1029
1030#endif
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
UINT8 EFIAPI S3PciSegmentBitFieldRead8(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit)
UINT16 EFIAPI S3PciSegmentAnd16(IN UINT64 Address, IN UINT16 AndData)
UINT32 EFIAPI S3PciSegmentRead32(IN UINT64 Address)
UINT32 EFIAPI S3PciSegmentBitFieldWrite32(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 Value)
UINT8 EFIAPI S3PciSegmentBitFieldAndThenOr8(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData, IN UINT8 OrData)
UINT16 EFIAPI S3PciSegmentOr16(IN UINT64 Address, IN UINT16 OrData)
UINT16 EFIAPI S3PciSegmentBitFieldOr16(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 OrData)
UINT16 EFIAPI S3PciSegmentRead16(IN UINT64 Address)
UINT32 EFIAPI S3PciSegmentOr32(IN UINT64 Address, IN UINT32 OrData)
UINTN EFIAPI S3PciSegmentWriteBuffer(IN UINT64 StartAddress, IN UINTN Size, IN VOID *Buffer)
UINT32 EFIAPI S3PciSegmentBitFieldAndThenOr32(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData, IN UINT32 OrData)
UINT32 EFIAPI S3PciSegmentAnd32(IN UINT64 Address, IN UINT32 AndData)
UINT8 EFIAPI S3PciSegmentWrite8(IN UINT64 Address, IN UINT8 Value)
UINTN EFIAPI S3PciSegmentReadBuffer(IN UINT64 StartAddress, IN UINTN Size, OUT VOID *Buffer)
UINT8 EFIAPI S3PciSegmentBitFieldAnd8(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData)
UINT32 EFIAPI S3PciSegmentBitFieldRead32(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit)
UINT32 EFIAPI S3PciSegmentAndThenOr32(IN UINT64 Address, IN UINT32 AndData, IN UINT32 OrData)
UINT16 EFIAPI S3PciSegmentBitFieldAndThenOr16(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData, IN UINT16 OrData)
UINT8 EFIAPI S3PciSegmentRead8(IN UINT64 Address)
UINT8 EFIAPI S3PciSegmentOr8(IN UINT64 Address, IN UINT8 OrData)
UINT8 EFIAPI S3PciSegmentBitFieldWrite8(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 Value)
UINT16 EFIAPI S3PciSegmentBitFieldAnd16(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData)
UINT16 EFIAPI S3PciSegmentBitFieldRead16(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit)
UINT16 EFIAPI S3PciSegmentBitFieldWrite16(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 Value)
UINT16 EFIAPI S3PciSegmentAndThenOr16(IN UINT64 Address, IN UINT16 AndData, IN UINT16 OrData)
UINT8 EFIAPI S3PciSegmentAnd8(IN UINT64 Address, IN UINT8 AndData)
UINT32 EFIAPI S3PciSegmentBitFieldOr32(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 OrData)
UINT8 EFIAPI S3PciSegmentAndThenOr8(IN UINT64 Address, IN UINT8 AndData, IN UINT8 OrData)
UINT8 EFIAPI S3PciSegmentBitFieldOr8(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 OrData)
UINT16 EFIAPI S3PciSegmentWrite16(IN UINT64 Address, IN UINT16 Value)
UINT32 EFIAPI S3PciSegmentWrite32(IN UINT64 Address, IN UINT32 Value)
UINT32 EFIAPI S3PciSegmentBitFieldAnd32(IN UINT64 Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData)