summaryrefslogtreecommitdiff
path: root/sys/dev/ofw/ofcons.c
AgeCommit message (Collapse)Author
2011-07-26convert to device_t, cfdata_t and CFATTACH_DECL_NEW.mrg
2011-04-24Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() forrmind
consistency. Remove some unnecessary malloc.h inclusions as well.
2009-05-29Pass correct argument to q_to_b().rjs
2009-05-12struct device * -> device_t, no functional changes intended.cegger
2009-05-12struct cfdata * -> cfdata_t, no functional changes intended.cegger
2009-03-18Ansify function definitions w/o arguments. Generated with sed.cegger
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-01-03remove extra semicolons.yamt
2008-06-12use device_lookup_private to get softccegger
2007-11-19- Factor out too many copies of the same bit of tty code.ad
- Fix another tty signalling/wakeup problem.
2007-10-18Initialise the callbacks for tty.t_rstrt_ch in ttymallocjoerg
as all drivers but Sun/SPARC's kd.c use the same arguments. Separate callout_reset into callout_schedule and the initial callout_setfunc using that.
2007-07-09Merge some of the less invasive changes from the vmlocking branch:ad
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
2007-03-04Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.christos
2006-10-01Adapt MD code to KAUTH_DEVICE_TTY_OPEN, batch #2 from Matt Fleming, thanks!elad
Also, add forgotten splx() calls in some places.
2006-07-21- Use the LWP cached credentials where sane.ad
- Minor cosmetic changes.
2006-05-15- include kauth.h for kauth_authorize_generic.yamt
- whitespace.
2006-05-14integrate kauth.elad
2006-03-29Use device_private().thorpej
2005-12-11merge ktrace-lwp.christos
2005-02-27nuke trailing whitespaceperry
2005-02-04de-__Pperry
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-02Add trailing ; to CFATTACH_DECL.thorpej
2002-09-30Use 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-11-13add RCSIDslukem
2001-08-25Make this compile with -Wmissing-prototypes by adding appropriatematt
cdev_decl, bdev_decl, cons_decl
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.
2000-11-02Adapt to the new line discipline scheme.eeh
2000-04-14Fix some callout fallout. Hi Jason!scw
2000-03-23New callout mechanism with two major improvements over the oldthorpej
timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel. The old timeout()/untimeout() API has been removed from the kernel.
1998-03-21Replace TS_WOPEN with t_wopen, per mail on tech-kern.mycroft
1998-02-24Several things:mycroft
Clean up the name space here a bit. Add a `busname' element to struct ofprobe (now struct ofbus_attach_args), and check against it. Nuke `ofroot'. Rename the `openfirm' attribute to `ofbus'.
1998-01-26of_decode_int() the stdin and stdout properties.cgd
1998-01-12Update for config changes.thorpej
1997-04-28DTRT if OF_read() returns 0 when no data is available.mycroft
1997-04-16Update for no __BROKEN_INDIRECT_CONFIG.thorpej
1996-10-13backout kprintf changeschristos
1996-10-10printf -> kprintf, sprintf -> ksprintfchristos
1996-09-30PowerPC portws