History log of /src/sys/arch/sparc/dev/kd.c |
Revision | | Date | Author | Comments |
1.54 |
| 25-Jul-2014 |
dholland | Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
|
1.53 |
| 16-Mar-2014 |
dholland | branches: 1.53.2; Change (mostly mechanically) every cdevsw/bdevsw I can find to use 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.
|
1.52 |
| 19-Oct-2013 |
mrg | - remove unused but set variables. - use __USE() where necessary. - remove useless 'volatile' markers
kd.c:consinit() might be wrong for old proms, but i've not changed it really.
|
1.51 |
| 27-Oct-2012 |
chs | branches: 1.51.2; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.50 |
| 30-Jul-2012 |
christos | branches: 1.50.2; move cn_tab initializationt to cpu_startup
|
1.49 |
| 24-Apr-2011 |
rmind | branches: 1.49.4; Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for consistency. Remove some unnecessary malloc.h inclusions as well.
|
1.48 |
| 28-Apr-2008 |
martin | branches: 1.48.22; 1.48.28; Remove clause 3 and 4 from TNF licenses
|
1.47 |
| 19-Nov-2007 |
ad | branches: 1.47.14; 1.47.16; 1.47.18; - Factor out too many copies of the same bit of tty code. - Fix another tty signalling/wakeup problem.
|
1.46 |
| 18-Oct-2007 |
joerg | branches: 1.46.2; Initialise the callbacks for tty.t_rstrt_ch in ttymalloc 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.
|
1.45 |
| 17-Oct-2007 |
garbled | Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA cpu based PPC ports that focused on sharing as much code as possible between the various ports to eliminate near-identical copies of files in every tree. Additionally there is a new PIC system that unifies the interface to interrupt code for all different OEA ppc arches. The work for this branch was done by a variety of people, too long to list here.
TODO: bebox still needs work to complete the transition to -renovation. ofppc still needs a bunch of work, which I will be looking at. ev64260 still needs to be renovated amigappc was not attempted.
NOTES: pmppc was removed as an arch, and moved to a evbppc target.
|
1.44 |
| 09-Jul-2007 |
ad | branches: 1.44.8; 1.44.10; 1.44.14; Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
1.43 |
| 04-Mar-2007 |
christos | branches: 1.43.2; 1.43.4; 1.43.10; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.42 |
| 16-Feb-2007 |
ad | branches: 1.42.2; More spllowersoftclock() fallout.
|
1.41 |
| 01-Oct-2006 |
elad | Adapt MD code to KAUTH_DEVICE_TTY_OPEN. Patch from Matt Fleming, thanks!
|
1.40 |
| 23-Jul-2006 |
ad | branches: 1.40.4; 1.40.6; Use the LWP cached credentials where sane.
|
1.39 |
| 14-May-2006 |
elad | integrate kauth.
|
1.38 |
| 11-Dec-2005 |
christos | branches: 1.38.4; 1.38.6; 1.38.8; 1.38.10; 1.38.12; merge ktrace-lwp.
|
1.37 |
| 16-Nov-2005 |
uwe | Drop trailing whitespace.
|
1.36 |
| 14-Nov-2005 |
uwe | ANSIify. Same code is generated. While here, collect in one place prototypes that were scattered throughout the file, apply static to prom_cn* consistently.
|
1.35 |
| 06-Sep-2005 |
kleink | branches: 1.35.6; Change the driver open function's conditional for overriding exclusive tty 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.
|
1.34 |
| 30-Jun-2005 |
macallan | branches: 1.34.2; Allow sparc64-style attachment of mouse and keyboard via zstty, needed for wscons support. Reviewed by uwe.
|
1.33 |
| 03-Jun-2005 |
martin | Sprinkle some const
|
1.32 |
| 17-Mar-2004 |
pk | Rename PROM_getprop*() => prom_getprop*().
|
1.31 |
| 16-Mar-2004 |
pk | Use prom_getoption() and drop home-grown string-to-integer conversion code.
|
1.30 |
| 27-Aug-2003 |
uwe | cc_callout does not belong to struct cons_channel, as it's only used by sparc for PROM console input channel. Demote it to kd.c as a static variable.
While there, use callout_schedule instead of callout_reset to reschedule the PROM polling callout, and init prom_cons_channel statically.
|
1.29 |
| 27-Aug-2003 |
uwe | Kill __P().
|
1.28 |
| 25-Aug-2003 |
uwe | Undo previous as it broke things.
There are some scattered implicit RASTERCONSOLE dependencies, so there should be a better way.
|
1.27 |
| 24-Aug-2003 |
uwe | #include "opt_rcons.h"
|
1.26 |
| 15-Jul-2003 |
lukem | __KERNEL_RCSID()
|
1.25 |
| 29-Jun-2003 |
fvdl | branches: 1.25.2; Back out the lwp/ktrace changes. They contained a lot of colateral damage, and need to be examined and discussed more.
|
1.24 |
| 29-Jun-2003 |
darrenr | More changes for providing lwpid for ktrace (sparc GENERIC built)
|
1.23 |
| 23-Oct-2002 |
jdolecek | merge kqueue branch into -current
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
|
1.22 |
| 06-Sep-2002 |
gehenna | Merge the gehenna-devsw branch into the trunk.
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.
|
1.21 |
| 17-Mar-2002 |
atatat | branches: 1.21.4; Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for 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.
|
1.20 |
| 26-Sep-2001 |
eeh | branches: 1.20.4; getprop* -> PROM_getprop*
|
1.19 |
| 11-Jun-2001 |
pk | branches: 1.19.2; 1.19.4; Use NFB from "fb.h" to include console framebuffer support.
|
1.18 |
| 26-May-2001 |
pk | Pull in "opt_kgdb.h"; see PR#13036.
|
1.17 |
| 02-May-2001 |
scw | Add `l_poll' to `struct linesw' and provide an xxxpoll() entry point in each tty driver to indirect through it.
This allows tty line-disciplines to handle poll(2) system calls.
|
1.16 |
| 02-Nov-2000 |
eeh | branches: 1.16.2; Adapt to new line discipline scheme.
|
1.15 |
| 12-Oct-2000 |
christos | add missing kd_attach_input routine. someone needs to clean this shit up.
|
1.14 |
| 22-Aug-2000 |
pk | Use the framebuffer drivers & header files that now live in /sys/dev/sun.
|
1.13 |
| 04-Jul-2000 |
pk | Pass correct argument to the console channel close routine.
|
1.12 |
| 21-May-2000 |
eeh | branches: 1.12.4; Need to provide a consdev to the cons_attach_input call now.
|
1.11 |
| 19-May-2000 |
eeh | Fix the sparc64 console.
Unlike the other Sun machines, UltraSPARCs can have consoles run on different chips than zs, so we need to support them. So, here we go:
Add a new PROM console driver with a major number and everything. This is the default driver if nothing else attaches. It does not use the keyboard driver since the PROM translates keystrokes itself. (Unfortunately it also swallows L1-A).
Have the keyboard driver take over the console when it attaches on a serial port. When a serial port detects a keyboard and attaches the keyboard driver, it needs to provide a set of consdev vectors. They keyboard driver will use those to send I/O to the keyboard and mouse.
|
1.10 |
| 24-Mar-2000 |
hannken | Fix typos from last commit (callout).
|
1.9 |
| 23-Mar-2000 |
thorpej | New callout mechanism with two major improvements over the old 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.
|
1.8 |
| 20-Mar-2000 |
pk | Call rcons_ttyinit() on first open.
|
1.7 |
| 19-Mar-2000 |
pk | Revise console device handling: * do not require a `zs' driver for console handling * run the console on PROM primitives until a device recognises itself as a console device during normal autoconfiguration. * allow (keyboard) devices to take over the input channel of the PROM primitive-based console device.
As a result, consinit() is much simplified and does no longer have to "detect" devices to setup a working console device. This complexity has moved to individual drivers which interpret the PROM information after they have attached to decide whether or not to act as a console.
|
1.6 |
| 06-Mar-2000 |
thorpej | - Implement cnbell() -- ring the console bell. The cn_bell entrypoint is optional. - Add cn_bell to statically allocated consdevs as appropriate.
|
1.5 |
| 05-Aug-1999 |
thorpej | branches: 1.5.2; Change the semantics of splsoftclock() to be like other spl*() functions, that is priority is rasied. Add a new spllowersoftclock() to provide the atomic drop-to-softclock semantics that the old splsoftclock() provided, and update calls accordingly.
This fixes a problem with using the "rnd" pseudo-device from within interrupt context to extract random data (e.g. from within the softnet interrupt) where doing so would incorrectly unblock interrupts (causing all sorts of lossage).
XXX 4 platforms do not have priority-raising capability: newsmips, sparc, XXX sparc64, and VAX. This platforms still have this bug until their XXX spl*() functions are fixed.
|
1.4 |
| 14-Feb-1999 |
pk | Use the PROMLIB interface.
|
1.3 |
| 08-Jan-1998 |
mrg | don't call fb_unblank if NFB < 0
|
1.2 |
| 03-Dec-1997 |
mjacob | handle case of no keyboard configured
|
1.1 |
| 18-Oct-1997 |
gwr | Use common zs code.
|
1.5.2.2 |
| 22-Nov-2000 |
bouyer | Sync with HEAD.
|
1.5.2.1 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago A i386 GENERIC kernel compiles without the siop, ahc and bha drivers (will be updated later). i386 IDE/ATAPI and ncr work, as well as sparc/esp_sbus. alpha should work as well (untested yet). siop, ahc and bha will be updated once I've updated the branch to current -current, as well as machine-dependant code.
|
1.12.4.1 |
| 05-Jul-2000 |
thorpej | Pull up rev. 1.13 (pk): Pass correct argument to the console channel close routine.
|
1.16.2.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.19.4.4 |
| 13-Oct-2001 |
fvdl | Revert the t_dev -> t_devvp change in struct tty. The way that tty structs are currently used (especially by console ttys) aren't ready for it, and this will require quite a few changes.
|
1.19.4.3 |
| 11-Oct-2001 |
fvdl | Catch up with -current. Fix some bogons in the sparc64 kbd/ms attach code. cd18xx conversion provided by mrg.
|
1.19.4.2 |
| 10-Oct-2001 |
fvdl | Convert all remaining devices.
|
1.19.4.1 |
| 01-Oct-2001 |
fvdl | Catch up with -current.
|
1.19.2.3 |
| 10-Oct-2002 |
jdolecek | sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
|
1.19.2.2 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.19.2.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.20.4.4 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.20.4.3 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.20.4.2 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.20.4.1 |
| 26-Sep-2001 |
nathanw | file kd.c was added on branch nathanw_sa on 2002-04-01 07:42:42 +0000
|
1.21.4.1 |
| 19-May-2002 |
gehenna | Add device switch. Replace the access to devsw table and the hard-coded majors with devsw API.
|
1.25.2.6 |
| 11-Dec-2005 |
christos | Sync with head.
|
1.25.2.5 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.25.2.4 |
| 04-Feb-2005 |
skrll | Adapt to branch.
|
1.25.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.25.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.25.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.34.2.6 |
| 07-Dec-2007 |
yamt | sync with head
|
1.34.2.5 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.34.2.4 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.34.2.3 |
| 26-Feb-2007 |
yamt | sync with head.
|
1.34.2.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.34.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.35.6.1 |
| 22-Nov-2005 |
yamt | sync with head.
|
1.38.12.1 |
| 24-May-2006 |
tron | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
|
1.38.10.3 |
| 13-May-2006 |
elad | sprinkle some #include <sys/kauth.h> in files that use kauth kpi but don't include it yet. hopefully this will prevent some fallout.
|
1.38.10.2 |
| 10-Mar-2006 |
elad | generic_authorize() -> kauth_authorize_generic().
|
1.38.10.1 |
| 08-Mar-2006 |
elad | Adapt to kernel authorization KPI.
I expect *some* lossage here...
|
1.38.8.2 |
| 11-Aug-2006 |
yamt | sync with head
|
1.38.8.1 |
| 24-May-2006 |
yamt | sync with head.
|
1.38.6.1 |
| 01-Jun-2006 |
kardel | Sync with head.
|
1.38.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.40.6.1 |
| 22-Oct-2006 |
yamt | sync with head
|
1.40.4.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.42.2.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.43.10.1 |
| 03-Oct-2007 |
garbled | Sync with HEAD
|
1.43.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.43.2.3 |
| 03-Dec-2007 |
ad | Sync with HEAD.
|
1.43.2.2 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.43.2.1 |
| 15-Jul-2007 |
ad | Sync with head.
|
1.44.14.2 |
| 21-Nov-2007 |
bouyer | Sync with HEAD
|
1.44.14.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.44.10.2 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.44.10.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.44.8.2 |
| 21-Nov-2007 |
joerg | Sync with HEAD.
|
1.44.8.1 |
| 26-Oct-2007 |
joerg | Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
|
1.46.2.1 |
| 08-Dec-2007 |
mjf | Sync with HEAD.
|
1.47.18.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.47.16.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.47.14.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.48.28.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.48.22.1 |
| 31-May-2011 |
rmind | sync with head
|
1.49.4.2 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.49.4.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.50.2.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.50.2.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.51.2.1 |
| 18-May-2014 |
rmind | sync with head
|
1.53.2.1 |
| 10-Aug-2014 |
tls | Rebase.
|