diff options
author | Stefan Fritsch <sf@cvs.openbsd.org> | 2015-09-06 17:40:55 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@cvs.openbsd.org> | 2015-09-06 17:40:55 +0000 |
commit | 9bfc06972f9f853bfd0f5b4961be76f7acdc2174 (patch) | |
tree | 60ef8ec07362e1c1774ee68791d5bf51981ad457 /sys/dev | |
parent | ff3854081a5192acb574e1c89e3c784c5f632441 (diff) |
Add support for QEMU PCI serial devices in puc(4)
OK deraadt@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/pucdata.c | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/sys/dev/pci/pucdata.c b/sys/dev/pci/pucdata.c index 90a762d7aa2..16504ea7484 100644 --- a/sys/dev/pci/pucdata.c +++ b/sys/dev/pci/pucdata.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pucdata.c,v 1.97 2015/08/23 23:15:57 deraadt Exp $ */ +/* $OpenBSD: pucdata.c,v 1.98 2015/09/06 17:40:54 sf Exp $ */ /* $NetBSD: pucdata.c,v 1.6 1999/07/03 05:55:23 cgd Exp $ */ /* @@ -2142,5 +2142,30 @@ const struct puc_device_description puc_devs[] = { { PUC_COM_POW2(0), 0x10, 0x0000 }, }, }, + { /* "Redhat QEMU PCI Serial" */ + { PCI_VENDOR_REDHAT, PCI_PRODUCT_REDHAT_SERIAL, 0x0000, 0x0000 }, + { 0xffff, 0xffff, 0x0000, 0x0000 }, + { + { PUC_COM_POW2(0), 0x10, 0x0000 }, + }, + }, + { /* "Redhat QEMU PCI Serial 2x" */ + { PCI_VENDOR_REDHAT, PCI_PRODUCT_REDHAT_SERIAL2, 0x0000, 0x0000 }, + { 0xffff, 0xffff, 0x0000, 0x0000 }, + { + { PUC_COM_POW2(0), 0x10, 0x0000 }, + { PUC_COM_POW2(0), 0x10, 0x0008 }, + }, + }, + { /* "Redhat QEMU PCI Serial 4x" */ + { PCI_VENDOR_REDHAT, PCI_PRODUCT_REDHAT_SERIAL4, 0x0000, 0x0000 }, + { 0xffff, 0xffff, 0x0000, 0x0000 }, + { + { PUC_COM_POW2(0), 0x10, 0x0000 }, + { PUC_COM_POW2(0), 0x10, 0x0008 }, + { PUC_COM_POW2(0), 0x10, 0x0010 }, + { PUC_COM_POW2(0), 0x10, 0x0018 }, + }, + }, }; int puc_ndevs = nitems(puc_devs); |