summaryrefslogtreecommitdiffstats
path: root/sys/dev/zs
Commit message (Collapse)AuthorAgeFilesLines
* Fix a signedness problem in zstty_cncheckc(): when no character is ready,tmm2003-07-051-1/+1
| | | | | | -1 should be returned, but it was assigned to an uint8_t (which is extended to an int to form the return value), causing 255 to be returned instead.
* 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.
* Munge the zs sbus attachment to work with fhc. This is a bit of a hack,jake2003-02-191-13/+113
| | | | | but they would otherwise be almost identical so there's not much point in splitting it up further.
* MacIO frontend for the zs driver.benno2003-02-011-0/+296
| | | | | Many thanks to jake for doing the initial driver and for helping me in making this work.
* Set the termios speed based on the tty speed. This allows consoles to work atbenno2003-01-291-1/+1
| | | | | | speeds other than TTYDEF_SPEED. Approved by: jake
* 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.
* Reset the channel in attach if its not the console.jake2003-01-111-0/+7
|
* Split this into bus specific front end(s), so that it can be used by ppc.jake2003-01-084-279/+398
| | | | | | | | | This abstracts out all the differences I could see between the netbsd sparc64 and macppc zs drivers. In particular the offsets of the csr and data registers are different, so we use a separate bus handle for each and use bus_space_subregion to add the bus specific offsets. Requested by: benno
* Use bus_space_subregion to add offsets to bus handles instead of doingjake2003-01-081-2/+4
| | | | it manually.
* - This damnable chip only has 1 status register for both ports, so the bitjake2003-01-021-9/+37
| | | | | | | | | | | positions for the status bits of port a and port b are different. To avoid needing to know which channel the interrupt handler is working on, shift the status bits for port a into the port b bit positions, and always check the port b status bits. This fixes using port b, which I neglected to test before. - Remember to update the channel's tty structure from the passed in termios in the param routine. - Minor style.
* Add a driver for the Zilog 8530 dual uart found in Ultra 1s and Ultra 2s.jake2003-01-012-0/+1629
With a 1 byte transmit fifo, 3 byte receive fifo, and wierd multiplexed I/O designed for a Z80 cpu, this chip redefines suckage. Based on the openbsd and netbsd drivers. Only really works as a console, modem support is not complete since I can't test it.
OpenPOWER on IntegriCloud