qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 06/14] fdc: support NEC PC-9821 family


From: Alexander Graf
Subject: Re: [Qemu-devel] [PATCH 06/14] fdc: support NEC PC-9821 family
Date: Thu, 10 Sep 2009 09:19:42 +0200


On 09.09.2009, at 17:42, 武田 俊也 wrote:

This patch is to add NEC PC-9821 family i/o to fdc.

diff -ur a/hw/fdc.c b/hw/fdc.c
--- a/hw/fdc.c  Tue Sep  8 21:26:50 2009
+++ b/hw/fdc.c  Wed Sep  9 21:51:23 2009
@@ -85,6 +85,7 @@
    /* Drive status */
    fdrive_type_t drive;
    uint8_t perpendicular;    /* 2.88 MB access mode    */
+    uint8_t seek_result;
    /* Position */
    uint8_t head;
    uint8_t track;
@@ -175,6 +176,7 @@
    drv->head = 0;
    drv->track = 0;
    drv->sect = 1;
+    drv->seek_result = 0;
}

/* Recognize floppy formats */
@@ -387,6 +389,7 @@
};

enum {
+    FD_SR0_NOTRDY   = 0x08,
    FD_SR0_EQPMT    = 0x10,
    FD_SR0_SEEK     = 0x20,
    FD_SR0_ABNTERM  = 0x40,
@@ -507,8 +510,10 @@
    uint8_t pwrd;
    /* Sun4m quirks? */
    int sun4m;
+    /* NEC PC-98x1 quirks? */
+    int pc98;
    /* Floppy drives */
-    fdrive_t drives[MAX_FD];
+    fdrive_t drives[4];

Just change MAX_FD?

Alex



reply via email to

[Prev in Thread] Current Thread [Next in Thread]