summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/z8530tty.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Do what the comments suggest and check for port-[ab]-ignore-cd properties,miod2015-02-051-1/+6
| | | | and if so, force soft carrier mode.
* Some reallocarray() use; review Jean-Philippe Ouellet, patrick keshishianderaadt2014-07-131-3/+3
| | | | ok tedu
* Unify the zs tty driver.sebastia2013-04-211-697/+1120
| | | | | | | | | | Most of the hard work by mpi@, who provided the initial diff. Fixes for sparc from myself. Tested on sgi and sparc myself. Compiles and detects zstty on my powerbook, compile tested on sparc64 by me. Real testing with zs device on sparc64 by miod@ who also gave a lot of help and feedback. ok miod@, mpi@
* Move common code for waking up writers on a tty into a function.nicm2010-07-021-8/+2
| | | | ok deraadt matthew millert
* Allow tty drivers to request larger buffers at attach time using aderaadt2010-06-281-2/+2
| | | | | | | | max-baud-rate hint. Adjust TTYHOG (the nearly full logic) to this new situation. The larger buffers are required by the very high speed KDDI devices in Japan (CF com, or USB ucom) so those are the only two drivers which currently ask for a larger buffer size. ok yasuoka miod
* Some of the line disciplines want to check for suser. Better to pass themtedu2010-04-121-3/+3
| | | | a process instead of using curproc. ok deraadt
* Every selwakeup() should have a matching KNOTE() (even if kqueue isn'tnicm2009-11-091-2/+1
| | | | | | | | | | supported it doesn't do any harm), so put the KNOTE() in selwakeup() itself and remove it from any occurences where both are used, except one for kqueue itself and one in sys_pipe.c (where the selwakeup is under a PIPE_SEL flag). Based on a diff from tedu. ok deraadt
* Use suser when possible. Suggested by miod@.fgsch2009-10-311-2/+2
| | | | miod@ deraadt@ ok.
* Add missing KNOTE() calls after selwakeup(), until we decide if the KNOTE()deraadt2009-10-311-1/+2
| | | | | | | calls can go directly into selwakeup() safely long discussion with nicm, murmers of consent from tedu and miod, noone else seems to care of kqueue is busted as long as it makes their sockets move data fast... pretty sad.
* Print consoleness the canonical way.kettenis2008-01-181-2/+2
|
* 2 lines of code in most drivers, to do the timestamping; ok miod kettenisderaadt2006-04-271-1/+5
|
* First step towards more sane time handling in the kernel -- this changestholo2004-06-211-3/+3
| | | | | | | | things such that code that only need a second-resolution uptime or wall time, and used to get that from time.tv_secs or mono_time.tv_secs now get this from separate time_t globals time_second and time_uptime. ok art@ niklas@ nordin@
* Merge tty_attach() in ttymalloc() and tty_detach() in ttyfree(). The need formiod2003-10-031-2/+1
| | | | | | | | | separate tty registering is gone now that sparc has switched to wscons, and this makes the code less error-prone. Also, remove tests for ttymalloc() failure, since it uses M_WAITOK. ok millert@ deraadt@, tested by various people as well besides me...
* change arguments to suser. suser now takes the process, and a flagstedu2003-08-151-2/+2
| | | | | | | | | argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* First round of __P removal in sysmillert2002-03-141-11/+11
|
* more missing prototypes and other warnings fixedkstailey1997-01-151-11/+14
|
* add "return (0)" to end of zsstop() since it's not a void function anymorekstailey1996-12-161-1/+2
|
* void zsstop() -> int zsstop()kstailey1996-12-031-2/+2
|
* Adaption to new bus.h from NetBSD. Various driver has been updated toniklas1996-11-281-8/+15
| | | | | NetBSD 961107 state. Other has not, partly because sometimes the bus.h changes was coupled with other changes.
* fix a type mismatchderaadt1996-06-181-3/+3
|
* tty_attach()deraadt1996-06-101-2/+3
|
* sync 0521deraadt1996-05-261-135/+279
|
* partial sync with netbsd 960418, more to comederaadt1996-04-211-108/+145
|
* NetBSD 960317 mergeniklas1996-04-181-6/+9
|
* z8530 reorganization from gwr (which i think isn't nearly as machinederaadt1996-01-311-0/+1042
independent or correct as he thinks it is)