source: trunk/packages/xen-common/xen-common/tools/ioemu/patches/ide-cd-dma @ 34

Last change on this file since 34 was 34, checked in by hartmans, 17 years ago

Add xen and xen-common

File size: 1.2 KB
Line 
1# HG changeset patch
2# User kfraser@localhost.localdomain
3# Node ID 1e8ba8d2117548d4f13b7b438d1e992b1815f580
4# Parent  f247e0b52dda257c0000c9da5a0cdff507b3ced8
5[HVM] Enable DMA mode for CD-ROM IDE ATAPI interface.
6Signed-off-by: Winston Wang <winston.l.wang@intel.com
7
8Index: ioemu/hw/ide.c
9===================================================================
10--- ioemu.orig/hw/ide.c 2007-05-03 15:07:16.000000000 +0100
11+++ ioemu/hw/ide.c      2007-05-03 15:07:16.000000000 +0100
12@@ -713,9 +713,9 @@
13     padstr((uint8_t *)(p + 23), QEMU_VERSION, 8); /* firmware version */
14     padstr((uint8_t *)(p + 27), "QEMU CD-ROM", 40); /* model */
15     put_le16(p + 48, 1); /* dword I/O (XXX: should not be set on CDROM) */
16-    put_le16(p + 49, 1 << 9); /* LBA supported, no DMA */
17+    put_le16(p + 49, (1 << 11) | (1 << 9) | (1 << 8)); /* DMA and LBA supported */
18     put_le16(p + 53, 3); /* words 64-70, 54-58 valid */
19-    put_le16(p + 63, 0x103); /* DMA modes XXX: may be incorrect */
20+    put_le16(p + 63, 0x07); /* mdma0-2 supported */
21     put_le16(p + 64, 1); /* PIO modes */
22     put_le16(p + 65, 0xb4); /* minimum DMA multiword tx cycle time */
23     put_le16(p + 66, 0xb4); /* recommended DMA multiword tx cycle time */
Note: See TracBrowser for help on using the repository browser.