Received: from eggs.gnu.org ([2001:4830:134:3::10]:57919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bx9jA-0005X7-Lf for qemu-devel@nongnu.org; Thu, 20 Oct 2016 05:33:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bx9j9-0000I8-Vv for qemu-devel@nongnu.org; Thu, 20 Oct 2016 05:33:32 -0400 Date: Thu, 20 Oct 2016 11:33:22 +0200 From: Kevin Wolf Message-ID: <20161020093322.GB5211@noname.redhat.com> References: <1476950128-16541-1-git-send-email-kwolf@redhat.com> <1476950128-16541-2-git-send-email-kwolf@redhat.com> <42d4d35e-ebad-cb9c-0b1c-724b014ae014@greensocs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <42d4d35e-ebad-cb9c-0b1c-724b014ae014@greensocs.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v4 1/4] fdc: Add a floppy qbus List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: KONRAD Frederic Cc: qemu-block@nongnu.org, qemu-devel@nongnu.org, jsnow@redhat.com, armbru@redhat.com, mreitz@redhat.com Am 20.10.2016 um 10:06 hat KONRAD Frederic geschrieben: > Hi, >=20 > Le 20/10/2016 =E0 09:55, Kevin Wolf a =E9crit : > >This adds a qbus to the floppy controller that should contain the flop= py > >drives eventually. At the moment it just exists and is empty. > > > >Signed-off-by: Kevin Wolf > >Reviewed-by: John Snow > >--- > > hw/block/fdc.c | 40 +++++++++++++++++++++++++++++++++++----- > > 1 file changed, 35 insertions(+), 5 deletions(-) > > > >diff --git a/hw/block/fdc.c b/hw/block/fdc.c > >index b79873a..a3afb62 100644 > >--- a/hw/block/fdc.c > >+++ b/hw/block/fdc.c > >@@ -52,6 +52,33 @@ > > } \ > > } while (0) > > > >+ > >+/********************************************************/ > >+/* qdev floppy bus */ > >+ > >+#define TYPE_FLOPPY_BUS "Floppy" >=20 > I don't remember of any TYPE_* starting with a uppercase. Maybe > better using floppy? or floppy-bus? This patch is mostly modelled after IDE. The block related ones are: include/hw/ide/internal.h:#define TYPE_IDE_BUS "IDE" include/hw/scsi/scsi.h:#define TYPE_SCSI_BUS "SCSI" There are more uppercase ones (even non-acronyms), but I admit that I didn't check for other users but just did what IDE does. Kevin