cvs commit: src/sys/conf files src/sys/dev/puc puc.c puc_ebus.c
puc_pci.c puc_sbus.c pucdata.c pucvar.h
Marcel Moolenaar
marcel at FreeBSD.org
Sat Sep 6 14:48:51 PDT 2003
marcel 2003/09/06 14:48:50 PDT
FreeBSD src repository
Modified files:
sys/conf files
sys/dev/puc puc.c puc_pci.c pucdata.c pucvar.h
Added files:
sys/dev/puc puc_ebus.c puc_sbus.c
Log:
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.
Revision Changes Path
1.818 +2 -0 src/sys/conf/files
1.26 +80 -69 src/sys/dev/puc/puc.c
1.1 +100 -0 src/sys/dev/puc/puc_ebus.c (new)
1.7 +26 -0 src/sys/dev/puc/puc_pci.c
1.1 +101 -0 src/sys/dev/puc/puc_sbus.c (new)
1.25 +13 -0 src/sys/dev/puc/pucdata.c
1.11 +14 -8 src/sys/dev/puc/pucvar.h
More information about the cvs-src
mailing list