ia64/xen-unstable

changeset 17911:be52424a543e

hvmloader: Set up any Intel ICH for legacy IDE.
Signed-off-by: Li Zhang <li.zhang@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jun 27 14:15:11 2008 +0100 (2008-06-27)
parents 37ff3322d4f3
children cebedb30a964
files tools/firmware/hvmloader/hvmloader.c
line diff
     1.1 --- a/tools/firmware/hvmloader/hvmloader.c	Fri Jun 27 14:11:41 2008 +0100
     1.2 +++ b/tools/firmware/hvmloader/hvmloader.c	Fri Jun 27 14:15:11 2008 +0100
     1.3 @@ -206,10 +206,12 @@ static void pci_setup(void)
     1.4              pci_writew(devfn, 0x3d, 0x0001);
     1.5              break;
     1.6          case 0x0101:
     1.7 -            /* PIIX3 IDE */
     1.8 -            ASSERT((vendor_id == 0x8086) && (device_id == 0x7010));
     1.9 -            pci_writew(devfn, 0x40, 0x8000); /* enable IDE0 */
    1.10 -            pci_writew(devfn, 0x42, 0x8000); /* enable IDE1 */
    1.11 +            if ( vendor_id == 0x8086 )
    1.12 +            {
    1.13 +                /* Intel ICHs since PIIX3: enable IDE legacy mode. */
    1.14 +                pci_writew(devfn, 0x40, 0x8000); /* enable IDE0 */
    1.15 +                pci_writew(devfn, 0x42, 0x8000); /* enable IDE1 */
    1.16 +            }
    1.17              break;
    1.18          }
    1.19