summaryrefslogtreecommitdiffstats
path: root/sys/arch/sparc/dev/magma.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Celebrate OpenBSD 6.0 release by retiring the sparc port.tedu2016-09-011-1901/+0
| | | | | You've served us well, good friend, but now it's time to rest. ok deraadt
* 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.
* generic soft interrupts support for sparc. Soft interrupt handlers are nowmiod2009-04-101-36/+5
| | | | | | | | kept in a separate intrhand array, with their own enable bits so that soft interrupts sharing the same level only get invoked if really triggered. Inspired by NetBSD with significant changes. ok kettenis@
* Iain Hibbert (plunky@netbsd) removed clauses 3 and 4 from hisray2008-11-291-10/+3
| | | | | | licenses as well. Thanks! "Groovy" deraadt
* KNF, constify structures, do not wrap the contents under #if NMAGMA > 0 asmiod2004-11-021-461/+548
| | | | if we were still running in pre-4.4BSD config(9) times.
* Switch sparc to evcount; ok deraadt@miod2004-09-291-3/+4
|
* Merge tty_attach() in ttymalloc() and tty_detach() in ttyfree(). The need formiod2003-10-031-3/+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-6/+6
| | | | | | | 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@
* be consistant on Hz vs hzmickey2003-02-111-2/+2
|
* Fix an ancient problem in how sparc interrupts are handled.art2002-04-301-3/+3
| | | | | | | | | | | | | | | | There are many interrupt handlers that assume that they don't need to do any spl protection in their code because the interrupt of some level can't be interrupted by an interrupt of the same level. The problem is that some interrupt handlers have hardware levels that are lower then their "software" levels. Fix this by adding an additional field to struct intrhand that specifies which "software" level an interrupt handler has and blocks that level while handling the interrupt. This new field is initialized in intr_establish which gets an additional argument (which can be -1 meaning that the interrupt handler doesn't need to block any additional level). ok deraadt@
* Rename all PIL_* constants to IPL_* to match other archs and make themart2002-04-281-7/+7
| | | | | usable in MD code in the future. deraadt@ ok
* use getprop, not getpropstring to fetch 'magma_prom' property...jason2002-03-141-4/+10
| | | | ra->ra_name is needed and is the result of getpropstring
* Add support for the "Magma 2+1HS Sp" (from NetBSD)jason2002-01-251-44/+57
|
* for the "Magma LC 2+1 Sp", we have to check the 'clock' property (it'sjason2002-01-111-4/+13
| | | | | 64Mhz vs. the "normal" 25Mhz). This (with the cs4231 patch) makes this board work.
* No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)ho2001-05-161-3/+1
|
* Convert to new timeout API. art@ ok.ho2001-03-241-5/+8
|
* Change splsoftclock to spltty. spltty is probably too paranoid, but it'sart2000-07-051-3/+3
| | | | | | less wrong than using splsoftclock which is defined to be a lowering spl (this doesn't matter on the sparc yet, because spls on sparc are wrong, but it will matter soon).
* OpenBSD-tagart2000-07-051-0/+1
|
* move around ioctl definitionsjason1999-07-251-1/+1
|
* newer fixes from plunky@skate.demon.co.ukderaadt1998-06-021-134/+403
|
* do not assume ttys or bpps exist; plunky@skate.demon.co.ukderaadt1998-05-221-4/+4
|
* magma serial driver; plunky@skate.demon.co.ukderaadt1998-05-201-0/+1561