diff options
author | mlarkin <mlarkin@openbsd.org> | 2016-10-12 06:56:54 +0000 |
---|---|---|
committer | mlarkin <mlarkin@openbsd.org> | 2016-10-12 06:56:54 +0000 |
commit | 0eab2803339ae9b5c24e750f95cae065f65704ad (patch) | |
tree | 70fa440316931cf2ddb5fb6a2829c6671cc35e9d /usr.sbin/vmd/pci.h | |
parent | make -t uses the "fattr" syscall utimes(2) for its touch(1) built-in. (diff) | |
download | wireguard-openbsd-0eab2803339ae9b5c24e750f95cae065f65704ad.tar.xz wireguard-openbsd-0eab2803339ae9b5c24e750f95cae065f65704ad.zip |
Allow 4 vio(4) interfaces in each VM. Also fix a bad interrupt assignment that
caused IRQ9 to be shared between the second disk device and the vio(4)s,
which caused poor network performance.
ok reyk, stefan
Diffstat (limited to 'usr.sbin/vmd/pci.h')
-rw-r--r-- | usr.sbin/vmd/pci.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/vmd/pci.h b/usr.sbin/vmd/pci.h index dfeefda16ba..d0313514810 100644 --- a/usr.sbin/vmd/pci.h +++ b/usr.sbin/vmd/pci.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pci.h,v 1.2 2015/11/22 21:51:32 reyk Exp $ */ +/* $OpenBSD: pci.h,v 1.3 2016/10/12 06:56:54 mlarkin Exp $ */ /* * Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org> @@ -25,7 +25,7 @@ #define PCI_BAR_TYPE_IO 0x0 #define PCI_BAR_TYPE_MMIO 0x1 -#define PCI_MAX_PIC_IRQS 5 +#define PCI_MAX_PIC_IRQS 7 typedef int (*pci_cs_fn_t)(int dir, uint8_t reg, uint32_t *data); typedef int (*pci_iobar_fn_t)(int dir, uint16_t reg, uint32_t *data, uint8_t *, @@ -89,3 +89,4 @@ void pci_init(void); int pci_add_device(uint8_t *, uint16_t, uint16_t, uint8_t, uint8_t, uint16_t, uint16_t, uint8_t, pci_cs_fn_t); int pci_add_bar(uint8_t, uint32_t, void *, void *); +uint8_t pci_get_dev_irq(uint8_t); |