Home | History | Annotate | Download | only in s3c2xx0
History log of /src/sys/arch/arm/s3c2xx0/sscom.c
RevisionDateAuthorComments
 1.50  26-Oct-2022  riastradh ddb/db_active.h: New home for extern db_active.

This can be included unconditionally, and db_active can then be
queried unconditionally; if DDB is not in the kernel, then db_active
is a constant zero. Reduces need for #include opt_ddb.h, #ifdef DDB.
 1.49  20-Nov-2020  thorpej malloc(9) -> kmem(9)
 1.48  10-Nov-2019  chs branches: 1.48.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.47  13-Apr-2015  riastradh branches: 1.47.18;
MD rnd.h cleanups. Please let me know if I broke anything!
 1.46  10-Aug-2014  tls branches: 1.46.4;
Merge tls-earlyentropy branch into HEAD.
 1.45  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.44  16-Mar-2014  reinoud branches: 1.44.2;
Remove unneeded dependencies
 1.43  16-Mar-2014  reinoud Exclude sscom_init() prototype definition when its not declared later
 1.42  16-Mar-2014  dholland 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.41  14-Mar-2014  matt Cleanup sscom to make more SoC invariant
 1.40  10-Mar-2014  htodd Delete unused variables for new gcc.
 1.39  01-May-2013  mlelstv branches: 1.39.4;
For a polled console incoming characters are buffered on output.
The buffer is never passed to the regular tty routines and can
survive from early boot to halt where it is read by the "press
any continue to reboot" loops.
As a workaround, just kill the read-ahead buffer when switching
from and to polled mode.
 1.38  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.37  07-Feb-2012  nisimura branches: 1.37.6;

- add MBR editing menu to sysinst.
- fix typos in timecounter names.
- make sure to drain Tx FIFO to avoid clobbering
kernel boot messages.
- allow to have the 3rd UART.
- add missing time-of-day clock support.

Ok by releng.
 1.36  04-Feb-2012  christos fix the build
 1.35  02-Feb-2012  tls 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.34  30-Jan-2012  nisimura Add FriendlyARM Mini2440 support.
- new code for Samsung S3C2440 SoC.
- update for other S3C2xx0.
This port was done by Paul Fleischer.
 1.33  24-Apr-2011  rmind branches: 1.33.4; 1.33.8;
Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for
consistency. Remove some unnecessary malloc.h inclusions as well.
 1.32  09-Dec-2009  he branches: 1.32.4; 1.32.6;
Make this one build again.
 1.31  06-Dec-2009  dyoung Simplify the device-activation hook. Move some of the device
deactivation to the detachment routine, where it belongs.
 1.30  21-Nov-2009  rmind Use lwp_getpcb() on ARM (and acorn26/32), clean from struct user usage.
 1.29  11-Jun-2008  cegger use device_lookup_private to get softc
 1.28  28-Apr-2008  martin branches: 1.28.2; 1.28.4;
Remove clause 3 and 4 from TNF licenses
 1.27  27-Nov-2007  ad branches: 1.27.14; 1.27.16; 1.27.18;
Use the softint API.
 1.26  19-Nov-2007  ad - Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.
 1.25  17-Oct-2007  garbled branches: 1.25.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.24  14-Jul-2007  ad branches: 1.24.6; 1.24.8; 1.24.10; 1.24.12; 1.24.16;
Generic soft interrupts are mandatory.
 1.23  11-Jul-2007  he Adapt to new signature for callout_init().
 1.22  04-Mar-2007  christos branches: 1.22.2; 1.22.10;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.21  01-Oct-2006  elad branches: 1.21.4;
More from Matt Fleming:

Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.
 1.20  01-Oct-2006  elad Adapt MD code to KAUTH_DEVICE_TTY_OPEN. Patch from Matt Fleming, thanks!
 1.19  23-Jul-2006  ad branches: 1.19.4; 1.19.6;
Use the LWP cached credentials where sane.
 1.18  14-May-2006  elad integrate kauth.
 1.17  26-Mar-2006  thorpej Use device_unit().
 1.16  20-Feb-2006  thorpej branches: 1.16.2; 1.16.4; 1.16.6;
Use device_is_active() rather than testing dv_flags for DVF_ACTIVE
directly.
 1.15  24-Dec-2005  perry branches: 1.15.2; 1.15.4; 1.15.6;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.14  11-Dec-2005  christos merge ktrace-lwp.
 1.13  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.12  04-Jun-2005  he branches: 1.12.2;
Add some const and rename a local variable to avoid shadowing.
 1.11  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.10  04-Aug-2003  bsh Samsung's S3C2800 and S3C24[10]0 CPUs have same built-in UART block,
but there are very small diffs in register definitions. For that, add
new options SSCOM_S3C{2800,2410,2400} and include appropriate
s3c*reg.h.

SSCOM_S3C2410 is also needed for interrupt controller differences.
 1.9  31-Jul-2003  bsh split sscomintr() to sscomtxintr() and sscomrxintr().
 1.8  15-Jul-2003  lukem __KERNEL_RCSID()
 1.7  29-Jun-2003  fvdl branches: 1.7.2;
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
 1.6  29-Jun-2003  ichiro struct proc * -> struct lwp *
 1.5  23-Jun-2003  martin Make sure to include opt_foo.h if a defflag option FOO is used.
 1.4  13-May-2003  bsh + fix a bug to think FIFO full as FIFO empty.

+ on rx buffer overflow case, disable error interrupt as wel as rx
interrupt.

+ FIFO is always enabled.
 1.3  13-May-2003  bsh white space nit.
 1.2  08-Mar-2003  he Initialize the two new members of "struct consdev" to NULL, so that
this file compiles again.
 1.1  20-Nov-2002  bsh branches: 1.1.2;
Samsung S3C2800 is a CPU with ARM920T core.
 1.1.2.2  11-Dec-2002  thorpej Sync with HEAD.
 1.1.2.1  20-Nov-2002  thorpej file sscom.c was added on branch nathanw_sa on 2002-12-11 05:53:19 +0000
 1.7.2.5  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.7.2.4  17-Jan-2005  skrll Adapt to branch.
 1.7.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.7.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.7.2.1  03-Aug-2004  skrll Sync with HEAD
 1.12.2.4  07-Dec-2007  yamt sync with head
 1.12.2.3  03-Sep-2007  yamt sync with head.
 1.12.2.2  30-Dec-2006  yamt sync with head.
 1.12.2.1  21-Jun-2006  yamt sync with head.
 1.15.6.2  01-Jun-2006  kardel Sync with head.
 1.15.6.1  22-Apr-2006  simonb Sync with head.
 1.15.4.1  09-Sep-2006  rpaulo sync with head
 1.15.2.1  01-Mar-2006  yamt sync with head.
 1.16.6.2  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.16.6.1  28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.16.4.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.16.4.3  19-Apr-2006  elad sync with head - hopefully this will work
 1.16.4.2  10-Mar-2006  elad generic_authorize() -> kauth_authorize_generic().
 1.16.4.1  08-Mar-2006  elad Adapt to kernel authorization KPI.

I expect *some* lossage here...
 1.16.2.3  11-Aug-2006  yamt sync with head
 1.16.2.2  24-May-2006  yamt sync with head.
 1.16.2.1  01-Apr-2006  yamt sync with head.
 1.19.6.1  22-Oct-2006  yamt sync with head
 1.19.4.1  18-Nov-2006  ad Sync with head.
 1.21.4.1  12-Mar-2007  rmind Sync with HEAD.
 1.22.10.1  03-Oct-2007  garbled Sync with HEAD
 1.22.2.2  03-Dec-2007  ad Sync with HEAD.
 1.22.2.1  15-Jul-2007  ad Sync with head.
 1.24.16.1  21-Nov-2007  bouyer Sync with HEAD
 1.24.12.2  09-Jan-2008  matt sync with HEAD
 1.24.12.1  06-Nov-2007  matt sync with HEAD
 1.24.10.1  01-Jan-2008  chris Sync with HEAD.
 1.24.8.2  03-Dec-2007  joerg Sync with HEAD.
 1.24.8.1  21-Nov-2007  joerg Sync with HEAD.
 1.24.6.1  26-Dec-2007  rjs Sync with HEAD.
 1.25.2.1  08-Dec-2007  mjf Sync with HEAD.
 1.27.18.3  11-Mar-2010  yamt sync with head
 1.27.18.2  04-May-2009  yamt sync with head.
 1.27.18.1  16-May-2008  yamt sync with head.
 1.27.16.2  17-Jun-2008  yamt sync with head.
 1.27.16.1  18-May-2008  yamt sync with head.
 1.27.14.2  29-Jun-2008  mjf Sync with HEAD.
 1.27.14.1  02-Jun-2008  mjf Sync with HEAD.
 1.28.4.1  18-Jun-2008  simonb Sync with head.
 1.28.2.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.32.6.1  06-Jun-2011  jruoho Sync with HEAD.
 1.32.4.1  31-May-2011  rmind sync with head
 1.33.8.1  18-Feb-2012  mrg merge to -current.
 1.33.4.3  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.33.4.2  30-Oct-2012  yamt sync with head
 1.33.4.1  17-Apr-2012  yamt sync with head
 1.37.6.4  03-Dec-2017  jdolecek update from HEAD
 1.37.6.3  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.37.6.2  23-Jun-2013  tls resync from head
 1.37.6.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.39.4.1  18-May-2014  rmind sync with head
 1.44.2.2  10-Aug-2014  tls Rebase.
 1.44.2.1  07-Apr-2014  tls Be a little more clear and consistent about harvesting entropy from devices:

1) deprecate RND_FLAG_NO_ESTIMATE

2) define RND_FLAG_COLLECT_TIME, RND_FLAG_COLLECT_VALUE

3) define RND_FLAG_ESTIMATE_TIME, RND_FLAG_ESTIMATE_VALUE

4) define RND_FLAG_DEFAULT: RND_FLAG_COLLECT_TIME|
RND_FLAG_COLLECT_VALUE|RND_FLAG_ESTIMATE_TIME

5) Make entropy harvesting from environmental sensors a little more generic
and remove it from individual sensor drivers.

6) Remove individual open-coded delta-estimators for values from a few
places in the tree (uvm, environmental drivers).

7) 0 -> RND_FLAG_DEFAULT, actually gather entropy from various drivers
that had stubbed out code, other minor cleanups.
 1.46.4.1  06-Jun-2015  skrll Sync with HEAD
 1.47.18.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.48.8.1  14-Dec-2020  thorpej Sync w/ HEAD.

RSS XML Feed