Home | History | Annotate | Download | only in DxePciSegmentLibEsal

Lines Matching refs:Address

25   Assert the validity of a PCI Segment address.

26 A valid PCI Segment address should not contain 1's in bits 31:28
28 @param A The address to validate.
36 Converts a PCI Library Address to a ESAL PCI Service Address.
37 Based on SAL Spec 3.2, there are two SAL PCI Address:
39 If address type = 0
40 Bits 0..7 - Register address
47 If address type = 1
48 Bits 0..7 - Register address
49 Bits 8..11 - Extended Register address
56 @param A The PCI Library Address to convert.
59 #define CONVERT_PCI_SEGMENT_LIB_ADDRESS_TO_PCI_ESAL_ADDRESS0(Address) (((Address >> 8) & 0xff000000) | (((Address) >> 4) & 0x00ffff00) | ((Address) & 0xff))
60 #define CONVERT_PCI_SEGMENT_LIB_ADDRESS_TO_PCI_ESAL_ADDRESS1(Address) (((Address >> 4) & 0xffff0000000) | ((Address) & 0xfffffff))
63 Check a PCI Library Address is a PCI Compatible Address or not.
65 #define IS_PCI_COMPATIBLE_ADDRESS(Address) (((Address) & 0xf00) == 0)
72 It reads and returns the PCI configuration register specified by Address,
75 @param Address Address that encodes the PCI Bus, Device, Function and
84 IN UINT64 Address,
90 if (IS_PCI_COMPATIBLE_ADDRESS(Address)) {
95 CONVERT_PCI_SEGMENT_LIB_ADDRESS_TO_PCI_ESAL_ADDRESS0 (Address),
108 CONVERT_PCI_SEGMENT_LIB_ADDRESS_TO_PCI_ESAL_ADDRESS1 (Address),
126 It writes the PCI configuration register specified by Address with the
130 @param Address Address that encodes the PCI Bus, Device, Function and
140 IN UINT64 Address,
145 if (IS_PCI_COMPATIBLE_ADDRESS(Address)) {
150 CONVERT_PCI_SEGMENT_LIB_ADDRESS_TO_PCI_ESAL_ADDRESS0 (Address),
163 CONVERT_PCI_SEGMENT_LIB_ADDRESS_TO_PCI_ESAL_ADDRESS1 (Address),
179 Reads and returns the 8-bit PCI configuration register specified by Address.
183 If any reserved bits in Address are set, then ASSERT().
185 @param Address Address that encodes the PCI Segment, Bus, Device, Function and
194 IN UINT64 Address
197 ASSERT_INVALID_PCI_SEGMENT_ADDRESS (Address, 0);
199 return (UINT8) DxePciSegmentLibEsalReadWorker (Address, 1);
205 Writes the 8-bit PCI configuration register specified by Address with the
209 If any reserved bits in Address are set, then ASSERT().
211 @param Address Address that encodes the PCI Segment, Bus, Device, Function and
221 IN UINT64 Address,
225 ASSERT_INVALID_PCI_SEGMENT_ADDRESS (Address, 0);
227 return (UINT8) DxePciSegmentLibEsalWriteWorker (Address, 1, Data);
234 Reads the 8-bit PCI configuration register specified by Address, performs a
237 specified by Address. The value written to the PCI configuration register is
241 If any reserved bits in Address are set, then ASSERT().
243 @param Address Address that encodes the PCI Segment, Bus, Device, Function and
253 IN UINT64 Address,
257 return PciSegmentWrite8 (Address, (UINT8) (PciSegmentRead8 (Address) | OrData));
264 Reads the 8-bit PCI configuration register specified by Address, performs a
267 Address. The value written to the PCI configuration register is returned.
271 If any reserved bits in Address are set, then ASSERT().
273 @param Address Address that encodes the PCI Segment, Bus, Device, Function and
283 IN UINT64 Address,
287 return PciSegmentWrite8 (Address, (UINT8) (PciSegmentRead8 (Address) & AndData));
294 Reads the 8-bit PCI configuration register specified by Address, performs a
298 configuration register specified by Address. The value written to the PCI
302 If any reserved bits in Address are set, then ASSERT().
304 @param Address Address that encodes the PCI Segment, Bus, Device, Function and
315 IN UINT64 Address,
320 return PciSegmentWrite8 (Address, (UINT8) ((PciSegmentRead8 (Address) & AndData) | OrData));
330 If any reserved bits in Address are set, then ASSERT().
335 @param Address PCI configuration register to read.
347 IN UINT64 Address,
352 return BitFieldRead8 (PciSegmentRead8 (Address), StartBit, EndBit);
363 If any reserved bits in Address are set, then ASSERT().
369 @param Address PCI configuration register to write.
382 IN UINT64 Address,
389 Address,
390 BitFieldWrite8 (PciSegmentRead8 (Address), StartBit, EndBit, Value)
398 Reads the 8-bit PCI configuration register specified by Address, performs a
401 specified by Address. The value written to the PCI configuration register is
405 If any reserved bits in Address are set, then ASSERT().
411 @param Address PCI configuration register to write.
424 IN UINT64 Address,
431 Address,
432 BitFieldOr8 (PciSegmentRead8 (Address), StartBit, EndBit, OrData)
440 Reads the 8-bit PCI configuration register specified by Address, performs a
443 Address. The value written to the PCI configuration register is returned.
447 If any reserved bits in Address are set, then ASSERT().
453 @param Address PCI configuration register to write.
466 IN UINT64 Address,
473 Address,
474 BitFieldAnd8 (PciSegmentRead8 (Address), StartBit, EndBit, AndData)
483 Address, performs a
486 configuration register specified by Address. The value written to the PCI
491 If any reserved bits in Address are set, then ASSERT().
498 @param Address PCI configuration register to write.
512 IN UINT64 Address,
520 Address,
521 BitFieldAndThenOr8 (PciSegmentRead8 (Address), StartBit, EndBit, AndData, OrData)
528 Reads and returns the 16-bit PCI configuration register specified by Address.
532 If any reserved bits in Address are set, then ASSERT().
534 @param Address Address that encodes the PCI Segment, Bus, Device, Function and
543 IN UINT64 Address
546 ASSERT_INVALID_PCI_SEGMENT_ADDRESS (Address, 1);
548 return (UINT16) DxePciSegmentLibEsalReadWorker (Address, 2);
554 Writes the 16-bit PCI configuration register specified by Address with the
558 If any reserved bits in Address are set, then ASSERT().
560 @param Address Address that encodes the PCI Segment, Bus, Device, Function and
570 IN UINT64 Address,
574 ASSERT_INVALID_PCI_SEGMENT_ADDRESS (Address, 1);
576 return (UINT16) DxePciSegmentLibEsalWriteWorker (Address, 2, Data);
583 Reads the 16-bit PCI configuration register specified by Address, performs a
586 specified by Address. The value written to the PCI configuration register is
590 If any reserved bits in Address are set, then ASSERT().
592 @param Address Address that encodes the PCI Segment, Bus, Device, Function and
602 IN UINT64 Address,
606 return PciSegmentWrite16 (Address, (UINT16) (PciSegmentRead16 (Address) | OrData));
613 Reads the 16-bit PCI configuration register specified by Address, performs a
616 Address. The value written to the PCI configuration register is returned.
620 If any reserved bits in Address are set, then ASSERT().
622 @param Address Address that encodes the PCI Segment, Bus, Device, Function and
632 IN UINT64 Address,
636 return PciSegmentWrite16 (Address, (UINT16) (PciSegmentRead16 (Address) & AndData));
643 Reads the 16-bit PCI configuration register specified by Address, performs a
647 configuration register specified by Address. The value written to the PCI
651 If any reserved bits in Address are set, then ASSERT().
653 @param Address Address that encodes the PCI Segment, Bus, Device, Function and
664 IN UINT64 Address,
669 return PciSegmentWrite16 (Address, (UINT16) ((PciSegmentRead16 (Address) & AndData) | OrData));
679 If any reserved bits in Address are set, then ASSERT().
684 @param Address PCI configuration register to read.
696 IN UINT64 Address,
701 return BitFieldRead16 (PciSegmentRead16 (Address), StartBit, EndBit);
712 If any reserved bits in Address are set, then ASSERT().
718 @param Address PCI configuration register to write.
731 IN UINT64 Address,
738 Address,
739 BitFieldWrite16 (PciSegmentRead16 (Address), StartBit, EndBit, Value)
747 Reads the 16-bit PCI configuration register specified by Address, performs a
750 specified by Address. The value written to the PCI configuration register is
754 If any reserved bits in Address are set, then ASSERT().
760 @param Address PCI configuration register to write.
773 IN UINT64 Address,
780 Address,
781 BitFieldOr16 (PciSegmentRead16 (Address), StartBit, EndBit, OrData)
789 Reads the 16-bit PCI configuration register specified by Address, performs a
792 Address. The value written to the PCI configuration register is returned.
796 If any reserved bits in Address are set, then ASSERT().
802 @param Address PCI configuration register to write.
815 IN UINT64 Address,
822 Address,
823 BitFieldAnd16 (PciSegmentRead16 (Address), StartBit, EndBit, AndData)
832 Reads the 16-bit PCI configuration register specified by Address, performs a
835 configuration register specified by Address. The value written to the PCI
840 If any reserved bits in Address are set, then ASSERT().
847 @param Address PCI configuration register to write.
861 IN UINT64 Address,
869 Address,
870 BitFieldAndThenOr16 (PciSegmentRead16 (Address), StartBit, EndBit, AndData, OrData)
877 Reads and returns the 32-bit PCI configuration register specified by Address.
881 If any reserved bits in Address are set, then ASSERT().
883 @param Address Address that encodes the PCI Segment, Bus, Device, Function and
892 IN UINT64 Address
895 ASSERT_INVALID_PCI_SEGMENT_ADDRESS (Address, 3);
897 return DxePciSegmentLibEsalReadWorker (Address, 4);
903 Writes the 32-bit PCI configuration register specified by Address with the
907 If any reserved bits in Address are set, then ASSERT().
909 @param Address Address that encodes the PCI Segment, Bus, Device, Function and
919 IN UINT64 Address,
923 ASSERT_INVALID_PCI_SEGMENT_ADDRESS (Address, 3);
925 return DxePciSegmentLibEsalWriteWorker (Address, 4, Data);
932 Address, performs a
935 specified by Address. The value written to the PCI configuration register is
939 If any reserved bits in Address are set, then ASSERT().
941 @param Address Address that encodes the PCI Segment, Bus, Device, Function and
951 IN UINT64 Address,
955 return PciSegmentWrite32 (Address, PciSegmentRead32 (Address) | OrData);
962 Reads the 32-bit PCI configuration register specified by Address, performs a
965 Address. The value written to the PCI configuration register is returned.
969 If any reserved bits in Address are set, then ASSERT().
971 @param Address Address that encodes the PCI Segment, Bus, Device, Function and
981 IN UINT64 Address,
985 return PciSegmentWrite32 (Address, PciSegmentRead32 (Address) & AndData);
992 Reads the 32-bit PCI configuration register specified by Address, performs a
996 configuration register specified by Address. The value written to the PCI
1000 If any reserved bits in Address are set, then ASSERT().
1002 @param Address Address that encodes the PCI Segment, Bus, Device, Function and
1013 IN UINT64 Address,
1018 return PciSegmentWrite32 (Address, (PciSegmentRead32 (Address) & AndData) | OrData);
1028 If any reserved bits in Address are set, then ASSERT().
1033 @param Address PCI configuration register to read.
1045 IN UINT64 Address,
1050 return BitFieldRead32 (PciSegmentRead32 (Address), StartBit, EndBit);
1061 If any reserved bits in Address are set, then ASSERT().
1067 @param Address PCI configuration register to write.
1080 IN UINT64 Address,
1087 Address,
1088 BitFieldWrite32 (PciSegmentRead32 (Address), StartBit, EndBit, Value)
1096 Reads the 32-bit PCI configuration register specified by Address, performs a
1099 specified by Address. The value written to the PCI configuration register is
1103 If any reserved bits in Address are set, then ASSERT().
1109 @param Address PCI configuration register to write.
1122 IN UINT64 Address,
1129 Address,
1130 BitFieldOr32 (PciSegmentRead32 (Address), StartBit, EndBit, OrData)
1138 Reads the 32-bit PCI configuration register specified by Address, performs a
1141 Address. The value written to the PCI configuration register is returned.
1145 If any reserved bits in Address are set, then ASSERT().
1151 @param Address PCI configuration register to write.
1164 IN UINT64 Address,
1171 Address,
1172 BitFieldAnd32 (PciSegmentRead32 (Address), StartBit, EndBit, AndData)
1181 Reads the 32-bit PCI configuration register specified by Address, performs a
1184 configuration register specified by Address. The value written to the PCI
1189 If any reserved bits in Address are set, then ASSERT().
1196 @param Address PCI configuration register to write.
1210 IN UINT64 Address,
1218 Address,
1219 BitFieldAndThenOr32 (PciSegmentRead32 (Address), StartBit, EndBit, AndData, OrData)
1238 @param StartAddress Starting Address that encodes the PCI Segment, Bus, Device,
1336 @param StartAddress Starting Address that encodes the PCI Segment, Bus, Device,