From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Senr3-0005YA-AM for qemu-devel@nongnu.org; Wed, 13 Jun 2012 09:43:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Senqw-0004MB-Bn for qemu-devel@nongnu.org; Wed, 13 Jun 2012 09:43:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Senqw-0004Lw-40 for qemu-devel@nongnu.org; Wed, 13 Jun 2012 09:43:18 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q5DDhG5l019179 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 13 Jun 2012 09:43:16 -0400 From: Pavel Hrdina Date: Wed, 13 Jun 2012 15:43:10 +0200 Message-Id: Subject: [Qemu-devel] [PATCH v5 0/4] fdc: fix/rewrite seek, media_changed and interrupt handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Pavel Hrdina The fd_seek will return 'track is invalid' if there is no media in drive. Implied seek should have the same behavior as normal seek. We will use the fd_seek function instead of a direct modification of head, track and sector values. The result value is used only while read/write commands were issued. Fixed sense interrupt status command. v5: - correction of misspelled words v4: - fixed coding style - better bit clearing in 'fdctrl_handle_sense_interrupt_status' v3: - added fdc-test - rewrited seek and media_changed handling - fixed interrupt status handling v2: - better way to detect media missing Pavel Hrdina (4): fdc: fix implied seek while there is no media in drive fdc-test: introduced qtest read_without_media fdc: rewrite seek and DSKCHG bit handling fdc: fix interrupt handling hw/fdc.c | 106 ++++++++++++++++++++++++++++++------------------------ tests/fdc-test.c | 66 +++++++++++++++++++++++++++++++++ 2 files changed, 125 insertions(+), 47 deletions(-) -- 1.7.7.6