ia64/xen-unstable

changeset 11892:1e8ba8d21175

[HVM] Enable DMA mode for CD-ROM IDE ATAPI interface.
Signed-off-by: Winston Wang <winston.l.wang@intel.com
author kfraser@localhost.localdomain
date Wed Oct 18 18:41:47 2006 +0100 (2006-10-18)
parents f247e0b52dda
children b2e71d574045
files tools/ioemu/hw/ide.c
line diff
     1.1 --- a/tools/ioemu/hw/ide.c	Wed Oct 18 18:37:18 2006 +0100
     1.2 +++ b/tools/ioemu/hw/ide.c	Wed Oct 18 18:41:47 2006 +0100
     1.3 @@ -557,9 +557,9 @@ static void ide_atapi_identify(IDEState 
     1.4      padstr((uint8_t *)(p + 23), QEMU_VERSION, 8); /* firmware version */
     1.5      padstr((uint8_t *)(p + 27), "QEMU CD-ROM", 40); /* model */
     1.6      put_le16(p + 48, 1); /* dword I/O (XXX: should not be set on CDROM) */
     1.7 -    put_le16(p + 49, 1 << 9); /* LBA supported, no DMA */
     1.8 +    put_le16(p + 49, (1 << 11) | (1 << 9) | (1 << 8)); /* DMA and LBA supported */
     1.9      put_le16(p + 53, 3); /* words 64-70, 54-58 valid */
    1.10 -    put_le16(p + 63, 0x103); /* DMA modes XXX: may be incorrect */
    1.11 +    put_le16(p + 63, 0x07); /* mdma0-2 supported */
    1.12      put_le16(p + 64, 1); /* PIO modes */
    1.13      put_le16(p + 65, 0xb4); /* minimum DMA multiword tx cycle time */
    1.14      put_le16(p + 66, 0xb4); /* recommended DMA multiword tx cycle time */