From: "Jan Beulich" Subject: Re: [PATCH v3 06/13] xen/arm: Introduce a generic way to describe device Date: Mon, 02 Feb 2015 08:04:10 +0000 Message-ID: <54CF3D8A020000780005BBE2@mail.emea.novell.com> References: <1422643768-23614-1-git-send-email-julien.grall@linaro.org> <1422643768-23614-7-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YIBzV-0006WA-7r for xen-devel@lists.xenproject.org; Mon, 02 Feb 2015 08:04:17 +0000 In-Reply-To: <1422643768-23614-7-git-send-email-julien.grall@linaro.org> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: Keir Fraser , ian.campbell@citrix.com, Andrew Cooper , tim@xen.org, stefano.stabellini@citrix.com, xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org >>> On 30.01.15 at 19:49, wrote: > Currently, Xen is supporting PCI and Platform device (based on Device Tree). > > While Xen only supports Platform device on ARM, Xen will gain support of > PCI soon. > > Some drivers, such as IOMMU drivers, may handle PCI and platform device in > the same way. Only few lines of code differs. > > Rather than requesting to provide 2 set of functions (one for PCI and > one for platform device), introduce a generic structure "device" which > is embedded in each specialized device. > > As x86 only supports PCI, introduce a new type device_t which will be an > alias to pci_dev for this architecture. It will avoid to add a new field > for this place. > > Signed-off-by: Julien Grall Non-ARM-specific parts: Acked-by: Jan Beulich albeit this > --- a/xen/include/xen/iommu.h > +++ b/xen/include/xen/iommu.h > @@ -25,6 +25,7 @@ > #include > #include > #include > +#include seems unnecessary as xen/pci.h in already being included here. Jan