TianoCore EDK2 master
Loading...
Searching...
No Matches
S3PciLib.h
Go to the documentation of this file.
1
12#ifndef __S3_PCI_LIB_H__
13#define __S3_PCI_LIB_H__
14
28#define S3_PCI_LIB_ADDRESS(Bus, Device, Function, Register) \
29 (((Register) & 0xfff) | (((Function) & 0x07) << 12) | (((Device) & 0x1f) << 15) | (((Bus) & 0xff) << 20))
30
46UINT8
47EFIAPI
49 IN UINTN Address
50 );
51
69UINT8
70EFIAPI
72 IN UINTN Address,
73 IN UINT8 Value
74 );
75
96UINT8
97EFIAPI
99 IN UINTN Address,
100 IN UINT8 OrData
101 );
102
123UINT8
124EFIAPI
125S3PciAnd8 (
126 IN UINTN Address,
127 IN UINT8 AndData
128 );
129
153UINT8
154EFIAPI
156 IN UINTN Address,
157 IN UINT8 AndData,
158 IN UINT8 OrData
159 );
160
183UINT8
184EFIAPI
186 IN UINTN Address,
187 IN UINTN StartBit,
188 IN UINTN EndBit
189 );
190
216UINT8
217EFIAPI
219 IN UINTN Address,
220 IN UINTN StartBit,
221 IN UINTN EndBit,
222 IN UINT8 Value
223 );
224
253UINT8
254EFIAPI
256 IN UINTN Address,
257 IN UINTN StartBit,
258 IN UINTN EndBit,
259 IN UINT8 OrData
260 );
261
290UINT8
291EFIAPI
293 IN UINTN Address,
294 IN UINTN StartBit,
295 IN UINTN EndBit,
296 IN UINT8 AndData
297 );
298
330UINT8
331EFIAPI
333 IN UINTN Address,
334 IN UINTN StartBit,
335 IN UINTN EndBit,
336 IN UINT8 AndData,
337 IN UINT8 OrData
338 );
339
357UINT16
358EFIAPI
360 IN UINTN Address
361 );
362
381UINT16
382EFIAPI
384 IN UINTN Address,
385 IN UINT16 Value
386 );
387
409UINT16
410EFIAPI
411S3PciOr16 (
412 IN UINTN Address,
413 IN UINT16 OrData
414 );
415
437UINT16
438EFIAPI
440 IN UINTN Address,
441 IN UINT16 AndData
442 );
443
468UINT16
469EFIAPI
471 IN UINTN Address,
472 IN UINT16 AndData,
473 IN UINT16 OrData
474 );
475
499UINT16
500EFIAPI
502 IN UINTN Address,
503 IN UINTN StartBit,
504 IN UINTN EndBit
505 );
506
533UINT16
534EFIAPI
536 IN UINTN Address,
537 IN UINTN StartBit,
538 IN UINTN EndBit,
539 IN UINT16 Value
540 );
541
571UINT16
572EFIAPI
574 IN UINTN Address,
575 IN UINTN StartBit,
576 IN UINTN EndBit,
577 IN UINT16 OrData
578 );
579
609UINT16
610EFIAPI
612 IN UINTN Address,
613 IN UINTN StartBit,
614 IN UINTN EndBit,
615 IN UINT16 AndData
616 );
617
650UINT16
651EFIAPI
653 IN UINTN Address,
654 IN UINTN StartBit,
655 IN UINTN EndBit,
656 IN UINT16 AndData,
657 IN UINT16 OrData
658 );
659
677UINT32
678EFIAPI
680 IN UINTN Address
681 );
682
701UINT32
702EFIAPI
704 IN UINTN Address,
705 IN UINT32 Value
706 );
707
729UINT32
730EFIAPI
731S3PciOr32 (
732 IN UINTN Address,
733 IN UINT32 OrData
734 );
735
757UINT32
758EFIAPI
760 IN UINTN Address,
761 IN UINT32 AndData
762 );
763
788UINT32
789EFIAPI
791 IN UINTN Address,
792 IN UINT32 AndData,
793 IN UINT32 OrData
794 );
795
819UINT32
820EFIAPI
822 IN UINTN Address,
823 IN UINTN StartBit,
824 IN UINTN EndBit
825 );
826
853UINT32
854EFIAPI
856 IN UINTN Address,
857 IN UINTN StartBit,
858 IN UINTN EndBit,
859 IN UINT32 Value
860 );
861
891UINT32
892EFIAPI
894 IN UINTN Address,
895 IN UINTN StartBit,
896 IN UINTN EndBit,
897 IN UINT32 OrData
898 );
899
929UINT32
930EFIAPI
932 IN UINTN Address,
933 IN UINTN StartBit,
934 IN UINTN EndBit,
935 IN UINT32 AndData
936 );
937
970UINT32
971EFIAPI
973 IN UINTN Address,
974 IN UINTN StartBit,
975 IN UINTN EndBit,
976 IN UINT32 AndData,
977 IN UINT32 OrData
978 );
979
1004UINTN
1005EFIAPI
1007 IN UINTN StartAddress,
1008 IN UINTN Size,
1009 OUT VOID *Buffer
1010 );
1011
1037UINTN
1038EFIAPI
1040 IN UINTN StartAddress,
1041 IN UINTN Size,
1042 IN VOID *Buffer
1043 );
1044
1045#endif
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
UINT32 EFIAPI S3PciBitFieldAndThenOr32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData, IN UINT32 OrData)
Definition: S3PciLib.c:1161
UINT16 EFIAPI S3PciBitFieldOr16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 OrData)
Definition: S3PciLib.c:700
UINT16 EFIAPI S3PciOr16(IN UINTN Address, IN UINT16 OrData)
Definition: S3PciLib.c:523
UINT16 EFIAPI S3PciWrite16(IN UINTN Address, IN UINT16 Value)
Definition: S3PciLib.c:492
UINT8 EFIAPI S3PciAndThenOr8(IN UINTN Address, IN UINT8 AndData, IN UINT8 OrData)
Definition: S3PciLib.c:217
UINTN EFIAPI S3PciWriteBuffer(IN UINTN StartAddress, IN UINTN Size, IN VOID *Buffer)
Definition: S3PciLib.c:1244
UINT16 EFIAPI S3PciRead16(IN UINTN Address)
Definition: S3PciLib.c:465
UINT8 EFIAPI S3PciWrite8(IN UINTN Address, IN UINT8 Value)
Definition: S3PciLib.c:124
UINT16 EFIAPI S3PciAnd16(IN UINTN Address, IN UINT16 AndData)
Definition: S3PciLib.c:554
UINT16 EFIAPI S3PciBitFieldAnd16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData)
Definition: S3PciLib.c:741
UINT16 EFIAPI S3PciBitFieldRead16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit)
Definition: S3PciLib.c:622
UINT8 EFIAPI S3PciRead8(IN UINTN Address)
Definition: S3PciLib.c:98
UINT8 EFIAPI S3PciOr8(IN UINTN Address, IN UINT8 OrData)
Definition: S3PciLib.c:154
UINT32 EFIAPI S3PciBitFieldAnd32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData)
Definition: S3PciLib.c:1117
UINT32 EFIAPI S3PciRead32(IN UINTN Address)
Definition: S3PciLib.c:841
UINT16 EFIAPI S3PciBitFieldWrite16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 Value)
Definition: S3PciLib.c:659
UINT8 EFIAPI S3PciBitFieldAnd8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData)
Definition: S3PciLib.c:366
UINT16 EFIAPI S3PciAndThenOr16(IN UINTN Address, IN UINT16 AndData, IN UINT16 OrData)
Definition: S3PciLib.c:588
UINTN EFIAPI S3PciReadBuffer(IN UINTN StartAddress, IN UINTN Size, OUT VOID *Buffer)
Definition: S3PciLib.c:1198
UINT32 EFIAPI S3PciBitFieldWrite32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 Value)
Definition: S3PciLib.c:1035
UINT8 EFIAPI S3PciBitFieldWrite8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 Value)
Definition: S3PciLib.c:286
UINT32 EFIAPI S3PciAndThenOr32(IN UINTN Address, IN UINT32 AndData, IN UINT32 OrData)
Definition: S3PciLib.c:964
UINT16 EFIAPI S3PciBitFieldAndThenOr16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData, IN UINT16 OrData)
Definition: S3PciLib.c:785
UINT32 EFIAPI S3PciAnd32(IN UINTN Address, IN UINT32 AndData)
Definition: S3PciLib.c:930
UINT32 EFIAPI S3PciWrite32(IN UINTN Address, IN UINT32 Value)
Definition: S3PciLib.c:868
UINT8 EFIAPI S3PciBitFieldRead8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit)
Definition: S3PciLib.c:250
UINT32 EFIAPI S3PciBitFieldRead32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit)
Definition: S3PciLib.c:998
UINT8 EFIAPI S3PciBitFieldOr8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 OrData)
Definition: S3PciLib.c:326
UINT32 EFIAPI S3PciBitFieldOr32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 OrData)
Definition: S3PciLib.c:1076
UINT8 EFIAPI S3PciAnd8(IN UINTN Address, IN UINT8 AndData)
Definition: S3PciLib.c:184
UINT8 EFIAPI S3PciBitFieldAndThenOr8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData, IN UINT8 OrData)
Definition: S3PciLib.c:409
UINT32 EFIAPI S3PciOr32(IN UINTN Address, IN UINT32 OrData)
Definition: S3PciLib.c:899