diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2017-01-13 14:50:57 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2017-01-13 14:50:57 +0000 |
commit | aa9e49f5e7a141dd9039b9ee9729cd10ce25fa32 (patch) | |
tree | db5551a8fa2b6f0b41b1d22d3bab13a235967a65 /usr.sbin/vmd/pci.h | |
parent | 44668cee2c5938c4308919fd4b4d91e6c8a241e9 (diff) |
Add host side of vmmci(4) to vmd(8).
It currently uses the device to request graceful shutdown of a VM on
"vmctl stop myvm" but will be extended for reboot and a other edge cases.
OK mlarkin@
Diffstat (limited to 'usr.sbin/vmd/pci.h')
-rw-r--r-- | usr.sbin/vmd/pci.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/pci.h b/usr.sbin/vmd/pci.h index d0313514810..f410f4dc548 100644 --- a/usr.sbin/vmd/pci.h +++ b/usr.sbin/vmd/pci.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pci.h,v 1.3 2016/10/12 06:56:54 mlarkin Exp $ */ +/* $OpenBSD: pci.h,v 1.4 2017/01/13 14:50:56 reyk 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 7 +#define PCI_MAX_PIC_IRQS 8 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 *, |