debuggers.hg

view extras/mini-os/include/pcifront.h @ 17984:b3d827e63a09

stubdom: PCI passthrough support via PV-PCI

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jul 02 13:54:20 2008 +0100 (2008-07-02)
parents
children 97b4c5c511f0
line source
1 #include <types.h>
2 #include <xen/io/pciif.h>
3 struct pcifront_dev;
4 struct pcifront_dev *init_pcifront(char *nodename);
5 void pcifront_scan(struct pcifront_dev *dev, void (*fun)(unsigned int domain, unsigned int bus, unsigned slot, unsigned int fun));
6 void pcifront_op(struct pcifront_dev *dev, struct xen_pci_op *op);
7 void shutdown_pcifront(struct pcifront_dev *dev);
8 int pcifront_conf_read(struct pcifront_dev *dev,
9 unsigned int dom,
10 unsigned int bus, unsigned int slot, unsigned long fun,
11 unsigned int off, unsigned int size, unsigned int *val);
12 int pcifront_conf_write(struct pcifront_dev *dev,
13 unsigned int dom,
14 unsigned int bus, unsigned int slot, unsigned long fun,
15 unsigned int off, unsigned int size, unsigned int val);