Home | History | Annotate | Download | only in BasePciCf8Lib

Lines Matching refs:Address

31 // Declare macro to convert PCI Library formatted address to CF8 formatted address

33 // PCI Library formatted address CF8 Formatted Address
44 Assert the validity of a PCI address. A valid PCI address should contain 1's
47 @param A The address to validate.
55 Convert a PCI Express address to PCI CF8 address.
57 @param A The address to convert.
59 @retval The coverted address.
68 Reads and returns the 8-bit PCI configuration register specified by Address.
72 If Address > 0x0FFFFFFF, then ASSERT().
73 If the register specified by Address >= 0x100, then ASSERT().
75 @param Address Address that encodes the PCI Bus, Device, Function and
84 IN UINTN Address
87 ASSERT_INVALID_PCI_ADDRESS (Address, 0);
88 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
89 return IoRead8 (PCI_CONFIGURATION_DATA_PORT + (UINT16)(Address & 3));
95 Writes the 8-bit PCI configuration register specified by Address with the
99 If Address > 0x0FFFFFFF, then ASSERT().
100 If the register specified by Address >= 0x100, then ASSERT().
102 @param Address Address that encodes the PCI Bus, Device, Function and
112 IN UINTN Address,
116 ASSERT_INVALID_PCI_ADDRESS (Address, 0);
117 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
119 PCI_CONFIGURATION_DATA_PORT + (UINT16)(Address & 3),
128 Reads the 8-bit PCI configuration register specified by Address, performs a
131 specified by Address. The value written to the PCI configuration register is
135 If Address > 0x0FFFFFFF, then ASSERT().
136 If the register specified by Address >= 0x100, then ASSERT().
138 @param Address Address that encodes the PCI Bus, Device, Function and
148 IN UINTN Address,
152 ASSERT_INVALID_PCI_ADDRESS (Address, 0);
153 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
155 PCI_CONFIGURATION_DATA_PORT + (UINT16)(Address & 3),
164 Reads the 8-bit PCI configuration register specified by Address, performs a
167 Address. The value written to the PCI configuration register is returned.
171 If Address > 0x0FFFFFFF, then ASSERT().
172 If the register specified by Address >= 0x100, then ASSERT().
174 @param Address Address that encodes the PCI Bus, Device, Function and
184 IN UINTN Address,
188 ASSERT_INVALID_PCI_ADDRESS (Address, 0);
189 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
191 PCI_CONFIGURATION_DATA_PORT + (UINT16)(Address & 3),
200 Reads the 8-bit PCI configuration register specified by Address, performs a
204 configuration register specified by Address. The value written to the PCI
208 If Address > 0x0FFFFFFF, then ASSERT().
209 If the register specified by Address >= 0x100, then ASSERT().
211 @param Address Address that encodes the PCI Bus, Device, Function and
222 IN UINTN Address,
227 ASSERT_INVALID_PCI_ADDRESS (Address, 0);
228 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
230 PCI_CONFIGURATION_DATA_PORT + (UINT16)(Address & 3),
243 If Address > 0x0FFFFFFF, then ASSERT().
244 If the register specified by Address >= 0x100, then ASSERT().
249 @param Address PCI configuration register to read.
261 IN UINTN Address,
266 ASSERT_INVALID_PCI_ADDRESS (Address, 0);
267 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
269 PCI_CONFIGURATION_DATA_PORT + (UINT16)(Address & 3),
283 If Address > 0x0FFFFFFF, then ASSERT().
284 If the register specified by Address >= 0x100, then ASSERT().
289 @param Address PCI configuration register to write.
302 IN UINTN Address,
308 ASSERT_INVALID_PCI_ADDRESS (Address, 0);
309 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
311 PCI_CONFIGURATION_DATA_PORT + (UINT16)(Address & 3),
322 Reads the 8-bit PCI configuration register specified by Address, performs a
325 specified by Address. The value written to the PCI configuration register is
329 If Address > 0x0FFFFFFF, then ASSERT().
330 If the register specified by Address >= 0x100, then ASSERT().
335 @param Address PCI configuration register to write.
348 IN UINTN Address,
354 ASSERT_INVALID_PCI_ADDRESS (Address, 0);
355 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
357 PCI_CONFIGURATION_DATA_PORT + (UINT16)(Address & 3),
368 Reads the 8-bit PCI configuration register specified by Address, performs a
371 Address. The value written to the PCI configuration register is returned.
375 If Address > 0x0FFFFFFF, then ASSERT().
376 If the register specified by Address >= 0x100, then ASSERT().
381 @param Address PCI configuration register to write.
394 IN UINTN Address,
400 ASSERT_INVALID_PCI_ADDRESS (Address, 0);
401 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
403 PCI_CONFIGURATION_DATA_PORT + (UINT16)(Address & 3),
415 Reads the 8-bit PCI configuration register specified by Address, performs a
418 configuration register specified by Address. The value written to the PCI
423 If Address > 0x0FFFFFFF, then ASSERT().
424 If the register specified by Address >= 0x100, then ASSERT().
429 @param Address PCI configuration register to write.
443 IN UINTN Address,
450 ASSERT_INVALID_PCI_ADDRESS (Address, 0);
451 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
453 PCI_CONFIGURATION_DATA_PORT + (UINT16)(Address & 3),
464 Reads and returns the 16-bit PCI configuration register specified by Address.
468 If Address > 0x0FFFFFFF, then ASSERT().
469 If Address is not aligned on a 16-bit boundary, then ASSERT().
470 If the register specified by Address >= 0x100, then ASSERT().
472 @param Address Address that encodes the PCI Bus, Device, Function and
481 IN UINTN Address
484 ASSERT_INVALID_PCI_ADDRESS (Address, 1);
485 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
486 return IoRead16 (PCI_CONFIGURATION_DATA_PORT + (UINT16)(Address & 2));
492 Writes the 16-bit PCI configuration register specified by Address with the
496 If Address > 0x0FFFFFFF, then ASSERT().
497 If Address is not aligned on a 16-bit boundary, then ASSERT().
498 If the register specified by Address >= 0x100, then ASSERT().
500 @param Address Address that encodes the PCI Bus, Device, Function and
510 IN UINTN Address,
514 ASSERT_INVALID_PCI_ADDRESS (Address, 1);
515 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
517 PCI_CONFIGURATION_DATA_PORT + (UINT16)(Address & 2),
526 Reads the 16-bit PCI configuration register specified by Address, performs a
529 specified by Address. The value written to the PCI configuration register is
533 If Address > 0x0FFFFFFF, then ASSERT().
534 If Address is not aligned on a 16-bit boundary, then ASSERT().
535 If the register specified by Address >= 0x100, then ASSERT().
537 @param Address Address that encodes the PCI Bus, Device, Function and
547 IN UINTN Address,
551 ASSERT_INVALID_PCI_ADDRESS (Address, 1);
552 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
554 PCI_CONFIGURATION_DATA_PORT + (UINT16)(Address & 2),
563 Reads the 16-bit PCI configuration register specified by Address, performs a
566 Address. The value written to the PCI configuration register is returned.
570 If Address > 0x0FFFFFFF, then ASSERT().
571 If Address is not aligned on a 16-bit boundary, then ASSERT().
572 If the register specified by Address >= 0x100, then ASSERT().
574 @param Address Address that encodes the PCI Bus, Device, Function and
584 IN UINTN Address,
588 ASSERT_INVALID_PCI_ADDRESS (Address, 1);
589 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
591 PCI_CONFIGURATION_DATA_PORT + (UINT16)(Address & 2),
600 Reads the 16-bit PCI configuration register specified by Address, performs a
604 configuration register specified by Address. The value written to the PCI
608 If Address > 0x0FFFFFFF, then ASSERT().
609 If Address is not aligned on a 16-bit boundary, then ASSERT().
610 If the register specified by Address >= 0x100, then ASSERT().
612 @param Address Address that encodes the PCI Bus, Device, Function and
623 IN UINTN Address,
628 ASSERT_INVALID_PCI_ADDRESS (Address, 1);
629 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
631 PCI_CONFIGURATION_DATA_PORT + (UINT16)(Address & 2),
644 If Address > 0x0FFFFFFF, then ASSERT().
645 If Address is not aligned on a 16-bit boundary, then ASSERT().
646 If the register specified by Address >= 0x100, then ASSERT().
651 @param Address PCI configuration register to read.
663 IN UINTN Address,
668 ASSERT_INVALID_PCI_ADDRESS (Address, 1);
669 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
671 PCI_CONFIGURATION_DATA_PORT + (UINT16)(Address & 2),
685 If Address > 0x0FFFFFFF, then ASSERT().
686 If Address is not aligned on a 16-bit boundary, then ASSERT().
687 If the register specified by Address >= 0x100, then ASSERT().
692 @param Address PCI configuration register to write.
705 IN UINTN Address,
711 ASSERT_INVALID_PCI_ADDRESS (Address, 1);
712 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
714 PCI_CONFIGURATION_DATA_PORT + (UINT16)(Address & 2),
725 Reads the 16-bit PCI configuration register specified by Address, performs a
728 specified by Address. The value written to the PCI configuration register is
732 If Address > 0x0FFFFFFF, then ASSERT().
733 If Address is not aligned on a 16-bit boundary, then ASSERT().
734 If the register specified by Address >= 0x100, then ASSERT().
739 @param Address PCI configuration register to write.
752 IN UINTN Address,
758 ASSERT_INVALID_PCI_ADDRESS (Address, 1);
759 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
761 PCI_CONFIGURATION_DATA_PORT + (UINT16)(Address & 2),
772 Reads the 16-bit PCI configuration register specified by Address, performs a
775 Address. The value written to the PCI configuration register is returned.
779 If Address > 0x0FFFFFFF, then ASSERT().
780 If Address is not aligned on a 16-bit boundary, then ASSERT().
781 If the register specified by Address >= 0x100, then ASSERT().
786 @param Address PCI configuration register to write.
799 IN UINTN Address,
805 ASSERT_INVALID_PCI_ADDRESS (Address, 1);
806 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
808 PCI_CONFIGURATION_DATA_PORT + (UINT16)(Address & 2),
820 Reads the 16-bit PCI configuration register specified by Address, performs a
823 configuration register specified by Address. The value written to the PCI
828 If Address > 0x0FFFFFFF, then ASSERT().
829 If Address is not aligned on a 16-bit boundary, then ASSERT().
830 If the register specified by Address >= 0x100, then ASSERT().
835 @param Address PCI configuration register to write.
849 IN UINTN Address,
856 ASSERT_INVALID_PCI_ADDRESS (Address, 1);
857 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
859 PCI_CONFIGURATION_DATA_PORT + (UINT16)(Address & 2),
870 Reads and returns the 32-bit PCI configuration register specified by Address.
874 If Address > 0x0FFFFFFF, then ASSERT().
875 If Address is not aligned on a 32-bit boundary, then ASSERT().
876 If the register specified by Address >= 0x100, then ASSERT().
878 @param Address Address that encodes the PCI Bus, Device, Function and
887 IN UINTN Address
890 ASSERT_INVALID_PCI_ADDRESS (Address, 3);
891 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
898 Writes the 32-bit PCI configuration register specified by Address with the
902 If Address > 0x0FFFFFFF, then ASSERT().
903 If Address is not aligned on a 32-bit boundary, then ASSERT().
904 If the register specified by Address >= 0x100, then ASSERT().
906 @param Address Address that encodes the PCI Bus, Device, Function and
916 IN UINTN Address,
920 ASSERT_INVALID_PCI_ADDRESS (Address, 3);
921 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
932 Reads the 32-bit PCI configuration register specified by Address, performs a
935 specified by Address. The value written to the PCI configuration register is
939 If Address > 0x0FFFFFFF, then ASSERT().
940 If Address is not aligned on a 32-bit boundary, then ASSERT().
941 If the register specified by Address >= 0x100, then ASSERT().
943 @param Address Address that encodes the PCI Bus, Device, Function and
953 IN UINTN Address,
957 ASSERT_INVALID_PCI_ADDRESS (Address, 3);
958 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
969 Reads the 32-bit PCI configuration register specified by Address, performs a
972 Address. The value written to the PCI configuration register is returned.
976 If Address > 0x0FFFFFFF, then ASSERT().
977 If Address is not aligned on a 32-bit boundary, then ASSERT().
978 If the register specified by Address >= 0x100, then ASSERT().
980 @param Address Address that encodes the PCI Bus, Device, Function and
990 IN UINTN Address,
994 ASSERT_INVALID_PCI_ADDRESS (Address, 3);
995 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
1006 Reads the 32-bit PCI configuration register specified by Address, performs a
1010 configuration register specified by Address. The value written to the PCI
1014 If Address > 0x0FFFFFFF, then ASSERT().
1015 If Address is not aligned on a 32-bit boundary, then ASSERT().
1016 If the register specified by Address >= 0x100, then ASSERT().
1018 @param Address Address that encodes the PCI Bus, Device, Function and
1029 IN UINTN Address,
1034 ASSERT_INVALID_PCI_ADDRESS (Address, 3);
1035 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
1050 If Address > 0x0FFFFFFF, then ASSERT().
1051 If Address is not aligned on a 32-bit boundary, then ASSERT().
1052 If the register specified by Address >= 0x100, then ASSERT().
1057 @param Address PCI configuration register to read.
1069 IN UINTN Address,
1074 ASSERT_INVALID_PCI_ADDRESS (Address, 3);
1075 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
1091 If Address > 0x0FFFFFFF, then ASSERT().
1092 If Address is not aligned on a 32-bit boundary, then ASSERT().
1093 If the register specified by Address >= 0x100, then ASSERT().
1098 @param Address PCI configuration register to write.
1111 IN UINTN Address,
1117 ASSERT_INVALID_PCI_ADDRESS (Address, 3);
1118 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
1131 Reads the 32-bit PCI configuration register specified by Address, performs a
1134 specified by Address. The value written to the PCI configuration register is
1138 If Address > 0x0FFFFFFF, then ASSERT().
1139 If Address is not aligned on a 32-bit boundary, then ASSERT().
1140 If the register specified by Address >= 0x100, then ASSERT().
1145 @param Address PCI configuration register to write.
1158 IN UINTN Address,
1164 ASSERT_INVALID_PCI_ADDRESS (Address, 3);
1165 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
1178 Reads the 32-bit PCI configuration register specified by Address, performs a
1181 Address. The value written to the PCI configuration register is returned.
1185 If Address > 0x0FFFFFFF, then ASSERT().
1186 If Address is not aligned on a 32-bit boundary, then ASSERT().
1187 If the register specified by Address >= 0x100, then ASSERT().
1192 @param Address PCI configuration register to write.
1205 IN UINTN Address,
1211 ASSERT_INVALID_PCI_ADDRESS (Address, 3);
1212 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
1226 Reads the 32-bit PCI configuration register specified by Address, performs a
1229 configuration register specified by Address. The value written to the PCI
1234 If Address > 0x0FFFFFFF, then ASSERT().
1235 If Address is not aligned on a 32-bit boundary, then ASSERT().
1236 If the register specified by Address >= 0x100, then ASSERT().
1241 @param Address PCI configuration register to write.
1255 IN UINTN Address,
1262 ASSERT_INVALID_PCI_ADDRESS (Address, 3);
1263 IoWrite32 (PCI_CONFIGURATION_ADDRESS_PORT, PCI_TO_CF8_ADDRESS (Address));
1289 @param StartAddress Starting address that encodes the PCI Bus, Device,
1388 @param StartAddress Starting address that encodes the PCI Bus, Device,