History log of /src/sys/arch/sh3/dev/sci.c |
Revision | | Date | Author | Comments |
1.65 |
| 17-Sep-2023 |
andvar | remove unneeded whitespace in empty line from my previous commit.
|
1.64 |
| 16-Sep-2023 |
andvar | sh3/sci(4): replace undefined scistatus with DPRINTF.
Fixes the build with SCI_DEBUG enabled.
|
1.63 |
| 21-Nov-2020 |
thorpej | malloc(9) -> kmem(9)
|
1.62 |
| 10-Nov-2019 |
chs | branches: 1.62.8; in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT and remove code to handle failures that can no longer happen.
|
1.61 |
| 15-Nov-2014 |
christos | branches: 1.61.20; centralize the call unit / dialout macros
|
1.60 |
| 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.59 |
| 19-Jun-2014 |
msaitoh | fix -Werror=unused-but-set-variable compile error
|
1.58 |
| 16-Mar-2014 |
dholland | branches: 1.58.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.57 |
| 12-Dec-2012 |
tsutsui | branches: 1.57.2; Fix one more device/softc split error: - set sc->sc_dev properly
|
1.56 |
| 29-Oct-2012 |
chs | fix device/softc split errors.
|
1.55 |
| 27-Oct-2012 |
chs | split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.54 |
| 02-Feb-2012 |
tls | branches: 1.54.6; Entropy-pool implementation move and cleanup.
1) Move core entropy-pool code and source/sink/sample management code to sys/kern from sys/dev.
2) Remove use of NRND as test for presence of entropy-pool code throughout source tree.
3) Remove use of RND_ENABLED in device drivers as microoptimization to avoid expensive operations on disabled entropy sources; make the rnd_add calls do this directly so all callers benefit.
4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might have lead to slight entropy overestimation for some sources.
5) Add new source types for environmental sensors, power sensors, VM system events, and skew between clocks, with a sample implementation for each.
ok releng to go in before the branch due to the difficulty of later pullup (widespread #ifdef removal and moved files). Tested with release builds on amd64 and evbarm and live testing on amd64.
|
1.53 |
| 24-Apr-2011 |
rmind | branches: 1.53.4; 1.53.8; Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for consistency. Remove some unnecessary malloc.h inclusions as well.
|
1.52 |
| 14-Mar-2009 |
dsl | branches: 1.52.4; 1.52.6; Change about 4500 of the K&R function definitions to ANSI ones. 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.)
|
1.51 |
| 13-Jun-2008 |
cegger | branches: 1.51.4; 1.51.10; use device_lookup_private to get softc
|
1.50 |
| 28-Apr-2008 |
martin | branches: 1.50.2; 1.50.4; Remove clause 3 and 4 from TNF licenses
|
1.49 |
| 19-Nov-2007 |
ad | branches: 1.49.14; 1.49.16; 1.49.18; - Factor out too many copies of the same bit of tty code. - Fix another tty signalling/wakeup problem.
|
1.48 |
| 17-Oct-2007 |
garbled | branches: 1.48.2; 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.47 |
| 09-Jul-2007 |
ad | branches: 1.47.8; 1.47.10; 1.47.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.46 |
| 04-Mar-2007 |
christos | branches: 1.46.2; 1.46.4; 1.46.10; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.45 |
| 01-Oct-2006 |
elad | branches: 1.45.4; More from Matt Fleming:
Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.
|
1.44 |
| 01-Oct-2006 |
elad | Adapt MD code to KAUTH_DEVICE_TTY_OPEN. Patch from Matt Fleming, thanks!
|
1.43 |
| 23-Jul-2006 |
ad | branches: 1.43.4; 1.43.6; Use the LWP cached credentials where sane.
|
1.42 |
| 14-May-2006 |
elad | integrate kauth.
|
1.41 |
| 07-Mar-2006 |
uebayasi | branches: 1.41.2; 1.41.4; * Don't define SET/CLR/ISSET locally. * Avoid shadow in a pointer-to-function declaration.
|
1.40 |
| 20-Feb-2006 |
thorpej | branches: 1.40.2; Use device_is_active() rather than testing dv_flags for DVF_ACTIVE directly.
|
1.39 |
| 11-Dec-2005 |
christos | branches: 1.39.2; 1.39.4; 1.39.6; merge ktrace-lwp.
|
1.38 |
| 06-Sep-2005 |
kleink | 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.37 |
| 11-Mar-2005 |
matt | branches: 1.37.4; Don't compare scalars against NULL, use 0.
|
1.36 |
| 13-Dec-2004 |
chs | branches: 1.36.2; 1.36.4; for drivers that support only one instance, use a global variable to ensure that only one instance is configured rather than requiring that its unit number be zero.
|
1.35 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
1.34 |
| 15-Jul-2003 |
lukem | __KERNEL_RCSID()
|
1.33 |
| 23-Oct-2002 |
jdolecek | branches: 1.33.6; 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.32 |
| 02-Oct-2002 |
thorpej | Add trailing ; to CFATTACH_DECL.
|
1.31 |
| 01-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.30 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.29 |
| 27-Sep-2002 |
thorpej | Rather than referencing the cfdriver directly in the cfdata entries, instead use a string naming the driver. The cfdriver is then looked up in a list which is built at run-time.
|
1.28 |
| 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.27 |
| 16-Aug-2002 |
msaitoh | remove extra CRLF conversion
|
1.26 |
| 19-May-2002 |
msaitoh | branches: 1.26.4; fix some overflow cases.
|
1.25 |
| 28-Apr-2002 |
uch | branches: 1.25.2; Use "#define<tab>", white space nits.
|
1.24 |
| 28-Apr-2002 |
msaitoh | add missing softintr_establish() call.
|
1.23 |
| 26-Apr-2002 |
msaitoh | fix around PTR and PDR
|
1.22 |
| 24-Mar-2002 |
uch | Rework interrupt code. + Fully utilize SH SR.I[0:3] interrupt level. + software interrupt is emulated by TMU1, 2 one shot interrupt. + implement generic soft interrupts. + implement clockframe correctly.
|
1.21 |
| 17-Mar-2002 |
atatat | 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 |
| 24-Feb-2002 |
uch | use sh_clock_get_pclock() instead of PCLOCK.
|
1.19 |
| 22-Feb-2002 |
uch | New NetBSD/sh3 clock framework. + hardclock source is moved from TMU1 to TMU0. + SH3/SH4 common kernel support. + PCLOCK estimation. + remove duplicated code.
|
1.18 |
| 12-Feb-2002 |
uch | ANSIfy KNF.
|
1.17 |
| 01-Feb-2002 |
uch | if PCLOCK isn't setted, use estimated value calculated by kernel.
|
1.16 |
| 10-Sep-2001 |
msaitoh | add missing check for framing error
|
1.15 |
| 12-Jun-2001 |
wiz | branches: 1.15.2; 1.15.4; receive, not recieve
|
1.14 |
| 30-May-2001 |
lukem | add missing #include "opt_kgdb.h"
|
1.13 |
| 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.12 |
| 14-Jan-2001 |
thorpej | branches: 1.12.2; Rename __GENERIC_SOFT_INTERRUPTS to __HAVE_GENERIC_SOFT_INTERRUPTS, and place the definition in <machine/types.h>. This can now be used as a flag to indicate whether or not <machine/intr.h> can be included to get the generic soft interrupt API.
|
1.11 |
| 22-Nov-2000 |
msaitoh | - fix \n conversion from \n\r to \r\n - cleanup
|
1.10 |
| 02-Nov-2000 |
eeh | Adapt to new line discipline scheme.
|
1.9 |
| 19-Jun-2000 |
msaitoh | branches: 1.9.2; clear ORER, FER and PER bit of the SCSSR reg. (This bits aren't cleared automatically)
|
1.8 |
| 27-Mar-2000 |
msaitoh | branches: 1.8.2; fix the sci[f]cninit() bugs to work both SCI and SCIF at the same time.
|
1.7 |
| 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.6 |
| 22-Feb-2000 |
msaitoh | bugfixes: o SCI accesses SCI registers (not SCIF) correctly o If there is serial inputs in boot time, it could hangup in interrupt routine o some cleanups(KNF)
|
1.5 |
| 07-Jan-2000 |
msaitoh | implement send/recieve break signal routines
|
1.4 |
| 17-Sep-1999 |
msaitoh | branches: 1.4.2; check SCI(F)CONSOLE
|
1.3 |
| 16-Sep-1999 |
msaitoh | sync with sci*.h and tmureg.h
|
1.2 |
| 13-Sep-1999 |
msaitoh | add some comments.
|
1.1 |
| 13-Sep-1999 |
itojun | Merge in NetBSD/sh3 from cvs.kame.net repository.
Tree structure: - sys/arch/sh3: sh3 generic code As commented, in-chip device drivers are put into sys/arch/sh3/dev. - sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW) - sys/arch/mmeye: Brains mmEye, www.brains.co.jp MI source code includes couple of #ifdef for sh3-coff support. (sh3 uses coff or elf)
Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3, to compile the tree (due to last minute tree structure change).
|
1.4.2.4 |
| 18-Jan-2001 |
bouyer | Sync with head (for UBC+NFS fixes, mostly).
|
1.4.2.3 |
| 08-Dec-2000 |
bouyer | Sync with HEAD.
|
1.4.2.2 |
| 22-Nov-2000 |
bouyer | Sync with HEAD.
|
1.4.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.8.2.1 |
| 22-Jun-2000 |
minoura | Sync w/ netbsd-1-5-base.
|
1.9.2.1 |
| 30-Sep-2001 |
he | Pull up revisions 1.11,1.15 (requested by msaitoh): Fix \n conversion from \n\r to \r\n, and some cleanup.
|
1.12.2.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.15.4.3 |
| 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.15.4.2 |
| 10-Oct-2001 |
fvdl | Convert all remaining devices.
|
1.15.4.1 |
| 01-Oct-2001 |
fvdl | Catch up with -current.
|
1.15.2.6 |
| 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.15.2.5 |
| 06-Sep-2002 |
jdolecek | sync kqueue branch with HEAD
|
1.15.2.4 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.15.2.3 |
| 16-Mar-2002 |
jdolecek | Catch up with -current.
|
1.15.2.2 |
| 11-Feb-2002 |
jdolecek | Sync w/ -current.
|
1.15.2.1 |
| 13-Sep-2001 |
thorpej | Update the kqueue branch to HEAD.
|
1.25.2.3 |
| 31-Aug-2002 |
gehenna | catch up with -current.
|
1.25.2.2 |
| 30-May-2002 |
gehenna | Catch up with -current.
|
1.25.2.1 |
| 19-May-2002 |
gehenna | Add device switch. Replace the access to devsw table and the hard-coded majors with devsw API.
|
1.26.4.5 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.26.4.4 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.26.4.3 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.26.4.2 |
| 27-Aug-2002 |
nathanw | Catch up to -current.
|
1.26.4.1 |
| 19-May-2002 |
nathanw | file sci.c was added on branch nathanw_sa on 2002-08-27 23:45:23 +0000
|
1.33.6.7 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.33.6.6 |
| 01-Apr-2005 |
skrll | Sync with HEAD.
|
1.33.6.5 |
| 25-Jan-2005 |
skrll | Adapt to branch.
|
1.33.6.4 |
| 18-Dec-2004 |
skrll | Sync with HEAD.
|
1.33.6.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.33.6.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.33.6.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.36.4.1 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.36.2.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.37.4.4 |
| 07-Dec-2007 |
yamt | sync with head
|
1.37.4.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.37.4.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.37.4.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.39.6.2 |
| 01-Jun-2006 |
kardel | Sync with head.
|
1.39.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.39.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.39.2.1 |
| 01-Mar-2006 |
yamt | sync with head.
|
1.40.2.3 |
| 11-Aug-2006 |
yamt | sync with head
|
1.40.2.2 |
| 24-May-2006 |
yamt | sync with head.
|
1.40.2.1 |
| 13-Mar-2006 |
yamt | sync with head.
|
1.41.4.1 |
| 24-May-2006 |
tron | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
|
1.41.2.4 |
| 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.41.2.3 |
| 10-Mar-2006 |
elad | generic_authorize() -> kauth_authorize_generic().
|
1.41.2.2 |
| 08-Mar-2006 |
elad | Adapt to kernel authorization KPI.
I expect *some* lossage here...
|
1.41.2.1 |
| 07-Mar-2006 |
elad | file sci.c was added on branch elad-kernelauth on 2006-03-08 00:43:13 +0000
|
1.43.6.1 |
| 22-Oct-2006 |
yamt | sync with head
|
1.43.4.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.45.4.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.46.10.1 |
| 03-Oct-2007 |
garbled | Sync with HEAD
|
1.46.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.46.2.3 |
| 03-Dec-2007 |
ad | Sync with HEAD.
|
1.46.2.2 |
| 15-Jul-2007 |
ad | Sync with head.
|
1.46.2.1 |
| 01-Jul-2007 |
ad | Adapt to callout API change.
|
1.47.14.1 |
| 21-Nov-2007 |
bouyer | Sync with HEAD
|
1.47.10.2 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.47.10.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.47.8.1 |
| 21-Nov-2007 |
joerg | Sync with HEAD.
|
1.48.2.1 |
| 08-Dec-2007 |
mjf | Sync with HEAD.
|
1.49.18.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.49.18.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.49.16.2 |
| 17-Jun-2008 |
yamt | sync with head.
|
1.49.16.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.49.14.2 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.49.14.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.50.4.1 |
| 18-Jun-2008 |
simonb | Sync with head.
|
1.50.2.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.51.10.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.51.4.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.52.6.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.52.4.1 |
| 31-May-2011 |
rmind | sync with head
|
1.53.8.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.53.4.4 |
| 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.53.4.3 |
| 16-Jan-2013 |
yamt | sync with (a bit old) head
|
1.53.4.2 |
| 30-Oct-2012 |
yamt | sync with head
|
1.53.4.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.54.6.4 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.54.6.3 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.54.6.2 |
| 25-Feb-2013 |
tls | resync with head
|
1.54.6.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.57.2.1 |
| 18-May-2014 |
rmind | sync with head
|
1.58.2.1 |
| 10-Aug-2014 |
tls | Rebase.
|
1.61.20.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.62.8.1 |
| 14-Dec-2020 |
thorpej | Sync w/ HEAD.
|