From: Erik van der Kouwe Date: Fri, 26 Nov 2010 16:45:01 +0000 (-0600) Subject: This patch adds the ATAPI drive reset command to the ide device, which is needed... X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=77ac25d700355b28a151420a3983a5cc9b6f9345;p=palacios.git This patch adds the ATAPI drive reset command to the ide device, which is needed for FreeBSD. --- diff --git a/palacios/src/devices/ide.c b/palacios/src/devices/ide.c index 6bc37fb..8ff8ef7 100644 --- a/palacios/src/devices/ide.c +++ b/palacios/src/devices/ide.c @@ -956,6 +956,17 @@ static int write_cmd_port(struct guest_info * core, ushort_t port, void * src, u break; } + + case 0x08: // Reset Device + drive_reset(drive); + channel->error_reg.val = 0x01; + channel->status.busy = 0; + channel->status.ready = 1; + channel->status.seek_complete = 1; + channel->status.write_fault = 0; + channel->status.error = 0; + break; + case 0xc4: // read multiple sectors drive->hd_state.cur_sector_num = drive->hd_state.mult_sector_num; default: