summaryrefslogtreecommitdiffstats
path: root/sys/dev/puc/pucdata.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2003-09-06 21:48:50 +0000
committermarcel <marcel@FreeBSD.org>2003-09-06 21:48:50 +0000
commitde27193cae74efc68618f3709bde0e09ae6db4df (patch)
tree3961a1a9eb35343a238a92089a291f7bc416f87b /sys/dev/puc/pucdata.c
parent23e7708b7644e7b21cc957dacef485cba31882b6 (diff)
downloadFreeBSD-src-de27193cae74efc68618f3709bde0e09ae6db4df.zip
FreeBSD-src-de27193cae74efc68618f3709bde0e09ae6db4df.tar.gz
Enhance puc(4) to support uart(4). This includes:
o Introduce PUC_PORT_TYPE_UART so that we can attach to uart(4), o Introduce port sub-types (eg PUC_PORT_UART_NS8250, PUC_PORT_UART_Z8530) to handle different hardware and determine resource sizes. o Introduce two new IVARs: PUC_IVAR_SUBTYPE and PUC_IVAR_REGSHFT. Both are used by uart(4) to get sufficient information to talk to the HW. o Introduce PUC_FLAGS_ALTRES to tell puc(4) to try memory mapped I/O if I/O port space cannot be allocated, or vice versa. o Have ports of type PUC_PORT_TYPE_COM attach to uart(1) if attaching to sio(4) fails (due to not having the sio driver). o Put struct puc_device_description in struct puc_softc instead of having a pointer to a device description in the softc. This allows us to create device descriptions on the fly without having to use malloc() or otherwise have them staticly defined. o Move puc_find_description() from puc.c to puc_pci.c as it's specific to PCI. o Add EBUS and SBUS frontends for use on sparc64. Note that the P in puc stands for PCI, so we kinda mess things up here. It's too soon to worry about it though. We'll know what to do about it in time. NOTE: This commit changes the behaviour of puc(4) to not quieten the device probe and attach for child devices. The uart(4) driver provides additional device description that is valuable to have.
Diffstat (limited to 'sys/dev/puc/pucdata.c')
-rw-r--r--sys/dev/puc/pucdata.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/dev/puc/pucdata.c b/sys/dev/puc/pucdata.c
index 3eea5e3..be8b848 100644
--- a/sys/dev/puc/pucdata.c
+++ b/sys/dev/puc/pucdata.c
@@ -47,8 +47,21 @@ __FBSDID("$FreeBSD$");
#define COM_FREQ DEFAULT_RCLK
+int puc_config_win877(struct puc_softc *);
+
const struct puc_device_description puc_devices[] = {
+ { "Diva Serial [GSP] Multiport UART",
+ NULL,
+ { 0x103c, 0x1048, 0x103c, 0x1282 },
+ { 0xffff, 0xffff, 0xffff, 0xffff },
+ {
+ { PUC_PORT_TYPE_UART, 0x10, 0x00, 0, PUC_FLAGS_MEMORY },
+ { PUC_PORT_TYPE_UART, 0x10, 0x10, 0, PUC_FLAGS_MEMORY },
+ { PUC_PORT_TYPE_UART, 0x10, 0x38, 0, PUC_FLAGS_MEMORY },
+ },
+ },
+
{ "Comtrol RocketPort 550/4 RJ45",
NULL,
{ 0x11fe, 0x8014, 0, 0 },
OpenPOWER on IntegriCloud