qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 15/22] lsi53c895a: LSIState is a PCIDevice is a


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH 15/22] lsi53c895a: LSIState is a PCIDevice is a DeviceHost
Date: Mon, 24 Aug 2009 14:44:26 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2

  void lsi_scsi_attach(DeviceState *host, BlockDriverState *bd, int id)
  {
-    LSIState *s = (LSIState *)host;
+    PCIDevice *d = DO_UPCAST(PCIDevice, qdev, host);
+    LSIState *s = DO_UPCAST(LSIState, dev, d);

LSIState *s = DO_UPCAST(LSIState, dev.qdev, host);

cheers,
  Gerd





reply via email to

[Prev in Thread] Current Thread [Next in Thread]