summaryrefslogtreecommitdiff
path: root/sys/arch/atari/dev/zs.c
AgeCommit message (Collapse)Author
2023-01-06TAB/spaces/indents cleanup.tsutsui
2022-06-26Make local devsw functions static.tsutsui
No visible regression on TT030.
2021-01-03malloc(9) -> kmem(9)thorpej
2018-02-08Typos.dholland
2014-07-25Add d_discard to all struct cdevsw instances I could find.dholland
All have been set to "nodiscard"; some should get a real implementation.
2014-03-24- remove unusedchristos
- use cpu_{g,s}etmodel() (not committed yet)
2014-03-16Change (mostly mechanically) every cdevsw/bdevsw I can find to usedholland
designated initializers. I have not built every extant kernel so I have probably broken at least one build; however I've also found and fixed some wrong cdevsw/bdevsw entries so even if so I think we come out ahead.
2011-06-30dependant -> dependentwiz
2011-04-24Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() forrmind
consistency. Remove some unnecessary malloc.h inclusions as well.
2010-04-09- establish zs interrupts via common intr_establish() function rather thantsutsui
hardcording them in locore.s and vector.s - also make interrupt handlers take per unit softc and put a softint cookie into softc (though atari machines have only one zs) - tweak some structures as per MI z8530sc driver Tested on TT030 using sl(4) on zs.
2010-04-09minor constifytsutsui
2010-04-09More KNF.tsutsui
2010-04-09Split device_t/softc.tsutsui
2010-04-09Rename variables and members of softc for readability.tsutsui
2010-04-09Remove unnecessary volatile keyword against struct zschan.tsutsui
(volatile against structure member is enough)
2010-04-09- misc KNFtsutsui
- remove `register' keyword from variable declarations
2010-04-09Include ioconf.h for struct cfdriver.tsutsui
2009-07-19Replace one missed bcopy(9) with memcpy(9).tsutsui
2009-07-19Remove extra whitespace added by a dumb tool which replaced bcopy with memcpy.tsutsui
2009-03-18bcopy -> memcpycegger
2009-03-14ANSIfy another 1261 function definitions.dsl
The only ones left in sys are beyond by sed script! (or in sys/dist or sys/external) Mostly they have function pointer parameters.
2009-03-14Change about 4500 of the K&R function definitions to ANSI ones.dsl
There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
2009-03-14Remove all the __P() from sys (excluding sys/dist)dsl
Diff checked with grep and MK1 eyeball. i386 and amd64 GENERIC and sys still build.
2009-01-28Remove sicallback to use the MI softint(9) APIs directly - from Tsutsuitjam
2008-06-11Use device_private() and device_lookup_privat() to get softc.tsutsui
2008-04-29Convert to new 2 clause licensemartin
2008-01-08Convert Atari to generic TODR and timecounter.joerg
2007-11-19- Factor out too many copies of the same bit of tty code.ad
- Fix another tty signalling/wakeup problem.
2007-03-06Make TX buffer (uint8_t *) and remove an unnecessary cast.tsutsui
2007-03-04Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.christos
2006-10-01More from Matt Fleming:elad
Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.
2006-10-01Adapt MD code to KAUTH_DEVICE_TTY_OPEN. Patch from Matt Fleming, thanks!elad
2006-08-04More gcc4 "uninitilized" variables.mhitch
2006-07-23Use the LWP cached credentials where sane.ad
2006-05-14integrate kauth.elad
2006-03-08Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.lukem
Add a space between numbers and Hz unit.
2005-12-11merge ktrace-lwp.christos
2005-09-06Change the driver open function's conditional for overriding exclusive ttykleink
use from checking the proc's uid to suser(9), and account for the use of privileges. Noted by David Holland in PR kern/31126.
2005-06-04Adapt to compiling with -Wshadow and -Wcast-qual, by adding consthe
qualification in places and renaming a few local variables. Also adds a couple uses of __UNVOLATILE() to allow passing volatile variables to functions wanting e.g. caddr_t.
2004-03-25Licence cleanup (suggested by wiz).leo
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-07-15__KERNEL_RCSID()lukem
2002-10-23merge kqueue branch into -currentjdolecek
kqueue provides a stateful and efficient event notification framework currently supported events include socket, file, directory, fifo, pipe, tty and device changes, and monitoring of processes and signals kqueue is supported by all writable filesystems in NetBSD tree (with exception of Coda) and all device drivers supporting poll(2) based on work done by Jonathan Lemon for FreeBSD initial NetBSD port done by Luke Mewburn and Jason Thorpe
2002-10-02Use CFATTACH_DECL().thorpej
2002-09-27Declare all cfattach structures const.thorpej
2002-09-06Merge the gehenna-devsw branch into the trunk.gehenna
This merge changes the device switch tables from static array to dynamically generated by config(8). - All device switches is defined as a constant structure in device drivers. - The new grammer ``device-major'' is introduced to ``files''. device-major <prefix> char <num> [block <num>] [<rules>] - All device major numbers must be listed up in port dependent majors.<arch> by using this grammer. - Added the new naming convention. The name of the device switch must be <prefix>_[bc]devsw for auto-generation of device switch tables. - The backward compatibility of loading block/character device switch by LKM framework is broken. This is necessary to convert from block/character device major to device name in runtime and vice versa. - The restriction to assign device major by LKM is completely removed. We don't need to reserve LKM entries for dynamic loading of device switch. - In compile time, device major numbers list is packed into the kernel and the LKM framework will refer it to assign device major number dynamically.
2002-03-17Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY foratatat
indicating an unhandled "command". ERESTART is -1, which can lead to confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been placed at -4. No ioctl code should now return -1 anywhere. The ioctl() system call is now properly restartable.
2001-05-02Add `l_poll' to `struct linesw' and provide an xxxpoll() entry pointscw
in each tty driver to indirect through it. This allows tty line-disciplines to handle poll(2) system calls.
2001-02-01Fix fallout from lastest tty changes.leo
2000-11-02Adapt to new line discipline scheme.eeh