Lines Matching defs:StartAddress

1231   Reads the range of PCI configuration registers specified by StartAddress and
1235 from StartAdress to StartAddress + Size. Due to alignment restrictions, 8-bit
1239 If StartAddress > 0x0FFFFFFF, then ASSERT().
1240 If ((StartAddress & 0xFFF) + Size) > 0x1000, then ASSERT().
1243 @param StartAddress The starting address that encodes the PCI Bus, Device,
1254 IN UINTN StartAddress,
1261 ASSERT_INVALID_PCI_ADDRESS (StartAddress, 0);
1262 ASSERT (((StartAddress & 0xFFF) + Size) <= 0x1000);
1275 if ((StartAddress & BIT0) != 0) {
1277 // Read a byte if StartAddress is byte aligned
1279 *(volatile UINT8 *)Buffer = PciRead8 (StartAddress);
1280 StartAddress += sizeof (UINT8);
1285 if (Size >= sizeof (UINT16) && (StartAddress & BIT1) != 0) {
1287 // Read a word if StartAddress is word aligned
1289 WriteUnaligned16 (Buffer, PciRead16 (StartAddress));
1290 StartAddress += sizeof (UINT16);
1299 WriteUnaligned32 (Buffer, PciRead32 (StartAddress));
1300 StartAddress += sizeof (UINT32);
1309 WriteUnaligned16 (Buffer, PciRead16 (StartAddress));
1310 StartAddress += sizeof (UINT16);
1319 *(volatile UINT8 *)Buffer = PciRead8 (StartAddress);
1329 Writes the range of PCI configuration registers specified by StartAddress and
1333 write from StartAdress to StartAddress + Size. Due to alignment restrictions,
1337 If StartAddress > 0x0FFFFFFF, then ASSERT().
1338 If ((StartAddress & 0xFFF) + Size) > 0x1000, then ASSERT().
1341 @param StartAddress The starting address that encodes the PCI Bus, Device,
1346 @return Size written to StartAddress.
1352 IN UINTN StartAddress,
1359 ASSERT_INVALID_PCI_ADDRESS (StartAddress, 0);
1360 ASSERT (((StartAddress & 0xFFF) + Size) <= 0x1000);
1373 if ((StartAddress & BIT0) != 0) {
1375 // Write a byte if StartAddress is byte aligned
1377 PciWrite8 (StartAddress, *(UINT8*)Buffer);
1378 StartAddress += sizeof (UINT8);
1383 if (Size >= sizeof (UINT16) && (StartAddress & BIT1) != 0) {
1385 // Write a word if StartAddress is word aligned
1387 PciWrite16 (StartAddress, ReadUnaligned16 (Buffer));
1388 StartAddress += sizeof (UINT16);
1397 PciWrite32 (StartAddress, ReadUnaligned32 (Buffer));
1398 StartAddress += sizeof (UINT32);
1407 PciWrite16 (StartAddress, ReadUnaligned16 (Buffer));
1408 StartAddress += sizeof (UINT16);
1417 PciWrite8 (StartAddress, *(UINT8*)Buffer);