summaryrefslogtreecommitdiffstats
path: root/sys/dev/sbus/magma.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Implement kqfilter matching the corresponding poll routine.mpi2020-05-231-1/+8
| | | | ok kettenis@
* magma(4): timeout_add(9) -> timeout_add_msec(9)cheloha2020-02-181-32/+9
| | | | | | | | Remove the tick conversion stuff and use timeout_add_msec(9) directly. Compile-tested by kn@. ok kn@
* Convert infinite sleeps to {m,t}sleep_nsec(9).mpi2019-12-311-4/+5
| | | | ok kn@
* 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@
* Convert sparc drivers bpp and magma to uiomovestefan2016-03-141-6/+6
| | | | Compile test and ok tobiasu@
* First step towards making uiomove() take a size_t size argument:miod2015-02-101-3/+3
| | | | | | | - rename uiomove() to uiomovei() and update all its users. - introduce uiomove(), which is similar to uiomovei() but with a size_t. - rewrite uiomovei() as an uiomove() wrapper. ok kettenis@
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-2/+2
| | | | after discussions with beck deraadt kettenis.
* Move common code for waking up writers on a tty into a function.nicm2010-07-021-9/+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.
* unbreak tree breakage snuck inderaadt2008-11-291-2/+2
|
* Iain Hibbert (plunky@netbsd) removed clauses 3 and 4 from hisray2008-11-291-11/+5
| | | | | | licenses as well. Thanks! "Groovy" deraadt
* Do not #include "foo.h" and keep the whole file between #if NFOO >0 ... #endif,miod2005-07-091-6/+1
| | | | config(8) will not bring us into play unless NFOO > 0 anyway.
* also display the correct priority on sparc64 when failing to registermartin2005-03-081-2/+3
| | | | | | an interrupt ok miod@ deraadt@
* Merge tty_attach() in ttymalloc() and tty_detach() in ttyfree(). The need formiod2003-10-031-4/+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...
* Replace select backends with poll backends. selscan() and pollscan()millert2003-09-231-5/+5
| | | | | | | now call the poll backend. With this change we implement greater poll(2) functionality instead of emulating it via the select backend. Adapted from NetBSD and including some changes from FreeBSD. Tested by many, deraadt@ OK
* 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@
* ansijason2003-07-151-240/+162
|
* These don't need linear mappings either.jason2003-06-271-2/+2
|
* 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@
* const and static cleaningjason2003-03-271-4/+4
|
* be consistant on Hz vs hzmickey2003-02-111-2/+2
|
* Use getpropstringA instead of getpropstring to fetch magma_prom propertyjason2002-03-141-3/+3
| | | | to avoid clobbering sa->sa_name (similiar fix as sparc)
* Add support for the "Magma 2+1HS Sp" (from NetBSD)jason2002-01-251-38/+54
|
* the 1190 and 1400 register maps aren't the same size don't treat them sojason2002-01-121-3/+3
| | | | (basically this was a cut and pasto).
* House cleaning: removing some leftover sparc bits and suchjason2002-01-121-17/+8
|
* Port of Iain Hibbert's magma driver to sparc64jason2002-01-121-0/+1855