Changeset 33029 in vbox for trunk/src/VBox/Devices/EFI
- Timestamp:
- Oct 11, 2010 6:59:00 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxIdeBusDxe/Ide.c
r33027 r33029 344 344 IdeRegsBaseAddr[IdePrimary].CommandBlockBaseAddr = 0x1f0; 345 345 IdeRegsBaseAddr[IdePrimary].ControlBlockBaseAddr = 0x3f6; 346 IdeRegsBaseAddr[IdePrimary].BusMasterBaseAddr = 347 (UINT16)((PciData.Device.Bar[4] & 0x0000fff0)); 346 348 break; 347 349 case 0x6: 348 350 IdeRegsBaseAddr[IdePrimary].CommandBlockBaseAddr = 0x1e8; 349 351 IdeRegsBaseAddr[IdePrimary].ControlBlockBaseAddr = 0x3e6; 352 IdeRegsBaseAddr[IdePrimary].BusMasterBaseAddr = 0; 350 353 break; 351 354 default: 352 355 ASSERT_EFI_ERROR((EFI_UNSUPPORTED)); 353 356 } 354 IdeRegsBaseAddr[IdePrimary].BusMasterBaseAddr =355 (UINT16)((PciData.Device.Bar[4] & 0x0000fff0));356 357 } else { 357 358 // … … 371 372 IdeRegsBaseAddr[IdePrimary].ControlBlockBaseAddr = 372 373 (UINT16) ((PciData.Device.Bar[1] & 0x0000fffc) + 2); 374 IdeRegsBaseAddr[IdePrimary].BusMasterBaseAddr = 375 (UINT16) ((PciData.Device.Bar[4] & 0x0000fff0)); 373 376 break; 374 377 case 0x6: 375 378 IdeRegsBaseAddr[IdePrimary].CommandBlockBaseAddr = 0x1e8; 376 379 IdeRegsBaseAddr[IdePrimary].ControlBlockBaseAddr = 0x3e6; 380 IdeRegsBaseAddr[IdePrimary].BusMasterBaseAddr = 0; 377 381 break; 378 382 default: 379 383 ASSERT_EFI_ERROR((EFI_UNSUPPORTED)); 380 384 } 381 IdeRegsBaseAddr[IdePrimary].BusMasterBaseAddr =382 (UINT16) ((PciData.Device.Bar[4] & 0x0000fff0));383 385 } 384 386 … … 389 391 IdeRegsBaseAddr[IdeSecondary].CommandBlockBaseAddr = 0x170; 390 392 IdeRegsBaseAddr[IdeSecondary].ControlBlockBaseAddr = 0x376; 393 IdeRegsBaseAddr[IdeSecondary].BusMasterBaseAddr = 394 (UINT16) ((PciData.Device.Bar[4] & 0x0000fff0)); 391 395 break; 392 396 case 0x6: 393 397 IdeRegsBaseAddr[IdeSecondary].CommandBlockBaseAddr = 0x168; 394 398 IdeRegsBaseAddr[IdeSecondary].ControlBlockBaseAddr = 0x366; 399 IdeRegsBaseAddr[IdeSecondary].BusMasterBaseAddr = 0; 395 400 break; 396 401 default: 397 402 ASSERT_EFI_ERROR((EFI_UNSUPPORTED)); 398 403 } 399 IdeRegsBaseAddr[IdeSecondary].BusMasterBaseAddr =400 (UINT16) ((PciData.Device.Bar[4] & 0x0000fff0));401 404 } else { 402 405 //
Note:
See TracChangeset
for help on using the changeset viewer.