Lines Matching defs:StartAddress

1217   Reads the range of PCI configuration registers specified by StartAddress and
1221 from StartAdress to StartAddress + Size. Due to alignment restrictions, 8-bit
1225 If StartAddress > 0x0FFFFFFF, then ASSERT().
1226 If ((StartAddress & 0xFFF) + Size) > 0x1000, then ASSERT().
1229 @param StartAddress The starting address that encodes the PCI Bus, Device,
1240 IN UINTN StartAddress,
1247 ASSERT_INVALID_PCI_ADDRESS (StartAddress, 0);
1248 ASSERT (((StartAddress & 0xFFF) + Size) <= 0x1000);
1261 if ((StartAddress & BIT0) != 0) {
1263 // Read a byte if StartAddress is byte aligned
1265 *(volatile UINT8 *)Buffer = PciRead8 (StartAddress);
1266 StartAddress += sizeof (UINT8);
1271 if (Size >= sizeof (UINT16) && (StartAddress & BIT1) != 0) {
1273 // Read a word if StartAddress is word aligned
1275 WriteUnaligned16 (Buffer, PciRead16 (StartAddress));
1276 StartAddress += sizeof (UINT16);
1285 WriteUnaligned32 (Buffer, PciRead32 (StartAddress));
1286 StartAddress += sizeof (UINT32);
1295 WriteUnaligned16 (Buffer, PciRead16 (StartAddress));
1296 StartAddress += sizeof (UINT16);
1305 *(volatile UINT8 *)Buffer = PciRead8 (StartAddress);
1315 Writes the range of PCI configuration registers specified by StartAddress and
1319 write from StartAdress to StartAddress + Size. Due to alignment restrictions,
1323 If StartAddress > 0x0FFFFFFF, then ASSERT().
1324 If ((StartAddress & 0xFFF) + Size) > 0x1000, then ASSERT().
1327 @param StartAddress The starting address that encodes the PCI Bus, Device,
1332 @return Size written to StartAddress.
1338 IN UINTN StartAddress,
1345 ASSERT_INVALID_PCI_ADDRESS (StartAddress, 0);
1346 ASSERT (((StartAddress & 0xFFF) + Size) <= 0x1000);
1359 if ((StartAddress & BIT0) != 0) {
1361 // Write a byte if StartAddress is byte aligned
1363 PciWrite8 (StartAddress, *(UINT8*)Buffer);
1364 StartAddress += sizeof (UINT8);
1369 if (Size >= sizeof (UINT16) && (StartAddress & BIT1) != 0) {
1371 // Write a word if StartAddress is word aligned
1373 PciWrite16 (StartAddress, ReadUnaligned16 (Buffer));
1374 StartAddress += sizeof (UINT16);
1383 PciWrite32 (StartAddress, ReadUnaligned32 (Buffer));
1384 StartAddress += sizeof (UINT32);
1393 PciWrite16 (StartAddress, ReadUnaligned16 (Buffer));
1394 StartAddress += sizeof (UINT16);
1403 PciWrite8 (StartAddress, *(UINT8*)Buffer);