Home | History | Annotate | Download | only in ep93xx
History log of /src/sys/arch/arm/ep93xx/epcom.c
RevisionDateAuthorComments
 1.36  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.35  12-Feb-2022  riastradh sys: Fix various abuse of struct device internals.

Will help to make struct device opaque later.
 1.34  21-Nov-2021  skrll PR port-evbarm/40307 options KGDB doesn't work for some evbarm hosts

Apply patch from Lloyd Parkes with some KNF tweaks from me.
 1.33  21-Nov-2021  skrll Trailing whitespace.
 1.32  20-Nov-2020  thorpej malloc(9) -> kmem(9)
 1.31  10-Nov-2019  chs branches: 1.31.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.30  13-Apr-2015  riastradh branches: 1.30.18;
MD rnd.h cleanups. Please let me know if I broke anything!
 1.29  15-Nov-2014  christos branches: 1.29.2;
centralize the call unit / dialout macros
 1.28  10-Aug-2014  tls Merge tls-earlyentropy branch into HEAD.
 1.27  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.26  16-Mar-2014  dholland branches: 1.26.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.25  08-Mar-2014  skrll Remove unused variables
 1.24  12-Nov-2012  skrll branches: 1.24.2;
C99 types
 1.23  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.22  02-Feb-2012  tls branches: 1.22.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.21  01-Jul-2011  dyoung branches: 1.21.2; 1.21.6;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.20  24-Apr-2011  rmind Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for
consistency. Remove some unnecessary malloc.h inclusions as well.
 1.19  14-Mar-2009  dsl branches: 1.19.4; 1.19.6;
Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.18  11-Jun-2008  cegger branches: 1.18.4; 1.18.10;
use device_lookup_private to get softc
 1.17  28-Apr-2008  martin branches: 1.17.2; 1.17.4;
Remove clause 3 and 4 from TNF licenses
 1.16  06-Jan-2008  matt branches: 1.16.6; 1.16.8; 1.16.10;
Cleanup softint lossage.
 1.15  19-Nov-2007  ad branches: 1.15.6;
- Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.
 1.14  04-Mar-2007  christos branches: 1.14.2; 1.14.16; 1.14.18; 1.14.20; 1.14.22; 1.14.26; 1.14.28;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.13  01-Oct-2006  elad branches: 1.13.4;
More from Matt Fleming:

Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.
 1.12  01-Oct-2006  elad Adapt MD code to KAUTH_DEVICE_TTY_OPEN. Patch from Matt Fleming, thanks!
 1.11  23-Jul-2006  ad branches: 1.11.4; 1.11.6;
Use the LWP cached credentials where sane.
 1.10  14-May-2006  elad integrate kauth.
 1.9  26-Mar-2006  thorpej Use device_unit() (and remove a couple of places where it is not
needed).
 1.8  08-Mar-2006  he branches: 1.8.2;
Remove yet another instance of the macro triplet SET/CLR/ISSET, now
found in <sys/types.h>.
 1.7  20-Feb-2006  thorpej branches: 1.7.2; 1.7.4;
Use device_is_active() rather than testing dv_flags for DVF_ACTIVE
directly.
 1.6  14-Dec-2005  christos branches: 1.6.2; 1.6.4; 1.6.6;
proc -> lwp, ansi
 1.5  11-Dec-2005  christos merge ktrace-lwp.
 1.4  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.3  04-Jun-2005  he branches: 1.3.2;
Fix -Wcast-qual by sprinkling some consts, and remove named
parameters from a function prototype to avoid shadowing.
Also fix a couple of other shadowing problems.
 1.2  29-Dec-2004  joff branches: 1.2.4;
improve intr handling behavior in light of the fact that there is no transmit completion irqs on epcom
 1.1  22-Dec-2004  joff ep93xx processor on-chip UART driver
 1.2.4.3  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.2.4.2  17-Jan-2005  skrll Sync with HEAD.
 1.2.4.1  29-Dec-2004  skrll file epcom.c was added on branch ktrace-lwp on 2005-01-17 19:29:12 +0000
 1.3.2.5  21-Jan-2008  yamt sync with head
 1.3.2.4  07-Dec-2007  yamt sync with head
 1.3.2.3  03-Sep-2007  yamt sync with head.
 1.3.2.2  30-Dec-2006  yamt sync with head.
 1.3.2.1  21-Jun-2006  yamt sync with head.
 1.6.6.2  01-Jun-2006  kardel Sync with head.
 1.6.6.1  22-Apr-2006  simonb Sync with head.
 1.6.4.1  09-Sep-2006  rpaulo sync with head
 1.6.2.1  01-Mar-2006  yamt sync with head.
 1.7.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.7.4.3  19-Apr-2006  elad sync with head - hopefully this will work
 1.7.4.2  10-Mar-2006  elad generic_authorize() -> kauth_authorize_generic().
 1.7.4.1  08-Mar-2006  elad Adapt to kernel authorization KPI.

I expect *some* lossage here...
 1.7.2.4  11-Aug-2006  yamt sync with head
 1.7.2.3  24-May-2006  yamt sync with head.
 1.7.2.2  01-Apr-2006  yamt sync with head.
 1.7.2.1  13-Mar-2006  yamt sync with head.
 1.8.2.2  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.8.2.1  28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.11.6.1  22-Oct-2006  yamt sync with head
 1.11.4.1  18-Nov-2006  ad Sync with head.
 1.13.4.1  12-Mar-2007  rmind Sync with HEAD.
 1.14.28.2  18-Feb-2008  mjf Sync with HEAD.
 1.14.28.1  08-Dec-2007  mjf Sync with HEAD.
 1.14.26.1  21-Nov-2007  bouyer Sync with HEAD
 1.14.22.1  09-Jan-2008  matt sync with HEAD
 1.14.20.2  20-Jan-2008  chris Sync to HEAD.
 1.14.20.1  01-Jan-2008  chris Sync with HEAD.
 1.14.18.1  21-Nov-2007  joerg Sync with HEAD.
 1.14.16.2  28-Feb-2008  rjs Sync with HEAD.
 1.14.16.1  26-Dec-2007  rjs Sync with HEAD.
 1.14.2.1  03-Dec-2007  ad Sync with HEAD.
 1.15.6.1  08-Jan-2008  bouyer Sync with HEAD
 1.16.10.2  04-May-2009  yamt sync with head.
 1.16.10.1  16-May-2008  yamt sync with head.
 1.16.8.2  17-Jun-2008  yamt sync with head.
 1.16.8.1  18-May-2008  yamt sync with head.
 1.16.6.2  29-Jun-2008  mjf Sync with HEAD.
 1.16.6.1  02-Jun-2008  mjf Sync with HEAD.
 1.17.4.1  18-Jun-2008  simonb Sync with head.
 1.17.2.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.18.10.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.18.4.1  28-Apr-2009  skrll Sync with HEAD.
 1.19.6.1  06-Jun-2011  jruoho Sync with HEAD.
 1.19.4.1  31-May-2011  rmind sync with head
 1.21.6.1  18-Feb-2012  mrg merge to -current.
 1.21.2.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.21.2.3  16-Jan-2013  yamt sync with (a bit old) head
 1.21.2.2  30-Oct-2012  yamt sync with head
 1.21.2.1  17-Apr-2012  yamt sync with head
 1.22.6.3  03-Dec-2017  jdolecek update from HEAD
 1.22.6.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.22.6.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.24.2.1  18-May-2014  rmind sync with head
 1.26.2.2  10-Aug-2014  tls Rebase.
 1.26.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.29.2.1  06-Jun-2015  skrll Sync with HEAD
 1.30.18.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.31.8.1  14-Dec-2020  thorpej Sync w/ HEAD.

RSS XML Feed