History log of /src/sys/arch/sun3/dev/eeprom.c |
Revision | | Date | Author | Comments |
1.35 |
| 20-Dec-2024 |
tsutsui | Remove trailing whitespace.
|
1.34 |
| 21-Nov-2020 |
thorpej | branches: 1.34.24; malloc(9) -> kmem(9)
|
1.33 |
| 10-Nov-2019 |
chs | branches: 1.33.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.32 |
| 03-Sep-2018 |
riastradh | 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.31 |
| 28-Jun-2008 |
tsutsui | branches: 1.31.82; 1.31.84; Split softc/device_t, with misc cosmetic changes.
|
1.30 |
| 28-Apr-2008 |
martin | branches: 1.30.2; 1.30.4; Remove clause 3 and 4 from TNF licenses
|
1.29 |
| 04-Mar-2007 |
christos | branches: 1.29.40; 1.29.42; 1.29.44; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.28 |
| 11-Dec-2005 |
christos | branches: 1.28.26; merge ktrace-lwp.
|
1.27 |
| 19-Jun-2005 |
thorpej | branches: 1.27.2; Move common Sun ID PROM definitions into <dev/sun/idprom.h>.
|
1.26 |
| 22-Jan-2005 |
chs | de-__P, remove register, ansify, b* -> mem*, u_int*_t -> uint*_t.
|
1.25 |
| 15-Jul-2003 |
lukem | branches: 1.25.8; __KERNEL_RCSID()
|
1.24 |
| 02-Oct-2002 |
thorpej | branches: 1.24.6; Add trailing ; to CFATTACH_DECL.
|
1.23 |
| 01-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.22 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.21 |
| 05-Sep-2001 |
tsutsui | branches: 1.21.6; bcopy() -> memcpy(), bzero() -> memset()
|
1.20 |
| 05-Jun-2001 |
thorpej | branches: 1.20.2; (locally defined) HZ -> hz
|
1.19 |
| 27-May-2001 |
chs | don't abuse cf_unit.
|
1.18 |
| 05-Feb-1998 |
gwr | branches: 1.18.26; Merge arch/sun3x into arch/sun3
|
1.17 |
| 12-Jan-1998 |
thorpej | branches: 1.17.2; Update for changes to config.
|
1.16 |
| 28-Apr-1997 |
gwr | No longer needs an early init call (just normal autoconfig).
|
1.15 |
| 18-Mar-1997 |
gwr | Read the EEPROM once at attach time, then do user I/O on the copy. Make /dev/eeprom support normal "read to EOF" behaviour. Removed ee_console, ee_get_byte (dead code).
|
1.14 |
| 27-Jan-1997 |
gwr | Fix copyrights (/s/REGENTS/FOUNDATION/)
|
1.13 |
| 17-Dec-1996 |
gwr | Make this compile with -Werror -Wall -Wstrict-prototypes (finally! yea!) Also get rid of __BROKEN_INDIRECT_CONFIG
|
1.12 |
| 20-Nov-1996 |
gwr | Most files that were copyright Adam Glass and/or Gordon W. Ross are now copyright The NetBSD Foundation (rights assigned).
|
1.11 |
| 30-Oct-1996 |
gwr | Get rid of some cruft in the match function.
|
1.10 |
| 13-Oct-1996 |
christos | backout previous kprintf change
|
1.9 |
| 11-Oct-1996 |
christos | printf -> kprintf, sprintf -> ksprintf
|
1.8 |
| 26-Mar-1996 |
gwr | New autoconfig design that controls attach order.
|
1.7 |
| 17-Mar-1996 |
thorpej | New device attachment scheme:
- split softc size and match/attach out from cfdriver into a new struct cfattach.
- new "attach" directive for files.*. May specify the name of the cfattach structure, so that devices may be easily attached to parents with different autoconfiguration semantics.
|
1.6 |
| 24-May-1995 |
gwr | Fix missing return(0) - from Jason Thorpe - fixes PR 1049
|
1.5 |
| 10-Mar-1995 |
gwr | Provide ee_console for drivers.
|
1.4 |
| 12-Dec-1994 |
gwr | New autoconfig interface to support VME, etc.
|
1.3 |
| 21-Nov-1994 |
gwr | Lots of changes. Fairly stable now.
|
1.2 |
| 26-Oct-1994 |
cgd | new RCS ID format.
|
1.1 |
| 20-Sep-1994 |
gwr | branches: 1.1.2; New functions to handle writing EEPROM with correct delay. Also provides ee_get_byte() for early use by other drivers.
|
1.1.2.2 |
| 20-Sep-1994 |
gwr | New functions to handle writing EEPROM with correct delay. Also provides ee_get_byte() for early use by other drivers.
|
1.1.2.1 |
| 20-Sep-1994 |
gwr | file eeprom.c was added on branch netbsd-1-0 on 1994-09-20 16:35:45 +0000
|
1.17.2.1 |
| 27-Jan-1998 |
gwr | Avoid stepping on the Mostek clock found in the end of the EEPROM on the Sun3/80 (and other Sun3X changes).
|
1.18.26.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.20.2.2 |
| 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.20.2.1 |
| 13-Sep-2001 |
thorpej | Update the kqueue branch to HEAD.
|
1.21.6.2 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.21.6.1 |
| 05-Sep-2001 |
nathanw | file eeprom.c was added on branch nathanw_sa on 2002-10-18 02:40:19 +0000
|
1.24.6.5 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.24.6.4 |
| 24-Jan-2005 |
skrll | Sync with HEAD.
|
1.24.6.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.24.6.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.24.6.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.25.8.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.27.2.1 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.28.26.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.29.44.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.29.44.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.29.42.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.29.40.2 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.29.40.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.30.4.1 |
| 03-Jul-2008 |
simonb | Sync with head.
|
1.30.2.1 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.31.84.2 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.31.84.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.31.82.1 |
| 06-Sep-2018 |
pgoyette | Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
|
1.33.8.1 |
| 14-Dec-2020 |
thorpej | Sync w/ HEAD.
|
1.34.24.1 |
| 02-Aug-2025 |
perseant | Sync with HEAD
|