From patchwork Fri Jun 11 14:02:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jes Sorensen X-Patchwork-Id: 55328 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id F2B501007D2 for ; Sat, 12 Jun 2010 00:05:27 +1000 (EST) Received: from localhost ([127.0.0.1]:60545 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ON4qx-0001mn-6U for incoming@patchwork.ozlabs.org; Fri, 11 Jun 2010 10:04:59 -0400 Received: from [140.186.70.92] (port=58083 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ON4pT-0001JR-AP for qemu-devel@nongnu.org; Fri, 11 Jun 2010 10:03:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ON4op-0000Lg-Bs for qemu-devel@nongnu.org; Fri, 11 Jun 2010 10:02:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37762) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ON4op-0000Ky-5G for qemu-devel@nongnu.org; Fri, 11 Jun 2010 10:02:47 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5BE2dPV024565 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 11 Jun 2010 10:02:40 -0400 Received: from localhost.localdomain (dhcp-144-167.gva.redhat.com [10.33.144.167]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o5BE2bpx023454; Fri, 11 Jun 2010 10:02:38 -0400 From: Jes.Sorensen@redhat.com To: anthony@codemonkey.ws Date: Fri, 11 Jun 2010 16:02:34 +0200 Message-Id: <1276264954-8392-1-git-send-email-Jes.Sorensen@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: bandwconstruction@frontiernet.net, qemu-devel@nongnu.org, Jes Sorensen Subject: [Qemu-devel] [PATCH] Correct definitions for FD_CMD_SAVE and FD_CMD_RESTORE X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Jes Sorensen Correct definitions for FD_CMD_SAVE and FD_CMD_RESTORE in hw/fdc.c Per https://bugs.launchpad.net/qemu/+bug/424453 the correct values for FD_CMD_SAVE is 0x2e and FD_CMD_RESTORE is 0x4e. Verified against the Intel 82078 manual which can be found at: http://wiki.qemu.org/Documentation/HardwareManuals page 22. Signed-off-by: Jes Sorensen --- hw/fdc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/fdc.c b/hw/fdc.c index 6306496..d911d64 100644 --- a/hw/fdc.c +++ b/hw/fdc.c @@ -370,9 +370,9 @@ enum { FD_CMD_PART_ID = 0x18, FD_CMD_SCAN_LOW_OR_EQUAL = 0x19, FD_CMD_SCAN_HIGH_OR_EQUAL = 0x1d, - FD_CMD_SAVE = 0x2c, + FD_CMD_SAVE = 0x2e, FD_CMD_OPTION = 0x33, - FD_CMD_RESTORE = 0x4c, + FD_CMD_RESTORE = 0x4e, FD_CMD_DRIVE_SPECIFICATION_COMMAND = 0x8e, FD_CMD_RELATIVE_SEEK_OUT = 0x8f, FD_CMD_FORMAT_AND_WRITE = 0xcd,