mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
stubdom: PCI passthrough support via PV-PCI
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
This commit is contained in:
1 parent
dac6f79804
commit
de4e084064
11 files changed
+638
-7
No files matched your search
@@ -0,0 +1,15 @@
|
||||
#include <types.h>
|
||||
#include <xen/io/pciif.h>
|
||||
struct pcifront_dev;
|
||||
struct pcifront_dev *init_pcifront(char *nodename);
|
||||
void pcifront_scan(struct pcifront_dev *dev, void (*fun)(unsigned int domain, unsigned int bus, unsigned slot, unsigned int fun));
|
||||
void pcifront_op(struct pcifront_dev *dev, struct xen_pci_op *op);
|
||||
void shutdown_pcifront(struct pcifront_dev *dev);
|
||||
int pcifront_conf_read(struct pcifront_dev *dev,
|
||||
unsigned int dom,
|
||||
unsigned int bus, unsigned int slot, unsigned long fun,
|
||||
unsigned int off, unsigned int size, unsigned int *val);
|
||||
int pcifront_conf_write(struct pcifront_dev *dev,
|
||||
unsigned int dom,
|
||||
unsigned int bus, unsigned int slot, unsigned long fun,
|
||||
unsigned int off, unsigned int size, unsigned int val);
|
||||
@@ -9,6 +9,9 @@
|
||||
#define MAP_PRIVATE 0x02
|
||||
#define MAP_ANON 0x20
|
||||
|
||||
/* Pages are always resident anyway */
|
||||
#define MAP_LOCKED 0x0
|
||||
|
||||
#define MAP_FAILED ((void*)0)
|
||||
|
||||
void *mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset);
|
||||
|
||||