From: Espen Skoglund Subject: [PATCH 5/7] PCI device register/unregister + pci_dev cleanups Date: Fri, 4 Jul 2008 17:39:37 +0100 Message-ID: <18542.21065.136523.74216@gargle.gargle.HOWL> References: <18542.20587.995970.962113@gargle.gargle.HOWL> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <18542.20587.995970.962113@gargle.gargle.HOWL> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Add hypercall for adding and removing PCI devices Signed-off-by: Joshua LeVasseur -- physdev.h | 11 +++++++++++ 1 file changed, 11 insertions(+) -- --- a/include/xen/interface/physdev.h Fri Jun 27 16:07:56 2008 +0100 +++ b/include/xen/interface/physdev.h Thu Jul 03 18:02:39 2008 -0400 @@ -154,6 +154,17 @@ typedef struct physdev_unmap_pirq physdev_unmap_pirq_t; DEFINE_XEN_GUEST_HANDLE(physdev_unmap_pirq_t); +#define PHYSDEVOP_manage_pci_add 15 +#define PHYSDEVOP_manage_pci_remove 16 +struct physdev_manage_pci { + /* IN */ + uint8_t bus; + uint8_t devfn; +}; + +typedef struct physdev_manage_pci physdev_manage_pci_t; +DEFINE_XEN_GUEST_HANDLE(physdev_manage_pci_t); + /* * Argument to physdev_op_compat() hypercall. Superceded by new physdev_op() * hypercall since 0x00030202.