| History log of /src/sys/arch/arc/dti/btl.c |
| Revision | | Date | Author | Comments |
| 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().
|