Home | History | Annotate | Download | only in at91
History log of /src/sys/arch/arm/at91/at91dbgu.c
RevisionDateAuthorComments
 1.19  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.18  20-Nov-2020  thorpej malloc(9) -> kmem(9)
 1.17  15-Dec-2019  tsutsui branches: 1.17.8;
Remove clause 3 and 4 leftovers from TNF licenses in more sources.

Confirmed by martin@ in PR/54760.
 1.16  10-Nov-2019  chs 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.15  21-Sep-2015  skrll branches: 1.15.2; 1.15.8; 1.15.18; 1.15.22;
Deal with unused variable warnings
 1.14  13-Apr-2015  riastradh MD rnd.h cleanups. Please let me know if I broke anything!
 1.13  15-Nov-2014  christos branches: 1.13.2;
centralize the call unit / dialout macros
 1.12  10-Aug-2014  tls Merge tls-earlyentropy branch into HEAD.
 1.11  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.10  16-Mar-2014  dholland branches: 1.10.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.9  12-Nov-2012  skrll branches: 1.9.2;
C99 types
 1.8  02-Feb-2012  tls branches: 1.8.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.7  04-Nov-2011  aymeric branches: 1.7.4;
use CFATTACH_DECL_NEW
 1.6  01-Jul-2011  dyoung branches: 1.6.2;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.5  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.4  19-Jun-2010  matt branches: 1.4.2;
Misc fixes to get this to compile again.
 1.3  14-Mar-2009  dsl branches: 1.3.2; 1.3.4;
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.2  03-Jul-2008  matt branches: 1.2.4; 1.2.6; 1.2.12;
Add AT91 support. (XXX need to finish timecounter support).
 1.1  10-Nov-2007  matt branches: 1.1.2; 1.1.16; 1.1.20; 1.1.22;
file at91dbgu.c was initially added on branch matt-nb4-arm.
 1.1.22.1  03-Jul-2008  simonb Sync with head.
 1.1.20.2  11-Aug-2010  yamt sync with head.
 1.1.20.1  04-May-2009  yamt sync with head.
 1.1.16.1  28-Sep-2008  mjf Sync with HEAD.
 1.1.2.1  10-Nov-2007  matt Add AT91 support from Sami Kantoluoto
Add TI OMAP2430 support from Marty Fouts @ Danger Inc
 1.2.12.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.2.6.1  28-Apr-2009  skrll Sync with HEAD.
 1.2.4.2  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.2.4.1  03-Jul-2008  wrstuden file at91dbgu.c was added on branch wrstuden-revivesa on 2008-09-18 04:33:19 +0000
 1.3.4.2  31-May-2011  rmind sync with head
 1.3.4.1  03-Jul-2010  rmind sync with head
 1.3.2.1  17-Aug-2010  uebayasi Sync with HEAD.
 1.4.2.1  06-Jun-2011  jruoho Sync with HEAD.
 1.6.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.6.2.3  16-Jan-2013  yamt sync with (a bit old) head
 1.6.2.2  17-Apr-2012  yamt sync with head
 1.6.2.1  10-Nov-2011  yamt sync with head
 1.7.4.1  18-Feb-2012  mrg merge to -current.
 1.8.6.3  03-Dec-2017  jdolecek update from HEAD
 1.8.6.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.8.6.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.9.2.1  18-May-2014  rmind sync with head
 1.10.2.2  10-Aug-2014  tls Rebase.
 1.10.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.13.2.2  22-Sep-2015  skrll Sync with HEAD
 1.13.2.1  06-Jun-2015  skrll Sync with HEAD
 1.15.22.1  18-Dec-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #570):

sys/compat/netbsd32/netbsd32_compat_50_sysv.c: revision 1.3
sys/dev/raidframe/rf_compat50.h: revision 1.6
sys/arch/emips/emips/bus_space.c: revision 1.3
sys/compat/net/if.h: revision 1.5
sys/arch/emips/stand/common/bootinfo.c: revision 1.2
sys/compat/common/sysv_msg_50.c: revision 1.5
sys/compat/common/kern_time_30.c: revision 1.8
sys/arch/emips/stand/common/bootinfo.h: revision 1.2
sys/arch/ia64/include/bus.h: revision 1.4
sys/arch/ia64/ia64/bus_space.c: revision 1.2
sys/compat/common/sysv_shm_50.c: revision 1.5
sys/dev/ic/adw.h: revision 1.15
sys/compat/common/uipc_syscalls_50.c: revision 1.10
sys/arch/emips/ebus/flash_ebus.c: revision 1.22
sys/dev/ic/adv.h: revision 1.15
sys/dev/ic/adwmcode.c: revision 1.18
sys/dev/ic/advlib.c: revision 1.29
sys/arch/hpcarm/include/kloader.h: revision 1.3
sys/dev/usb/uberry.c: revision 1.16
sys/compat/common/sysv_sem_50.c: revision 1.5
sys/compat/netbsd32/netbsd32_compat_50.c: revision 1.43
sys/dev/ic/advlib.h: revision 1.21
sys/dev/ic/adv.c: revision 1.50
sys/compat/netinet6/in6_var.h: revision 1.5
sys/arch/hpc/stand/hpcboot/arm/arm_sa1100_asm.asm: revision 1.2
sys/arch/emips/include/loadfile_machdep.h: revision 1.3
sys/arch/emips/stand/common/prom_iface.c: revision 1.7
sys/dev/ic/adw.c: revision 1.56
sys/dev/ic/adwmcode.h: revision 1.12
sys/dev/ic/advmcode.c: revision 1.10
sys/arch/emips/ebus/ace_ebus.c: revision 1.22
sys/compat/netbsd32/netbsd32_compat_60.c: revision 1.5
sys/dev/raidframe/rf_compat50.c: revision 1.13
sys/arch/x68k/dev/intiovar.h: revision 1.15
sys/dev/usb/uipad.c: revision 1.8
sys/arch/zaurus/include/kloader.h: revision 1.3
sys/arch/emips/stand/common/bootxx.c: revision 1.2
sys/dev/ic/adwlib.h: revision 1.23
sys/dev/ic/adwlib.c: revision 1.44
sys/compat/netbsd32/netbsd32_compat_16.c: revision 1.3
sys/arch/amigappc/include/intr.h: revision 1.27
sys/arch/x68k/dev/mfp.c: revision 1.27
sys/arch/arm/at91/at91dbgu.c: revision 1.17
sys/dev/ic/advmcode.h: revision 1.7
sys/compat/ultrix/ultrix_exec.h: revision 1.7
sys/compat/common/vfs_syscalls_50.c: revision 1.24
sys/arch/mips/cavium/octeon_dma.c: revision 1.3
sys/arch/hpc/stand/hpcboot/arm/arm_pxa2x0_asm.asm: revision 1.2

Remove clause 3 and 4 from TNF licenses.
Ok'ed by martin@ in PR/54760.

Remove clause 3 and 4 leftovers from TNF licenses in more sources.
Confirmed by martin@ in PR/54760.
 1.15.18.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.15.18.1  08-Apr-2020  martin Merge changes from current as of 20200406
 1.15.8.1  27-Apr-2017  pgoyette Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).

The branch now builds, and installs via anita. There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.
 1.15.2.2  20-Jul-2016  pgoyette Redo previous. Rather than separately extracting the device_t, we can
rely on sc->sc_dev when we need to call device_release().
 1.15.2.1  19-Jul-2016  pgoyette Instead of repeatedly typing the conditional initialization of the
.d_localcount members in the various {b,c}devsw, define an initializer
macro and use it. This also removes the need for defining new symbols
for each 'struct localcount'.

As suggested by riastradh@
 1.17.8.1  14-Dec-2020  thorpej Sync w/ HEAD.

RSS XML Feed