summaryrefslogtreecommitdiffstats
path: root/sys/arch/sparc64/dev/sab.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sparc64: lom(4), sab(4), vldcp(4): tsleep -> tsleep_nsec(9); ok kn@ visa@cheloha2019-10-121-4/+4
|
* ttysleep(): drop unused timeout parametercheloha2019-07-191-2/+2
| | | | | | | | All callers sleep indefinitely. With help from visa@. ok visa@, ratchov@, kn@
* Remove almost unused `flags' argument of suser().mpi2018-02-191-3/+3
| | | | | | | The account flag `ASU' will no longer be set but that makes suser() mpsafe since it no longer mess with a per-process field. No objection from millert@, ok tedu@, bluhm@
* Don't pull in <sys/file.h> just to get fcntl.hguenther2017-12-301-2/+2
| | | | ok deraadt@ krw@
* If you use sys/param.h, you don't need sys/types.hderaadt2017-09-081-2/+1
|
* Rename Debugger() into db_enter().mpi2017-04-301-2/+2
| | | | | | | Using a name with the 'db_' prefix makes it invisible from the dynamic profiler. ok deraadt@, kettenis@, visa@
* Enforce ca_activate tree-walks over the entire heirarchy for all events,deraadt2013-05-301-8/+24
| | | | | | cleaning up some shutdown-hook related code on the way. (A few drivers related to sparc are still skipped at kettenis' request) ok kettenis mlarkin, tested by many others too
* 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
* 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.
* Match serial devices on PRIMEPOWER 650.kettenis2008-05-241-2/+3
|
* Use getpropspeed() to get console speed. Add code to handle "ssp-console" andkettenis2008-03-011-14/+15
| | | | "ssp-control" as well.
* Make sabtty(4) adopt the speed configured in OpenFirmware when it is thekettenis2008-01-151-5/+33
| | | | | | console. ok miod@
* Be uniform with console message from other devicesderaadt2008-01-081-5/+5
|
* Remove eeprom.h.kettenis2007-11-141-2/+1
|
* Remove bsd_openprom.h.kettenis2007-11-131-2/+1
|
* make sure the IMR values are visible when we drop back into the promjason2006-05-281-1/+2
|
* make the ISR bits visible so we can poll them in cngetc (w/out cnpollc).jason2006-05-281-6/+8
| | | | I still hate this chip.
* Wait for output to be drained when sabtty is the console output port;miod2004-07-171-2/+7
| | | | | produces nicer (correct) kernel output upon bootup. Reported in NetBSD PR #26226; tested by dlg@ and I.
* Don't need linear mappings here eitherjason2003-12-161-3/+3
|
* Merge tty_attach() in ttymalloc() and tty_detach() in ttyfree(). The need formiod2003-10-031-6/+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-3/+3
| | | | | | | | | 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@
* Add a "where" argument to the sparc64 interrupt code. This lets ushenric2003-06-241-2/+2
| | | | | | | associate a name with each interrupt handler. This is not visible outside the kernel (yet). ok jason@
* nuke terms 3 & 4jason2003-06-021-6/+1
|
* The sab driver sometimes gets out of sync with the hardware. This canhenric2003-05-131-35/+46
| | | | | | cause the serial console to hang. ok jason@
* Add support for the Sun Enterprise 450henric2003-02-171-6/+12
| | | | | | | | | | | | | | | | | | | | | | Reduce the size of a GENERIC kernel by ~190k Remove the nasty pointer/bus_space_handle_t casts Adds debug bus_space code including the ability to trace bus operations (it actually works now). The following rules are now followed (and verfified by the debug code): 1. A "bus_space_handle_t" may only be used with the "bus_space_tag_t" that created it. 2. Only "bus_space_map()" may create "bus_space_handle_t"s. 3. A "bus_space_handle_t" may not be modified after it has been created (other than being destroyed by "bus_space_unmap()"). Thanks to help from mcbride, marc, jason, drahn, to anyone that might have slipped my mind at the moment. ok jason@, deraadt@
* Fix console determination; based on discussion in port-sparc64@netbsdjason2002-09-231-7/+7
|
* Match compatible sab82532jason2002-07-181-1/+5
|
* Credit DARPA/USAF appropriately.jason2002-04-081-1/+6
|
* First round of __P removal in sysmillert2002-03-141-37/+37
|
* o Remove some debugging prints (most of them wouldn't work anyway)jason2002-01-181-32/+100
| | | | | | o Add support for draining the XFIFO on last close o Debounce the break sequence by looking for the terminate side of the break instead of the detection side. o wrap the parameter setup in splhigh (lest we get caught with the chip powered down)
* Better handling of transitions between our mode and what the prom wants.jason2002-01-171-39/+42
|
* add polled input handling and remove dead codejason2002-01-171-15/+108
| | | | | | Also add support for Break->DDB handling on console [Works in ddb including going back and forth to the PROM, but locks up after printing the 'swap on ...' line]
* Add console handling (output works, input needs more work)jason2002-01-171-2/+160
| | | | [Very close to being able to enable 'se' in GENERIC...]
* SAB82532 driver (missing console stuff, but working as a generic ttyjason2001-10-281-0/+1036
device). Based on datasheet from Infineon (another datasheet with non-trivial errors) and info from the linux driver for same chip.