summaryrefslogtreecommitdiffstats
path: root/sys/dev/sio/sio_puc.c
Commit message (Collapse)AuthorAgeFilesLines
* Allow device hints to wire the unit numbers of devices.jhb2008-11-181-29/+0
| | | | | | | | | | | | | | | | | | | | - An "at" hint now reserves a device name. - A new BUS_HINT_DEVICE_UNIT method is added to the bus interface. When determining the unit number of a device, this method is invoked to let the bus driver specify the unit of a device given a specific devclass. This is the only way a device can be given a name reserved via an "at" hint. - Implement BUS_HINT_DEVICE_UNIT() for the acpi(4) and isa(4) bus drivers. Both of these busses implement this by comparing the resources for a given hint device with the resources enumerated by ACPI/PnPBIOS and wire a unit if the hint resources are a subset of the "real" resources. - Use bus_hinted_children() for adding hinted devices on isa(4) busses now instead of doing it by hand. - Remove the unit kludging from sio(4) as it is no longer necessary. Prodding from: peter, imp OK'd by: marcel MFC after: 1 month
* Add sio_puc_kludge_unit() to stop sio devices originating from pucpeter2007-11-301-0/+29
| | | | | | | stomping on the units intended for the motherboard sio ports. This is no real substitute for the not-yet-committed device wiring enhancements. Code taken from sio's pci attachment.
* Rewrite of puc(4). Significant changes are:marcel2006-04-281-11/+18
| | | | | | | | | | | | | | | | | | | | o Properly use rman(9) to manage resources. This eliminates the need to puc-specific hacks to rman. It also allows devinfo(8) to be used to find out the specific assignment of resources to serial/parallel ports. o Compress the PCI device "database" by optimizing for the common case and to use a procedural interface to handle the exceptions. The procedural interface also generalizes the need to setup the hardware (program chipsets, program clock frequencies). o Eliminate the need for PUC_FASTINTR. Serdev devices are fast by default and non-serdev devices are handled by the bus. o Use the serdev I/F to collect interrupt status and to handle interrupts across ports in priority order. o Sync the PCI device configuration to include devices found in NetBSD and not yet merged to FreeBSD. o Add support for Quatech 2, 4 and 8 port UARTs. o Add support for a couple dozen Timedia serial cards as found in Linux.
* Remove bus_{mem,p}io.h and related code for a micro-optimization on i386nyan2005-05-291-1/+0
| | | | | | and amd64. The optimization is a trivial on recent machines. Reviewed by: -arch (imp, marcel, dfr)
* Add detach methods so we can unload the sio module.imp2003-12-271-0/+1
|
* The record's stuck. The record's stuck. The record's stuck.imp2003-12-261-3/+0
| | | | Remove a rendundant $FreeBSD$
* Use __FBSDID().obrien2003-08-241-0/+3
| | | | Also some minor style cleanups.
* Make 'rclk' a uintptr_t to quiet warnings.jhb2002-11-071-3/+3
|
* Don't probe the interrupt on puc(4) attached devices.phk2002-09-031-1/+1
|
* Remove __P.alfred2002-03-201-2/+2
|
* Add pc98 support.nyan2002-03-081-0/+3
|
* Add the puc (PCI "Universal" Communications) driver. The idea and some ofjhay2002-02-161-0/+89
the structure definitions come from NetBSD to make it easier to share card definitions. The driver only acts as a shim between the pci bus and the sio driver. Later pci parallel ports could also be supported through this driver. Support for most single and multiport pci serial cards should be as simple as adding its definition to pucdata.c Tested with the following pci cards: Moxa Industio CP-114, 4 port RS-232,RS-422/485 Syba Tech Ltd. PCI-4S2P-550-ECP, 4 port RS-232 + 2 parallel ports Netmos NM9835 PCI-2S-550, 2 port RS-232
OpenPOWER on IntegriCloud