summaryrefslogtreecommitdiffstats
path: root/sys/dev/scc
Commit message (Collapse)AuthorAgeFilesLines
* Fix braino: The cl_range field should not hold the shifted I/Omarcel2006-07-262-3/+3
| | | | | | | space range per channel, but rather the unshifted range. The shifting depends on the bus. The hardcoded shift was specific to the SBus on sparc64. The shifted range is now determined at run-time. This fixes the mac-io attachment.
* Revert previous commit. Spinlocks hold interrupts disabled, somarcel2006-07-251-13/+11
| | | | | | preemption is not possible. Pointed out by: jhb@
* If we have multiple interrupt resources, like for Z8530 clones on themarcel2006-07-241-11/+13
| | | | | | | | | | mac-io bus, we cannot setup FAST interrupt handlers. This because we use spinlocks to protect the hardware and all interrupt resources are assigned the same interrupt handler. When the interrupt handler is invoked for interrupt X, it could be preempted for interrupt Y while it was holding the lock (where X and Y are the interrupt resources corresponding a single instance of this driver). This is a deadlock. By only using a MPSAFE handler in that case we prevent preemption.
* The Z8530 on the MacIO has an interrupt per channel. Deal with thismarcel2006-04-042-32/+57
| | | | | by having interrupt resource variables per channel. We don't set up different interrupt handlers per channel, though.
* Add a MacIO bus attachment. The Z8530 as present in the Mac needsmarcel2006-04-017-18/+101
| | | | | | | | a different register shift and is fed by a different clock than we use for UltraSPARC hardware. To deal with this, the regshft and rclk fields in the class structure are removed and bus frontends now pass the right regshft and rclk to the probe function where they're put in the BAS and passed in to subordinate drivers.
* Fix cut-n-paste braino in previous commit: s/puc/scc/gmarcel2006-03-311-1/+1
| | | | Pointy hat: marcel@
* Add a DRIVER_MODULE declaration for fhc(4) as this attachement ismarcel2006-03-311-0/+1
| | | | | | also used for the FHC bus. Pointed out by: marius@
* Add scc(4), a driver for serial communications controllers. Thesemarcel2006-03-308-0/+1333
controllers typically have multiple channels and support a number of serial communications protocols. The scc(4) driver is itself an umbrella driver that delegates the control over each channel and mode to a subordinate driver (like uart(4)). The scc(4) driver supports the Siemens SAB 82532 and the Zilog Z8530 and replaces puc(4) for these devices.
OpenPOWER on IntegriCloud