diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-05-29 11:04:25 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-05-29 11:04:25 +0000 |
commit | f66723fab9eab2695a1b3cf15b55ffc2936b6418 (patch) | |
tree | 4c81afad3a633538169c6adcc93a5ca3437d5b44 /hw/ide.c | |
parent | 8cc43feffcbd0fbe37a4410836632c698f143241 (diff) | |
download | qemu-f66723fab9eab2695a1b3cf15b55ffc2936b6418.zip qemu-f66723fab9eab2695a1b3cf15b55ffc2936b6418.tar.gz qemu-f66723fab9eab2695a1b3cf15b55ffc2936b6418.tar.bz2 |
put ready it after write command (aka FreeBSD HD access fix) - access 16 mult sector count
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@868 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/ide.c')
-rw-r--r-- | hw/ide.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -185,7 +185,7 @@ #define DISABLE_SEAGATE 0xFB /* set to 1 set disable mult support */ -#define MAX_MULT_SECTORS 8 +#define MAX_MULT_SECTORS 16 /* ATAPI defines */ @@ -1142,7 +1142,7 @@ static void ide_ioport_write(void *opaque, uint32_t addr, uint32_t val) case WIN_WRITE: case WIN_WRITE_ONCE: s->error = 0; - s->status = SEEK_STAT; + s->status = SEEK_STAT | READY_STAT; s->req_nb_sectors = 1; ide_transfer_start(s, s->io_buffer, 512, ide_sector_write); break; @@ -1156,7 +1156,7 @@ static void ide_ioport_write(void *opaque, uint32_t addr, uint32_t val) if (!s->mult_sectors) goto abort_cmd; s->error = 0; - s->status = SEEK_STAT; + s->status = SEEK_STAT | READY_STAT; s->req_nb_sectors = s->mult_sectors; n = s->nsector; if (n > s->req_nb_sectors) |