Home | History | Annotate | Download | only in BaseS3PciLib

Lines Matching refs:Address

27 #define PCILIB_TO_COMMON_ADDRESS(Address) \

28 ((UINT64) ((((UINTN) ((Address>>20) & 0xff)) << 24) + (((UINTN) ((Address>>15) & 0x1f)) << 16) + (((UINTN) ((Address>>12) & 0x07)) << 8) + ((UINTN) (Address & 0xfff ))))
39 @param Address Address that encodes the PCI Bus, Device, Function and
47 IN UINTN Address,
55 PCILIB_TO_COMMON_ADDRESS(Address),
70 @param Address Address that encodes the PCI Bus, Device, Function and
79 IN UINTN Address,
83 InternalSavePciWriteValueToBootScript (S3BootScriptWidthUint8, Address, &Value);
92 Reads and returns the 8-bit PCI configuration register specified by Address.
96 If Address > 0x0FFFFFFF, then ASSERT().
98 @param Address Address that encodes the PCI Bus, Device, Function and
107 IN UINTN Address
110 return InternalSavePciWrite8ValueToBootScript (Address, PciRead8 (Address));
117 Writes the 8-bit PCI configuration register specified by Address with the
121 If Address > 0x0FFFFFFF, then ASSERT().
123 @param Address Address that encodes the PCI Bus, Device, Function and
133 IN UINTN Address,
137 return InternalSavePciWrite8ValueToBootScript (Address, PciWrite8 (Address, Value));
144 Reads the 8-bit PCI configuration register specified by Address, performs a
147 specified by Address. The value written to the PCI configuration register is
151 If Address > 0x0FFFFFFF, then ASSERT().
153 @param Address Address that encodes the PCI Bus, Device, Function and
163 IN UINTN Address,
167 return InternalSavePciWrite8ValueToBootScript (Address, PciOr8 (Address, OrData));
174 Reads the 8-bit PCI configuration register specified by Address, performs a
177 Address. The value written to the PCI configuration register is returned.
181 If Address > 0x0FFFFFFF, then ASSERT().
183 @param Address Address that encodes the PCI Bus, Device, Function and
193 IN UINTN Address,
197 return InternalSavePciWrite8ValueToBootScript (Address, PciAnd8 (Address, AndData));
205 Reads the 8-bit PCI configuration register specified by Address, performs a
209 configuration register specified by Address. The value written to the PCI
213 If Address > 0x0FFFFFFF, then ASSERT().
215 @param Address Address that encodes the PCI Bus, Device, Function and
226 IN UINTN Address,
231 return InternalSavePciWrite8ValueToBootScript (Address, PciAndThenOr8 (Address, AndData, OrData));
242 If Address > 0x0FFFFFFF, then ASSERT().
247 @param Address PCI configuration register to read.
259 IN UINTN Address,
264 return InternalSavePciWrite8ValueToBootScript (Address, PciBitFieldRead8 (Address, StartBit, EndBit));
276 If Address > 0x0FFFFFFF, then ASSERT().
282 @param Address PCI configuration register to write.
295 IN UINTN Address,
301 return InternalSavePciWrite8ValueToBootScript (Address, PciBitFieldWrite8 (Address, StartBit, EndBit, Value));
309 Reads the 8-bit PCI configuration register specified by Address, performs a
312 specified by Address. The value written to the PCI configuration register is
316 If Address > 0x0FFFFFFF, then ASSERT().
322 @param Address PCI configuration register to write.
335 IN UINTN Address,
341 return InternalSavePciWrite8ValueToBootScript (Address, PciBitFieldOr8 (Address, StartBit, EndBit, OrData));
349 Reads the 8-bit PCI configuration register specified by Address, performs a
352 Address. The value written to the PCI configuration register is returned.
356 If Address > 0x0FFFFFFF, then ASSERT().
362 @param Address PCI configuration register to write.
375 IN UINTN Address,
381 return InternalSavePciWrite8ValueToBootScript (Address, PciBitFieldAnd8 (Address, StartBit, EndBit, AndData));
385 Reads a bit field in an 8-bit Address, performs a bitwise AND followed by a
389 Reads the 8-bit PCI configuration register specified by Address, performs a
392 configuration register specified by Address. The value written to the PCI
397 If Address > 0x0FFFFFFF, then ASSERT().
404 @param Address PCI configuration register to write.
418 IN UINTN Address,
425 return InternalSavePciWrite8ValueToBootScript (Address, PciBitFieldAndThenOr8 (Address, StartBit, EndBit, AndData, OrData));
436 @param Address Address that encodes the PCI Bus, Device, Function and
445 IN UINTN Address,
449 InternalSavePciWriteValueToBootScript (S3BootScriptWidthUint16, Address, &Value);
458 Address.
462 If Address > 0x0FFFFFFF, then ASSERT().
463 If Address is not aligned on a 16-bit boundary, then ASSERT().
465 @param Address Address that encodes the PCI Bus, Device, Function and
474 IN UINTN Address
477 return InternalSavePciWrite16ValueToBootScript (Address, PciRead16 (Address));
484 Writes the 16-bit PCI configuration register specified by Address with the
488 If Address > 0x0FFFFFFF, then ASSERT().
489 If Address is not aligned on a 16-bit boundary, then ASSERT().
491 @param Address Address that encodes the PCI Bus, Device, Function and
501 IN UINTN Address,
505 return InternalSavePciWrite16ValueToBootScript (Address, PciWrite16 (Address, Value));
512 Reads the 16-bit PCI configuration register specified by Address, performs a
515 specified by Address. The value written to the PCI configuration register is
519 If Address > 0x0FFFFFFF, then ASSERT().
520 If Address is not aligned on a 16-bit boundary, then ASSERT().
522 @param Address Address that encodes the PCI Bus, Device, Function and
532 IN UINTN Address,
536 return InternalSavePciWrite16ValueToBootScript (Address, PciOr16 (Address, OrData));
543 Reads the 16-bit PCI configuration register specified by Address, performs a
546 Address. The value written to the PCI configuration register is returned.
550 If Address > 0x0FFFFFFF, then ASSERT().
551 If Address is not aligned on a 16-bit boundary, then ASSERT().
553 @param Address Address that encodes the PCI Bus, Device, Function and
563 IN UINTN Address,
567 return InternalSavePciWrite16ValueToBootScript (Address, PciAnd16 (Address, AndData));
575 Reads the 16-bit PCI configuration register specified by Address, performs a
579 configuration register specified by Address. The value written to the PCI
583 If Address > 0x0FFFFFFF, then ASSERT().
584 If Address is not aligned on a 16-bit boundary, then ASSERT().
586 @param Address Address that encodes the PCI Bus, Device, Function and
597 IN UINTN Address,
602 return InternalSavePciWrite16ValueToBootScript (Address, PciAndThenOr16 (Address, AndData, OrData));
613 If Address > 0x0FFFFFFF, then ASSERT().
614 If Address is not aligned on a 16-bit boundary, then ASSERT().
619 @param Address PCI configuration register to read.
631 IN UINTN Address,
636 return InternalSavePciWrite16ValueToBootScript (Address, PciBitFieldRead16 (Address, StartBit, EndBit));
648 If Address > 0x0FFFFFFF, then ASSERT().
649 If Address is not aligned on a 16-bit boundary, then ASSERT().
655 @param Address PCI configuration register to write.
668 IN UINTN Address,
674 return InternalSavePciWrite16ValueToBootScript (Address, PciBitFieldWrite16 (Address, StartBit, EndBit, Value));
682 Reads the 16-bit PCI configuration register specified by Address, performs a
685 specified by Address. The value written to the PCI configuration register is
689 If Address > 0x0FFFFFFF, then ASSERT().
690 If Address is not aligned on a 16-bit boundary, then ASSERT().
696 @param Address PCI configuration register to write.
709 IN UINTN Address,
715 return InternalSavePciWrite16ValueToBootScript (Address, PciBitFieldOr16 (Address, StartBit, EndBit, OrData));
723 Reads the 16-bit PCI configuration register specified by Address, performs a
726 Address. The value written to the PCI configuration register is returned.
730 If Address > 0x0FFFFFFF, then ASSERT().
731 If Address is not aligned on a 16-bit boundary, then ASSERT().
737 @param Address PCI configuration register to write.
750 IN UINTN Address,
756 return InternalSavePciWrite16ValueToBootScript (Address, PciBitFieldAnd16 (Address, StartBit, EndBit, AndData));
760 Reads a bit field in a 16-bit Address, performs a bitwise AND followed by a
764 Reads the 16-bit PCI configuration register specified by Address, performs a
767 configuration register specified by Address. The value written to the PCI
772 If Address > 0x0FFFFFFF, then ASSERT().
773 If Address is not aligned on a 16-bit boundary, then ASSERT().
780 @param Address PCI configuration register to write.
794 IN UINTN Address,
801 return InternalSavePciWrite16ValueToBootScript (Address, PciBitFieldAndThenOr16 (Address, StartBit, EndBit, AndData, OrData));
812 @param Address Address that encodes the PCI Bus, Device, Function and
821 IN UINTN Address,
825 InternalSavePciWriteValueToBootScript (S3BootScriptWidthUint32, Address, &Value);
834 Reads and returns the 32-bit PCI configuration register specified by Address.
838 If Address > 0x0FFFFFFF, then ASSERT().
839 If Address is not aligned on a 32-bit boundary, then ASSERT().
841 @param Address Address that encodes the PCI Bus, Device, Function and
850 IN UINTN Address
853 return InternalSavePciWrite32ValueToBootScript (Address, PciRead32 (Address));
860 Writes the 32-bit PCI configuration register specified by Address with the
864 If Address > 0x0FFFFFFF, then ASSERT().
865 If Address is not aligned on a 32-bit boundary, then ASSERT().
867 @param Address Address that encodes the PCI Bus, Device, Function and
877 IN UINTN Address,
881 return InternalSavePciWrite32ValueToBootScript (Address, PciWrite32 (Address, Value));
888 Reads the 32-bit PCI configuration register specified by Address, performs a
891 specified by Address. The value written to the PCI configuration register is
895 If Address > 0x0FFFFFFF, then ASSERT().
896 If Address is not aligned on a 32-bit boundary, then ASSERT().
898 @param Address Address that encodes the PCI Bus, Device, Function and
908 IN UINTN Address,
912 return InternalSavePciWrite32ValueToBootScript (Address, PciOr32 (Address, OrData));
919 Reads the 32-bit PCI configuration register specified by Address, performs a
922 Address. The value written to the PCI configuration register is returned.
926 If Address > 0x0FFFFFFF, then ASSERT().
927 If Address is not aligned on a 32-bit boundary, then ASSERT().
929 @param Address Address that encodes the PCI Bus, Device, Function and
939 IN UINTN Address,
943 return InternalSavePciWrite32ValueToBootScript (Address, PciAnd32 (Address, AndData));
951 Reads the 32-bit PCI configuration register specified by Address, performs a
955 configuration register specified by Address. The value written to the PCI
959 If Address > 0x0FFFFFFF, then ASSERT().
960 If Address is not aligned on a 32-bit boundary, then ASSERT().
962 @param Address Address that encodes the PCI Bus, Device, Function and
973 IN UINTN Address,
978 return InternalSavePciWrite32ValueToBootScript (Address, PciAndThenOr32 (Address, AndData, OrData));
989 If Address > 0x0FFFFFFF, then ASSERT().
990 If Address is not aligned on a 32-bit boundary, then ASSERT().
995 @param Address PCI configuration register to read.
1007 IN UINTN Address,
1012 return InternalSavePciWrite32ValueToBootScript (Address, PciBitFieldRead32 (Address, StartBit, EndBit));
1024 If Address > 0x0FFFFFFF, then ASSERT().
1025 If Address is not aligned on a 32-bit boundary, then ASSERT().
1031 @param Address PCI configuration register to write.
1044 IN UINTN Address,
1050 return InternalSavePciWrite32ValueToBootScript (Address, PciBitFieldWrite32 (Address, StartBit, EndBit, Value));
1058 Reads the 32-bit PCI configuration register specified by Address, performs a
1061 specified by Address. The value written to the PCI configuration register is
1065 If Address > 0x0FFFFFFF, then ASSERT().
1066 If Address is not aligned on a 32-bit boundary, then ASSERT().
1072 @param Address PCI configuration register to write.
1085 IN UINTN Address,
1091 return InternalSavePciWrite32ValueToBootScript (Address, PciBitFieldOr32 (Address, StartBit, EndBit, OrData));
1099 Reads the 32-bit PCI configuration register specified by Address, performs a
1102 Address. The value written to the PCI configuration register is returned.
1106 If Address > 0x0FFFFFFF, then ASSERT().
1107 If Address is not aligned on a 32-bit boundary, then ASSERT().
1113 @param Address PCI configuration register to write.
1126 IN UINTN Address,
1132 return InternalSavePciWrite32ValueToBootScript (Address, PciBitFieldAnd32 (Address, StartBit, EndBit, AndData));
1136 Reads a bit field in a 32-bit Address, performs a bitwise AND followed by a
1140 Reads the 32-bit PCI configuration register specified by Address, performs a
1143 configuration register specified by Address. The value written to the PCI
1148 If Address > 0x0FFFFFFF, then ASSERT().
1149 If Address is not aligned on a 32-bit boundary, then ASSERT().
1156 @param Address PCI configuration register to write.
1170 IN UINTN Address,
1177 return InternalSavePciWrite32ValueToBootScript (Address, PciBitFieldAndThenOr32 (Address, StartBit, EndBit, AndData, OrData));
1196 @param StartAddress Starting address that encodes the PCI Bus, Device,
1242 @param StartAddress Starting address that encodes the PCI Bus, Device,