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];