summaryrefslogtreecommitdiffstats
path: root/sys/dev/sab
Commit message (Collapse)AuthorAgeFilesLines
* Match "serial" as well as "se".jake2003-03-311-1/+2
|
* Note that MAJOR_AUTO is now the default if d_maj is not initialized. Thisphk2003-03-091-1/+0
| | | | | | | | is more robust and prevents the hijacking of /dev/console for the typical mistake. Remove unneeded MAJOR_AUTO uses, it is only needed explicitly now if the driver source has cross-branch compatibility to old releases.
* Make nokqfilter() return the correct return value.phk2003-03-031-1/+1
| | | | Ditch the D_KQFILTER flag which was used to prevent calling NULL pointers.
* Gigacommit to improve device-driver source compatibility betweenphk2003-03-031-14/+10
| | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl)
* Use MAJOR_AUTO. GC statically assigned majors.jake2003-02-281-3/+1
|
* Change the console interface to pass a "struct consdev *" instead of aphk2003-02-201-4/+4
| | | | | | | | | dev_t to the method functions. The dev_t can still be found at struct consdev *->cn_dev. Add a void *cn_arg element to struct consdev which the drivers can use for retrieving their softc.
* Add the sabtty children devices as unordered. Use the unit numbr ofjake2003-01-271-5/+4
| | | | | | | | | the sabtty device to create its description so that they will be unique for machines with multiple sab chips. This fixes a panic on machines with an rsc card. Tested by: obrien (e250)
* Allow defaulting the console to ttya when it sets to screen and keyboardjake2003-01-261-5/+8
| | | | in the prom but no keyboard is plugged in.
* Use bus_space_subregion to add offsets to bus handles instead of doingjake2003-01-081-2/+4
| | | | it manually.
* Sync with zs.jake2003-01-051-239/+179
| | | | | | | - Fix some bogosity with mixing unit numbers and channels, which would only work for one instance of the device. - Use a simpler scheme for input and output queueing. - Use db_alt_break.
* Fix compiling without DDB and ALT_BREAK_TO_DEBUGGER.jake2002-12-301-0/+2
| | | | Submitted by: marius@alchemy.franken.de
* Setup a default tty mode even if the device is not the console. Don'tjake2002-11-181-10/+4
| | | | | | | reset the chip on open if we're not the console. This fixes running a getty on ttya or ttyb if console input and output devices are screen.
* Remove some unnecessary code. Make the device description nicer. Add ajake2002-11-181-66/+31
| | | | delay in the right place to flush output before switching consoles.
* - Add support for ALT_BREAK_TO_DEBUGGER; this is the only reliable way tojake2002-11-171-21/+103
| | | | | | | | trigger a breakpoint with this chip. - Fiddle the right bits in the cn input and output routines to disable port interrupts and enable visibility of the masked interrupt status bits. - Register a shutdown final event handler to put the chip back in the mode that the prom expects.
* Make this driver work a whole lot better.jake2002-09-081-141/+169
| | | | | | | | | | | | | - Get the initial mode from the prom settings and don't clobber the mode on open. - Copy output into an internal ring buffer instead of accessing the tty outq directly in the interrupt handler. This fixes a problem where garbage would show up in the output stream. - Reset the console port completely and reprogram all the parameters before enabling it. This fixes seemingly random hangs on startup when using a fast interrupt handler. - Add minimal locking in place of spls. - Remove dead code and minor cleanups.
* Ported to FreeBSD.jake2002-08-041-582/+487
|
* Add Jason L. Wright's driver for the SAB82532 serial chip, found in manyjake2002-08-042-0/+1684
sun ultras. Obtained from: OpenBSD
OpenPOWER on IntegriCloud