TianoCore EDK2 master
Loading...
Searching...
No Matches
PciCf8Lib.h
Go to the documentation of this file.
1
13#ifndef __PCI_CF8_LIB_H__
14#define __PCI_CF8_LIB_H__
15
32#define PCI_CF8_LIB_ADDRESS(Bus, Device, Function, Offset) \
33 (((Offset) & 0xfff) | (((Function) & 0x07) << 12) | (((Device) & 0x1f) << 15) | (((Bus) & 0xff) << 20))
34
57RETURN_STATUS
58EFIAPI
60 IN UINTN Address
61 );
62
79UINT8
80EFIAPI
82 IN UINTN Address
83 );
84
102UINT8
103EFIAPI
105 IN UINTN Address,
106 IN UINT8 Value
107 );
108
130UINT8
131EFIAPI
132PciCf8Or8 (
133 IN UINTN Address,
134 IN UINT8 OrData
135 );
136
158UINT8
159EFIAPI
161 IN UINTN Address,
162 IN UINT8 AndData
163 );
164
188UINT8
189EFIAPI
191 IN UINTN Address,
192 IN UINT8 AndData,
193 IN UINT8 OrData
194 );
195
218UINT8
219EFIAPI
221 IN UINTN Address,
222 IN UINTN StartBit,
223 IN UINTN EndBit
224 );
225
251UINT8
252EFIAPI
254 IN UINTN Address,
255 IN UINTN StartBit,
256 IN UINTN EndBit,
257 IN UINT8 Value
258 );
259
288UINT8
289EFIAPI
291 IN UINTN Address,
292 IN UINTN StartBit,
293 IN UINTN EndBit,
294 IN UINT8 OrData
295 );
296
325UINT8
326EFIAPI
328 IN UINTN Address,
329 IN UINTN StartBit,
330 IN UINTN EndBit,
331 IN UINT8 AndData
332 );
333
366UINT8
367EFIAPI
369 IN UINTN Address,
370 IN UINTN StartBit,
371 IN UINTN EndBit,
372 IN UINT8 AndData,
373 IN UINT8 OrData
374 );
375
393UINT16
394EFIAPI
396 IN UINTN Address
397 );
398
417UINT16
418EFIAPI
420 IN UINTN Address,
421 IN UINT16 Value
422 );
423
446UINT16
447EFIAPI
449 IN UINTN Address,
450 IN UINT16 OrData
451 );
452
475UINT16
476EFIAPI
478 IN UINTN Address,
479 IN UINT16 AndData
480 );
481
506UINT16
507EFIAPI
509 IN UINTN Address,
510 IN UINT16 AndData,
511 IN UINT16 OrData
512 );
513
537UINT16
538EFIAPI
540 IN UINTN Address,
541 IN UINTN StartBit,
542 IN UINTN EndBit
543 );
544
571UINT16
572EFIAPI
574 IN UINTN Address,
575 IN UINTN StartBit,
576 IN UINTN EndBit,
577 IN UINT16 Value
578 );
579
609UINT16
610EFIAPI
612 IN UINTN Address,
613 IN UINTN StartBit,
614 IN UINTN EndBit,
615 IN UINT16 OrData
616 );
617
647UINT16
648EFIAPI
650 IN UINTN Address,
651 IN UINTN StartBit,
652 IN UINTN EndBit,
653 IN UINT16 AndData
654 );
655
689UINT16
690EFIAPI
692 IN UINTN Address,
693 IN UINTN StartBit,
694 IN UINTN EndBit,
695 IN UINT16 AndData,
696 IN UINT16 OrData
697 );
698
716UINT32
717EFIAPI
719 IN UINTN Address
720 );
721
740UINT32
741EFIAPI
743 IN UINTN Address,
744 IN UINT32 Value
745 );
746
769UINT32
770EFIAPI
772 IN UINTN Address,
773 IN UINT32 OrData
774 );
775
798UINT32
799EFIAPI
801 IN UINTN Address,
802 IN UINT32 AndData
803 );
804
829UINT32
830EFIAPI
832 IN UINTN Address,
833 IN UINT32 AndData,
834 IN UINT32 OrData
835 );
836
860UINT32
861EFIAPI
863 IN UINTN Address,
864 IN UINTN StartBit,
865 IN UINTN EndBit
866 );
867
894UINT32
895EFIAPI
897 IN UINTN Address,
898 IN UINTN StartBit,
899 IN UINTN EndBit,
900 IN UINT32 Value
901 );
902
932UINT32
933EFIAPI
935 IN UINTN Address,
936 IN UINTN StartBit,
937 IN UINTN EndBit,
938 IN UINT32 OrData
939 );
940
970UINT32
971EFIAPI
973 IN UINTN Address,
974 IN UINTN StartBit,
975 IN UINTN EndBit,
976 IN UINT32 AndData
977 );
978
1012UINT32
1013EFIAPI
1015 IN UINTN Address,
1016 IN UINTN StartBit,
1017 IN UINTN EndBit,
1018 IN UINT32 AndData,
1019 IN UINT32 OrData
1020 );
1021
1046UINTN
1047EFIAPI
1049 IN UINTN StartAddress,
1050 IN UINTN Size,
1051 OUT VOID *Buffer
1052 );
1053
1079UINTN
1080EFIAPI
1082 IN UINTN StartAddress,
1083 IN UINTN Size,
1084 IN VOID *Buffer
1085 );
1086
1087#endif
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
UINT8 EFIAPI PciCf8Read8(IN UINTN Address)
Definition: PciCf8Lib.c:106
UINT32 EFIAPI PciCf8BitFieldOr32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 OrData)
Definition: PciCf8Lib.c:1435
UINT32 EFIAPI PciCf8BitFieldRead32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit)
Definition: PciCf8Lib.c:1326
UINT32 EFIAPI PciCf8BitFieldWrite32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 Value)
Definition: PciCf8Lib.c:1378
UINT8 EFIAPI PciCf8And8(IN UINTN Address, IN UINT8 AndData)
Definition: PciCf8Lib.c:233
UINT32 EFIAPI PciCf8Write32(IN UINTN Address, IN UINT32 Value)
Definition: PciCf8Lib.c:1137
UINT32 EFIAPI PciCf8And32(IN UINTN Address, IN UINT32 AndData)
Definition: PciCf8Lib.c:1229
UINTN EFIAPI PciCf8WriteBuffer(IN UINTN StartAddress, IN UINTN Size, IN VOID *Buffer)
Definition: PciCf8Lib.c:1707
UINT8 EFIAPI PciCf8BitFieldWrite8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 Value)
Definition: PciCf8Lib.c:379
UINT32 EFIAPI PciCf8Or32(IN UINTN Address, IN UINT32 OrData)
Definition: PciCf8Lib.c:1183
UINT32 EFIAPI PciCf8Read32(IN UINTN Address)
Definition: PciCf8Lib.c:1099
UINT8 EFIAPI PciCf8AndThenOr8(IN UINTN Address, IN UINT8 AndData, IN UINT8 OrData)
Definition: PciCf8Lib.c:280
UINT8 EFIAPI PciCf8BitFieldRead8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit)
Definition: PciCf8Lib.c:328
UINT8 EFIAPI PciCf8Or8(IN UINTN Address, IN UINT8 OrData)
Definition: PciCf8Lib.c:188
UINT16 EFIAPI PciCf8BitFieldOr16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 OrData)
Definition: PciCf8Lib.c:934
UINT16 EFIAPI PciCf8Write16(IN UINTN Address, IN UINT16 Value)
Definition: PciCf8Lib.c:636
UINT16 EFIAPI PciCf8And16(IN UINTN Address, IN UINT16 AndData)
Definition: PciCf8Lib.c:728
UINT8 EFIAPI PciCf8BitFieldAndThenOr8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData, IN UINT8 OrData)
Definition: PciCf8Lib.c:551
UINT8 EFIAPI PciCf8Write8(IN UINTN Address, IN UINT8 Value)
Definition: PciCf8Lib.c:143
UINT32 EFIAPI PciCf8AndThenOr32(IN UINTN Address, IN UINT32 AndData, IN UINT32 OrData)
Definition: PciCf8Lib.c:1277
RETURN_STATUS EFIAPI PciCf8RegisterForRuntimeAccess(IN UINTN Address)
Definition: PciCf8Lib.c:80
UINT32 EFIAPI PciCf8BitFieldAndThenOr32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData, IN UINT32 OrData)
Definition: PciCf8Lib.c:1553
UINT16 EFIAPI PciCf8Read16(IN UINTN Address)
Definition: PciCf8Lib.c:598
UINT16 EFIAPI PciCf8Or16(IN UINTN Address, IN UINT16 OrData)
Definition: PciCf8Lib.c:682
UINT16 EFIAPI PciCf8BitFieldAndThenOr16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData, IN UINT16 OrData)
Definition: PciCf8Lib.c:1052
UINT16 EFIAPI PciCf8BitFieldAnd16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData)
Definition: PciCf8Lib.c:991
UINT8 EFIAPI PciCf8BitFieldAnd8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData)
Definition: PciCf8Lib.c:491
UINT16 EFIAPI PciCf8AndThenOr16(IN UINTN Address, IN UINT16 AndData, IN UINT16 OrData)
Definition: PciCf8Lib.c:776
UINT16 EFIAPI PciCf8BitFieldWrite16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 Value)
Definition: PciCf8Lib.c:877
UINT8 EFIAPI PciCf8BitFieldOr8(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 OrData)
Definition: PciCf8Lib.c:435
UINTN EFIAPI PciCf8ReadBuffer(IN UINTN StartAddress, IN UINTN Size, OUT VOID *Buffer)
Definition: PciCf8Lib.c:1607
UINT32 EFIAPI PciCf8BitFieldAnd32(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData)
Definition: PciCf8Lib.c:1492
UINT16 EFIAPI PciCf8BitFieldRead16(IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit)
Definition: PciCf8Lib.c:825