XenevaOS
Loading...
Searching...
No Matches
S3PciSegmentLib.h
Go to the documentation of this file.
1
17#ifndef __S3_PCI_SEGMENT_LIB__
18#define __S3_PCI_SEGMENT_LIB__
19
20
38#define S3_PCI_SEGMENT_LIB_ADDRESS(Segment,Bus,Device,Function,Register) \
39 ((Segment != 0) ? \
40 ( ((Register) & 0xfff) | \
41 (((Function) & 0x07) << 12) | \
42 (((Device) & 0x1f) << 15) | \
43 (((Bus) & 0xff) << 20) | \
44 (LShiftU64 ((Segment) & 0xffff, 32)) \
45 ) : \
46 ( ((Register) & 0xfff) | \
47 (((Function) & 0x07) << 12) | \
48 (((Device) & 0x1f) << 15) | \
49 (((Bus) & 0xff) << 20) \
50 ) \
51 )
52
71 );
72
92 IN UINT8 Value
93 );
94
113UINT8
114EFIAPI
117 IN UINT8 OrData
118 );
119
137UINT8
138EFIAPI
141 IN UINT8 AndData
142 );
143
165UINT8
166EFIAPI
169 IN UINT8 AndData,
170 IN UINT8 OrData
171 );
172
195UINT8
196EFIAPI
199 IN UINTN StartBit,
200 IN UINTN EndBit
201 );
202
228UINT8
229EFIAPI
232 IN UINTN StartBit,
233 IN UINTN EndBit,
234 IN UINT8 Value
235 );
236
265UINT8
266EFIAPI
269 IN UINTN StartBit,
270 IN UINTN EndBit,
271 IN UINT8 OrData
272 );
273
302UINT8
303EFIAPI
306 IN UINTN StartBit,
307 IN UINTN EndBit,
308 IN UINT8 AndData
309 );
310
342UINT8
343EFIAPI
346 IN UINTN StartBit,
347 IN UINTN EndBit,
348 IN UINT8 AndData,
349 IN UINT8 OrData
350 );
351
367UINT16
368EFIAPI
371 );
372
389UINT16
390EFIAPI
393 IN UINT16 Value
394 );
395
416UINT16
417EFIAPI
420 IN UINT16 OrData
421 );
422
442UINT16
443EFIAPI
446 IN UINT16 AndData
447 );
448
471UINT16
472EFIAPI
475 IN UINT16 AndData,
476 IN UINT16 OrData
477 );
478
502UINT16
503EFIAPI
506 IN UINTN StartBit,
507 IN UINTN EndBit
508 );
509
536UINT16
537EFIAPI
540 IN UINTN StartBit,
541 IN UINTN EndBit,
542 IN UINT16 Value
543 );
544
574UINT16
575EFIAPI
578 IN UINTN StartBit,
579 IN UINTN EndBit,
580 IN UINT16 OrData
581 );
582
612UINT16
613EFIAPI
616 IN UINTN StartBit,
617 IN UINTN EndBit,
618 IN UINT16 AndData
619 );
620
652UINT16
653EFIAPI
656 IN UINTN StartBit,
657 IN UINTN EndBit,
658 IN UINT16 AndData,
659 IN UINT16 OrData
660 );
661
677UINT32
678EFIAPI
681 );
682
699UINT32
700EFIAPI
703 IN UINT32 Value
704 );
705
726UINT32
727EFIAPI
730 IN UINT32 OrData
731 );
732
752UINT32
753EFIAPI
756 IN UINT32 AndData
757 );
758
781UINT32
782EFIAPI
785 IN UINT32 AndData,
786 IN UINT32 OrData
787 );
788
812UINT32
813EFIAPI
816 IN UINTN StartBit,
817 IN UINTN EndBit
818 );
819
846UINT32
847EFIAPI
850 IN UINTN StartBit,
851 IN UINTN EndBit,
852 IN UINT32 Value
853 );
854
884UINT32
885EFIAPI
888 IN UINTN StartBit,
889 IN UINTN EndBit,
890 IN UINT32 OrData
891 );
892
922UINT32
923EFIAPI
926 IN UINTN StartBit,
927 IN UINTN EndBit,
928 IN UINT32 AndData
929 );
930
962UINT32
963EFIAPI
966 IN UINTN StartBit,
967 IN UINTN EndBit,
968 IN UINT32 AndData,
969 IN UINT32 OrData
970 );
971
996UINTN
997EFIAPI
999 IN UINT64 StartAddress,
1000 IN UINTN Size,
1001 OUT VOID *Buffer
1002 );
1003
1029UINTN
1030EFIAPI
1032 IN UINT64 StartAddress,
1033 IN UINTN Size,
1034 IN VOID *Buffer
1035 );
1036
1037#endif
UINT64 UINTN
Definition ProcessorBind.h:118
#define EFIAPI
Definition ProcessorBind.h:172
unsigned int UINT32
Definition ProcessorBind.h:102
#define IN
Definition Base.h:347
#define OUT
Definition Base.h:352
uint32_t Size
Definition pe.h:1
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)
#define VOID
Definition acefi.h:190
ACPI_PHYSICAL_ADDRESS Address
Definition acpixf.h:637
unsigned short UINT16
Definition actypes.h:237
unsigned char UINT8
Definition actypes.h:236
COMPILER_DEPENDENT_UINT64 UINT64
Definition actypes.h:239