Home | History | Annotate | only in /src/sys/arch/arc/dti
History log of /src/sys/arch/arc/dti
RevisionDateAuthorComments
 1.5 01-Jul-2011  dyoung #include <sys/bus.h> instead of <machine/bus.h>.
 1.4 05-Jul-2008  tsutsui Split device_t/softc with misc related changes.
 1.3 24-Jun-2006  tsutsui branches: 1.3.2; 1.3.8; 1.3.62; 1.3.66; 1.3.68; 1.3.70;
Misc minor cleanup for arc interrupt handlers:
- always enable options MIPS3_ENABLE_CLOCK_INTR and just clear the compare
register in cpu_intr() to make CLKF_BASE() works
properly
- prepare only possible number of cpu_inttab
- use macro for interrupt priority number passed to arc_set_intr()
to avoid confusion
- merge arc_hardware_intr() into cpu_intr()
- check independent timer interrupt first in cpu_intr()
- tweak MIPS_SR_INT_IE before calling hardclock timer handlers so that
spllowersoftclock(9) will be invoked properly in hardclock(9)
- reenable interrupt for timer in cpu_intr() rather than each timer handlers

okay'ed by soda.

Note the real fix is to make CLKF_BASE() check all independent
interrupt sources including jazz and isa devices.
 1.2 12-Jun-2006  tsutsui branches: 1.2.2; 1.2.4; 1.2.6;
Remove a declaration of nonexistent function.
 1.1 12-Jun-2006  tsutsui Move arcsisabr.c from arc/isa to arc/dti because it's DescStation specific.
 1.2.6.3 30-Dec-2006  yamt sync with head.
 1.2.6.2 21-Jun-2006  yamt sync with head.
 1.2.6.1 12-Jun-2006  yamt file arcsisabr.c was added on branch yamt-lazymbuf on 2006-06-21 14:49:07 +0000
 1.2.4.2 19-Jun-2006  chap Sync with head.
 1.2.4.1 12-Jun-2006  chap file arcsisabr.c was added on branch chap-midi on 2006-06-19 03:44:01 +0000
 1.2.2.1 13-Jul-2006  gdamore Merge from HEAD.
 1.3.70.1 18-Jul-2008  simonb Sync with head.
 1.3.68.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.3.66.1 04-May-2009  yamt sync with head.
 1.3.62.1 28-Sep-2008  mjf Sync with HEAD.
 1.3.8.2 09-Sep-2006  rpaulo sync with head
 1.3.8.1 24-Jun-2006  rpaulo file arcsisabr.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:37:52 +0000
 1.3.2.2 26-Jun-2006  yamt sync with head.
 1.3.2.1 24-Jun-2006  yamt file arcsisabr.c was added on branch yamt-pdpolicy on 2006-06-26 12:44:22 +0000
 1.31 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.30 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.29 24-Apr-2021  thorpej branches: 1.29.8;
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.28 03-Sep-2018  riastradh branches: 1.28.14;
Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int. The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER! Some subsystems have

#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX. Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate. But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all. (Who knows, maybe in some cases integer
truncation is actually intended!)
 1.27 12-Dec-2016  maya branches: 1.27.14; 1.27.16;
acknowleg -> acknowledg, proceedure -> procedure.
only comments were changed.

from miod
 1.26 18-Oct-2014  snj branches: 1.26.2; 1.26.4;
src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
 1.25 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.24 27-Dec-2009  tsutsui branches: 1.24.12; 1.24.22;
Fix typo on ANSIfy in 2005. PR port-arc/42523
 1.23 27-Nov-2009  rmind - Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places. Reduce sys/user.h inclusions.
 1.22 26-Oct-2009  cegger kill extra whitespaces
reviewed by tsutsui@
 1.21 18-Mar-2009  cegger bcopy -> memcpy
 1.20 05-Jul-2008  tsutsui branches: 1.20.4; 1.20.10;
Split device_t/softc with misc related changes.
 1.19 11-Dec-2005  christos branches: 1.19.74; 1.19.78; 1.19.80; 1.19.82;
merge ktrace-lwp.
 1.18 21-Feb-2005  thorpej Part 1 of a cleanup pass over the SCSI subsystem. The aim is to name
everything "scsi_*", since we really are talking about the SCSI command
set, ATAPI transport not withstanding. Improve the names of many structures,
and prepend "SCSI_" onto all SCSI command opcodes. Place items described
by the SCSI Primary Commands document into scsi_spc.h.
 1.17 22-Jan-2005  tsutsui branches: 1.17.2;
bzero -> memset
 1.16 22-Jan-2005  tsutsui - remove __P()
- use ANSI function decls
- u_intNN_t -> uintNN_t
- some KNF
 1.15 07-Dec-2004  thorpej branches: 1.15.2;
Don't use "struct scsi_generic" in a hardware-defined structure. Instead,
use an array of 12 bytes. Check the incoming CDB to see that it will fit,
and print and error and fail the command if it won't.
 1.14 15-Jul-2003  lukem branches: 1.14.6;
__KERNEL_RCSID()
 1.13 03-May-2003  wiz branches: 1.13.2;
DMA, not dma nor Dma.
 1.12 27-Apr-2003  tsutsui Remove register declarations.
 1.11 19-Jan-2003  tsutsui TAB/space cleanup.
 1.10 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.9 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.8 05-Apr-2002  bouyer Implement mstohz() as discussed on tech-kern, and use it in SCSI drivers
to convert xs->timeout to callout() parameter.
 1.7 20-Aug-2001  wiz branches: 1.7.6;
precede, not preceed.
 1.6 13-Jun-2001  soda branches: 1.6.2;
remove "cputype", introduce "struct btl_config *btl_conf;"
to describe platform-dependent variants.
 1.5 09-Jun-2000  soda branches: 1.5.4; 1.5.6;
add NetBSD Id of original bt driver
 1.4 23-Mar-2000  thorpej branches: 1.4.2;
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.3 22-Feb-2000  soda merge changes between OpenBSD-2.1 and OpenBSD-2.6
 1.2 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.1 23-Jan-2000  soda branches: 1.1.1;
Initial revision
 1.1.1.2 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.1 23-Jan-2000  soda OpenBSD-2.1/arc
 1.4.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.5.6.1 21-Jun-2001  nathanw Catch up to -current.
 1.5.4.2 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.5.4.1 09-Jun-2000  bouyer file btl.c was added on branch thorpej_scsipi on 2000-11-20 20:00:33 +0000
 1.6.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.6.2.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.6.2.1 25-Aug-2001  thorpej Merge Aug 24 -current into the kqueue branch.
 1.7.6.3 18-Oct-2002  nathanw Catch up to -current.
 1.7.6.2 17-Apr-2002  nathanw Catch up to -current.
 1.7.6.1 20-Aug-2001  nathanw file btl.c was added on branch nathanw_sa on 2002-04-17 00:02:21 +0000
 1.13.2.6 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.13.2.5 24-Jan-2005  skrll Sync with HEAD.
 1.13.2.4 18-Dec-2004  skrll Sync with HEAD.
 1.13.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.13.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.13.2.1 03-Aug-2004  skrll Sync with HEAD
 1.14.6.1 02-Apr-2005  he Pull up revision 1.15 (requested by thorpej in ticket #1022):
Don't use "struct scsi_generic" in a hardware-defined structure.
Instead, use an array of 12 bytes. Check the incoming CDB to see
that it will fit, and print and error and fail the command if it
won't.
 1.15.2.1 29-Apr-2005  kent sync with -current
 1.17.2.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.19.82.1 18-Jul-2008  simonb Sync with head.
 1.19.80.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.19.78.2 11-Mar-2010  yamt sync with head
 1.19.78.1 04-May-2009  yamt sync with head.
 1.19.74.1 28-Sep-2008  mjf Sync with HEAD.
 1.20.10.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.20.4.1 28-Apr-2009  skrll Sync with HEAD.
 1.24.22.2 03-Dec-2017  jdolecek update from HEAD
 1.24.22.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.24.12.1 30-Oct-2012  yamt sync with head
 1.26.4.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.26.2.1 05-Feb-2017  skrll Sync with HEAD
 1.27.16.1 10-Jun-2019  christos Sync with HEAD
 1.27.14.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.28.14.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.29.8.1 03-Aug-2021  thorpej Adapt to CFARGS().
 1.9 02-Jun-2024  andvar Fix various typos, mainly triple letters.
 1.8 11-Dec-2005  christos merge ktrace-lwp.
 1.7 21-Feb-2005  thorpej Part 1 of a cleanup pass over the SCSI subsystem. The aim is to name
everything "scsi_*", since we really are talking about the SCSI command
set, ATAPI transport not withstanding. Improve the names of many structures,
and prepend "SCSI_" onto all SCSI command opcodes. Place items described
by the SCSI Primary Commands document into scsi_spc.h.
 1.6 22-Jan-2005  tsutsui branches: 1.6.2;
- remove __P()
- use ANSI function decls
- u_intNN_t -> uintNN_t
- some KNF
 1.5 07-Dec-2004  thorpej branches: 1.5.2;
Don't use "struct scsi_generic" in a hardware-defined structure. Instead,
use an array of 12 bytes. Check the incoming CDB to see that it will fit,
and print and error and fail the command if it won't.
 1.4 09-Apr-2003  thorpej branches: 1.4.2; 1.4.8;
Use PAGE_SIZE rather than NBPG.
 1.3 22-Feb-2000  soda branches: 1.3.6;
merge changes between OpenBSD-2.1 and OpenBSD-2.6
 1.2 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.1 23-Jan-2000  soda branches: 1.1.1;
Initial revision
 1.1.1.1 23-Jan-2000  soda OpenBSD-2.1/arc
 1.3.6.2 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.3.6.1 22-Feb-2000  bouyer file btlreg.h was added on branch thorpej_scsipi on 2000-11-20 20:00:33 +0000
 1.4.8.1 02-Apr-2005  he Pull up revision 1.5 (requested by thorpej in ticket #1022):
Don't use "struct scsi_generic" in a hardware-defined structure.
Instead, use an array of 12 bytes. Check the incoming CDB to see
that it will fit, and print and error and fail the command if it
won't.
 1.4.2.3 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.4.2.2 24-Jan-2005  skrll Sync with HEAD.
 1.4.2.1 18-Dec-2004  skrll Sync with HEAD.
 1.5.2.1 29-Apr-2005  kent sync with -current
 1.6.2.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.5 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.4 11-Dec-2005  christos branches: 1.4.74; 1.4.76; 1.4.78;
merge ktrace-lwp.
 1.3 22-Jan-2005  tsutsui - remove __P()
- use ANSI function decls
- u_intNN_t -> uintNN_t
- some KNF
 1.2 15-Jan-2005  skrll branches: 1.2.2;
s/u_int_t/u_int/ in structure member declaration.
 1.1 13-Jun-2001  soda branches: 1.1.2; 1.1.10; 1.1.26;
remove "cputype", introduce "struct btl_config *btl_conf;"
to describe platform-dependent variants.
 1.1.26.2 24-Jan-2005  skrll Sync with HEAD.
 1.1.26.1 17-Jan-2005  skrll Sync with HEAD.
 1.1.10.2 13-Jun-2001  soda remove "cputype", introduce "struct btl_config *btl_conf;"
to describe platform-dependent variants.
 1.1.10.1 13-Jun-2001  soda file btlvar.h was added on branch nathanw_sa on 2001-06-13 15:09:33 +0000
 1.1.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.2.2.1 29-Apr-2005  kent sync with -current
 1.4.78.1 16-May-2008  yamt sync with head.
 1.4.76.1 18-May-2008  yamt sync with head.
 1.4.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.5 06-Mar-2011  tsutsui Remove trailing spaces.
 1.4 03-May-2003  wiz branches: 1.4.130; 1.4.136;
DMA, not dma nor Dma.
 1.3 22-Feb-2000  soda branches: 1.3.6;
merge changes between OpenBSD-2.1 and OpenBSD-2.6
 1.2 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.1 23-Jan-2000  soda branches: 1.1.1;
Initial revision
 1.1.1.2 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.1 23-Jan-2000  soda OpenBSD-2.1/arc
 1.3.6.2 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.3.6.1 22-Feb-2000  bouyer file desktech.h was added on branch thorpej_scsipi on 2000-11-20 20:00:33 +0000
 1.4.136.1 06-Jun-2011  jruoho Sync with HEAD.
 1.4.130.1 21-Apr-2011  rmind sync with head
 1.12 01-Jul-2011  dyoung #include <sys/bus.h> instead of <machine/bus.h>.
 1.11 05-Jul-2008  tsutsui Split device_t/softc with misc related changes.
 1.10 24-Jun-2006  tsutsui branches: 1.10.58; 1.10.62; 1.10.64; 1.10.66;
Misc minor cleanup for arc interrupt handlers:
- always enable options MIPS3_ENABLE_CLOCK_INTR and just clear the compare
register in cpu_intr() to make CLKF_BASE() works
properly
- prepare only possible number of cpu_inttab
- use macro for interrupt priority number passed to arc_set_intr()
to avoid confusion
- merge arc_hardware_intr() into cpu_intr()
- check independent timer interrupt first in cpu_intr()
- tweak MIPS_SR_INT_IE before calling hardclock timer handlers so that
spllowersoftclock(9) will be invoked properly in hardclock(9)
- reenable interrupt for timer in cpu_intr() rather than each timer handlers

okay'ed by soda.

Note the real fix is to make CLKF_BASE() check all independent
interrupt sources including jazz and isa devices.
 1.9 15-Apr-2006  tsutsui branches: 1.9.4;
Include "ioconf.h" rather than declare struct cfdriver foo_cd in each file.
 1.8 11-Dec-2005  christos branches: 1.8.4; 1.8.6; 1.8.8; 1.8.10; 1.8.12;
merge ktrace-lwp.
 1.7 22-Jan-2005  tsutsui branches: 1.7.8;
Make all intr_mask value types uint32_t rather than int, u_int,
or unsigned etc.
 1.6 22-Jan-2005  tsutsui - remove __P()
- use ANSI function decls
- u_intNN_t -> uintNN_t
- some KNF
 1.5 07-Aug-2003  agc branches: 1.5.8;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.4 15-Jul-2003  lukem __KERNEL_RCSID()
 1.3 02-Oct-2002  thorpej branches: 1.3.6;
Use CFATTACH_DECL().
 1.2 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.1 13-Jun-2001  soda branches: 1.1.2; 1.1.4; 1.1.10;
split ISA bridge code into bus dependent frontends to remove "cputype"
variable.
 1.1.10.2 18-Oct-2002  nathanw Catch up to -current.
 1.1.10.1 13-Jun-2001  nathanw file tyneisabr.c was added on branch nathanw_sa on 2002-10-18 02:35:11 +0000
 1.1.4.1 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.1.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.3.6.4 24-Jan-2005  skrll Sync with HEAD.
 1.3.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.3.6.1 03-Aug-2004  skrll Sync with HEAD
 1.5.8.1 29-Apr-2005  kent sync with -current
 1.7.8.2 30-Dec-2006  yamt sync with head.
 1.7.8.1 21-Jun-2006  yamt sync with head.
 1.8.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.8.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.8.8.2 26-Jun-2006  yamt sync with head.
 1.8.8.1 24-May-2006  yamt sync with head.
 1.8.6.1 22-Apr-2006  simonb Sync with head.
 1.8.4.1 09-Sep-2006  rpaulo sync with head
 1.9.4.1 13-Jul-2006  gdamore Merge from HEAD.
 1.10.66.1 18-Jul-2008  simonb Sync with head.
 1.10.64.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.10.62.1 04-May-2009  yamt sync with head.
 1.10.58.1 28-Sep-2008  mjf Sync with HEAD.

RSS XML Feed