summaryrefslogtreecommitdiff
path: root/sys/dev/scc/scc_bfe.h
Commit message (Collapse)AuthorAgeFilesLines
* [PowerPC] Fix scc z8530 driverBrandon Bergren2020-06-141-1/+2
| | | | | | | | | | | | | | | | | | | | | | | Parts of the z8530 driver were still using the SUN channel spacing. This was invalid on PowerMac and QEMU, where the attachment was to escc, not escc-legacy. This means the driver has apparently NEVER worked properly on Macintosh hardware. Add documentation for the channel spacing details, and change to using driver-specific initialization instead of hardcoded spacing so either spacing can be used. Fixes boot hang in QEMU when using the serial console, and fixes use on Xserve serial (and presumably PowerMacs that have a Stealth Serial port or similar) Reviewed by: jhibbits Sponsored by: Tag1 Consulting, Inc. Differential Revision: https://reviews.freebsd.org/D24661 Notes: svn path=/head/; revision=362179
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326255
* Convert rman to use rman_res_t instead of u_longJustin Hibbits2016-01-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | Summary: Migrate to using the semi-opaque type rman_res_t to specify rman resources. For now, this is still compatible with u_long. This is step one in migrating rman to use uintmax_t for resources instead of u_long. Going forward, this could feasibly be used to specify architecture-specific definitions of resource ranges, rather than baking a specific integer type into the API. This change has been broken out to facilitate MFC'ing drivers back to 10 without breaking ABI. Reviewed By: jhb Sponsored by: Alex Perez/Inertial Computing Differential Revision: https://reviews.freebsd.org/D5075 Notes: svn path=/head/; revision=294883
* Const'ify scc_driver_name.Marius Strobl2013-08-021-1/+1
| | | | Notes: svn path=/head/; revision=253902
* With rev 1.24 of sys/powerpc/powermac/macio.c, we now get aMarcel Moolenaar2008-04-261-1/+1
| | | | | | | | | | | | | | | | | total of 6 interrupt resources for scc(4) on macio(4). This is 3 per channel, of which the 1st of each channel is the interrupt associated with the SCC. The other 2 are for DMA operation. Change scc_bfe_attach() to accept an argument that's the number of interrupts per channel (ipc) and change each bus front-end (bfe) to pass that argument through a wrapper for the device_attach method. For now, we only allocate the 1st interrupt of each channel to perserve behaviour. Notes: svn path=/head/; revision=178600
* Support for Freescale QUad Integrated Communications Controller.Rafal Jaworowski2008-03-031-0/+1
| | | | | | | | | | | | | | | | The QUICC engine is found on various Freescale parts including MPC85xx, and provides multiple generic time-division serial channel resources, which are in turn muxed/demuxed by the Serial Communications Controller (SCC). Along with core QUICC/SCC functionality a uart(4)-compliant device driver is provided which allows for serial ports over QUICC/SCC. Approved by: cognet (mentor) Obtained from: Juniper MFp4: e500 Notes: svn path=/head/; revision=176772
* Add method enabled() to the SCC interface. This method can be usedMarcel Moolenaar2007-03-281-0/+1
| | | | | | | | | | | by driver backends to mark individual channels as enabled or not. The default implementation of this method always mark channels as enabled. This method is currently not used, but is added with the PowerQUICC in mind where the 2nd SCC channel can be disabled. Notes: svn path=/head/; revision=167996
* Pass the RID from the bus frontends to the core probe function.Marcel Moolenaar2007-03-221-1/+1
| | | | | | | | | Currently all RIDs are 0, but for PCI devices this typically isn't the case. This change is made with future PCI support in mind. Notes: svn path=/head/; revision=167822
* o break newbus api: add a new argument of type driver_filter_t toPaolo Pisati2007-02-231-2/+2
| | | | | | | | | | | | | | | | bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Reviewed by: many Approved by: re@ Notes: svn path=/head/; revision=166901
* The Z8530 on the MacIO has an interrupt per channel. Deal with thisMarcel Moolenaar2006-04-041-3/+4
| | | | | | | | by having interrupt resource variables per channel. We don't set up different interrupt handlers per channel, though. Notes: svn path=/head/; revision=157492
* Add a MacIO bus attachment. The Z8530 as present in the Mac needsMarcel Moolenaar2006-04-011-3/+1
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=157351
* Add scc(4), a driver for serial communications controllers. TheseMarcel Moolenaar2006-03-301-0/+153
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. Notes: svn path=/head/; revision=157299