From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=42490 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGEFf-00010F-75 for qemu-devel@nongnu.org; Wed, 10 Nov 2010 12:14:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGEFe-0005Ab-93 for qemu-devel@nongnu.org; Wed, 10 Nov 2010 12:14:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:21948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGEFe-00059h-1d for qemu-devel@nongnu.org; Wed, 10 Nov 2010 12:14:26 -0500 From: Gleb Natapov Date: Wed, 10 Nov 2010 19:14:09 +0200 Message-Id: <1289409261-5418-3-git-send-email-gleb@redhat.com> In-Reply-To: <1289409261-5418-1-git-send-email-gleb@redhat.com> References: <1289409261-5418-1-git-send-email-gleb@redhat.com> Subject: [Qemu-devel] [PATCHv3 02/14] Introduce new BusInfo callback get_fw_dev_path. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: blauwirbel@gmail.com, alex.williamson@redhat.com, armbru@redhat.com, kvm@vger.kernel.org, mst@redhat.com New get_fw_dev_path callback will be used for build device path usable by firmware in contrast to qdev qemu internal device path. Signed-off-by: Gleb Natapov --- hw/qdev.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/qdev.h b/hw/qdev.h index 9f90efe..dc669b3 100644 --- a/hw/qdev.h +++ b/hw/qdev.h @@ -49,12 +49,14 @@ struct DeviceState { typedef void (*bus_dev_printfn)(Monitor *mon, DeviceState *dev, int indent); typedef char *(*bus_get_dev_path)(DeviceState *dev); +typedef char *(*bus_get_fw_dev_path)(DeviceState *dev); struct BusInfo { const char *name; size_t size; bus_dev_printfn print_dev; bus_get_dev_path get_dev_path; + bus_get_fw_dev_path get_fw_dev_path; Property *props; }; -- 1.7.1