CVS log for src/sys/dev/spi/spiflash.c
Up to [cvs.NetBSD.org] / src / sys / dev / spi
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Oct 26 21:56:19 2022 UTC (2 years, 1 month ago) by andvar
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
HEAD
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -3
lines
fix various typos in comments and makefs README file.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun May 8 06:38:58 2022 UTC (2 years, 7 months ago) by skrll
Branches: MAIN
CVS tags: bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +7 -7
lines
Trailing whitespace
Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:16 2021 UTC (3 years, 4 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3
lines
Merge thorpej-cfargs2.
Revision 1.24.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 4 23:24:59 2021 UTC (3 years, 4 months ago) by thorpej
Branches: thorpej-cfargs2
Diff to: previous 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24: +3 -3
lines
Adapt to CFARGS().
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:59 2021 UTC (3 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf-base,
thorpej-i2c-spi-conf,
thorpej-futex2-base,
thorpej-futex2,
thorpej-cfargs2-base,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Branch point for: thorpej-cfargs2
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +4 -3
lines
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?).
Revision 1.23.10.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 21:09:15 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +4 -3
lines
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.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Sep 14 15:12:12 2019 UTC (5 years, 2 months ago) by tnn
Branches: MAIN
CVS tags: thorpej-futex-base,
thorpej-futex,
thorpej-cfargs-base,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
is-mlppp-base,
is-mlppp,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base,
ad-namecache
Branch point for: thorpej-cfargs
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3
lines
On second thought revert that. Let's open this can of worms some other day.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Sep 14 14:41:23 2019 UTC (5 years, 2 months ago) by tnn
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -3
lines
KB -> kB
Revision 1.20.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:32 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +4 -4
lines
Sync with HEAD
Revision 1.20.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:56:04 2018 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +4 -4
lines
Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:33 2018 UTC (6 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: phil-wifi-20190609,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
isaki-audio2-base,
isaki-audio2
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -4
lines
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!)
Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Jan 12 19:38:52 2018 UTC (6 years, 10 months ago) by jakllsch
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-base,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
jdolecek-ncqfixes-base,
jdolecek-ncqfixes
Branch point for: phil-wifi,
pgoyette-compat
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +4 -6
lines
We always need bp->b_resid initialized before we try to toss the transfer.
Revision 1.10.24.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:32 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.10.24.2: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.24.2: +7 -4
lines
update from HEAD
Revision 1.16.2.3: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:55:56 2016 UTC (8 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.16.2.2: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.2.2: +4 -2
lines
Sync with HEAD
Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Aug 19 03:23:39 2016 UTC (8 years, 3 months ago) by jakllsch
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
nick-nhusb-base-20170204,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +4 -2
lines
Reset b_resid when tossing transfer with non-zero b_error.
Revision 1.16.2.2: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:00 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.16.2.1: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.2.1: +8 -7
lines
Sync with HEAD
Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Jul 22 10:07:59 2015 UTC (9 years, 4 months ago) by ryo
Branches: MAIN
CVS tags: pgoyette-localcount-base,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
nick-nhusb-base-20160907,
nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
nick-nhusb-base-20151226,
nick-nhusb-base-20150921
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -2
lines
need to forward the data pointer
Revision 1.16.2.1: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:13 2015 UTC (9 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +5 -3
lines
Sync with HEAD
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Apr 26 15:15:20 2015 UTC (9 years, 7 months ago) by mlelstv
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +5 -3
lines
Use C99-style initializers for struct dkdriver.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Oct 11 13:56:01 2014 UTC (10 years, 2 months ago) by mlelstv
Branches: MAIN
CVS tags: nick-nhusb-base-20150406,
nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -5
lines
use disk_init() wrapper function instead of poking data structures.
Revision 1.10.24.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:50 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.10.24.1: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.24.1: +7 -7
lines
Rebase to HEAD as of a few days ago.
Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:58 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +4 -2
lines
Rebase.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:10:39 2014 UTC (10 years, 4 months ago) by dholland
Branches: MAIN
CVS tags: tls-maxphys-base,
tls-earlyentropy-base,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -2
lines
Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:02:20 2014 UTC (10 years, 4 months ago) by dholland
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -2
lines
Add d_discard to all struct bdevsw instances I could find.
I've set them all to nodiscard. Some of them (wd, dk, vnd, ld,
raidframe, maybe cgd) should be implemented for real.
Revision 1.10.14.1: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:36 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +6 -8
lines
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")
Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:47 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +5 -7
lines
sync with head
Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Mar 28 11:52:51 2014 UTC (10 years, 8 months ago) by hkenken
Branches: MAIN
CVS tags: yamt-pagecache-base9,
rmind-smpnet-nbase,
rmind-smpnet-base,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -5
lines
Fix printf formating in DPRINTF.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Jan 28 19:26:32 2014 UTC (10 years, 10 months ago) by martin
Branches: MAIN
CVS tags: riastradh-drm2-base3
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -4
lines
Remove an unused variable
Revision 1.10.24.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:32 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3
lines
resync with head
Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Feb 15 17:46:53 2013 UTC (11 years, 9 months ago) by rkujawa
Branches: MAIN
CVS tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
khorben-n900,
agc-symver-base,
agc-symver
Branch point for: rmind-smpnet
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3
lines
Fix wrong calculation of destination pointer in writes.
Existing calculation of destination pointer was always causing unnecessary erases of SPI Flash memory and was always writing each consecutive 2048 byte blocks of data into the same address of the SPI Flash memory. This commit fixes issue with writes of multiple blocks using 'dd' tool.
Patch from Semihalf.
Author: Michal Dubiel <md@semihalf.com>
Revision 1.7.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:19 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.7.4.1: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.4.1: +21 -18
lines
sync with head.
Revision 1.9.4.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:19:03 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +14 -14
lines
Sync with HEAD.
Revision 1.6.26.3: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:08 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.6.26.2: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.26.2: +12 -12
lines
Sync with HEAD.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Jan 13 13:35:54 2009 UTC (15 years, 11 months ago) by yamt
Branches: MAIN
CVS tags: yamt-pagecache-tag8,
yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
yamt-nfs-mp-base9,
yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
uebayasi-xip-base1,
uebayasi-xip-base,
uebayasi-xip,
rmind-uvmplock-nbase,
rmind-uvmplock-base,
rmind-uvmplock,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base2,
nick-hppapmap-base,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
mjf-devfs2-base,
matt-premerge-20091211,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
matt-mips64-premerge-20101231,
jymxensuspend-base,
jym-xensuspend-nbase,
jym-xensuspend-base,
jym-xensuspend,
jruoho-x86intr-base,
jruoho-x86intr,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base10,
jmcneill-usbmp-base,
jmcneill-usbmp,
jmcneill-audiomp3-base,
jmcneill-audiomp3,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: yamt-pagecache,
tls-maxphys
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +14 -14
lines
g/c BUFQ_FOO() macros and use bufq_foo() directly.
Revision 1.6.26.2: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:10 2008 UTC (16 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.6.26.1: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.26.1: +7 -4
lines
Sync with HEAD.
Revision 1.8.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:30 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +9 -6
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.8.4.1: download - view: text, markup, annotated - select for diffs
Wed Jun 18 16:33:26 2008 UTC (16 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +9 -6
lines
Sync with head.
Revision 1.7.2.2: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:15:01 2008 UTC (16 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.7.2.1: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.2.1: +9 -6
lines
sync with head.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Jun 11 19:31:10 2008 UTC (16 years, 6 months ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-base4,
wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
simonb-wapbl-nbase,
simonb-wapbl-base,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
haad-nbase2,
haad-dm-base2,
haad-dm-base1,
haad-dm-base,
haad-dm,
ad-audiomp2-base,
ad-audiomp2
Branch point for: nick-hppapmap
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +9 -6
lines
use device_lookup_private to get softc
Revision 1.6.26.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:51 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +11 -12
lines
Sync with HEAD.
Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:34:46 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +10 -11
lines
sync with head.
Revision 1.7.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:25:06 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +10 -11
lines
sync with head.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun May 4 14:21:56 2008 UTC (16 years, 7 months ago) by xtraeme
Branches: MAIN
CVS tags: yamt-pf42-base3,
yamt-pf42-base2,
yamt-nfs-mp-base2,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa,
simonb-wapbl
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +10 -11
lines
device_t/softc split.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Apr 5 16:41:24 2008 UTC (16 years, 8 months ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base,
yamt-nfs-mp-base
Branch point for: yamt-pf42,
yamt-nfs-mp
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +5 -5
lines
use aprint_*_dev and device_xname
Revision 1.3.2.7: download - view: text, markup, annotated - select for diffs
Tue Oct 9 15:22:13 2007 UTC (17 years, 2 months ago) by ad
Branches: vmlocking
Diff to: previous 1.3.2.6: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.6: +3 -3
lines
Sync with head.
Revision 1.2.8.3: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:38:44 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.2.8.2: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.8.2: +11 -25
lines
sync with head.
Revision 1.3.2.6: download - view: text, markup, annotated - select for diffs
Fri Aug 24 23:28:38 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.3.2.5: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.5: +6 -4
lines
Sync with buffer cache locking changes. See buf.h/vfs_bio.c for details.
Some minor portions are incomplete and needs to be verified as a whole.
Revision 1.3.2.5: download - view: text, markup, annotated - select for diffs
Mon Aug 20 21:27:23 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.3.2.4: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.4: +609 -627
lines
Sync with HEAD.
Revision 1.3.2.4: download - view: text, markup, annotated - select for diffs
Mon Aug 20 18:16:16 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.3.2.3: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.3: +5 -4
lines
- Alter disk attach/detach to fix a panic when closing a vnd device.
- Sync with HEAD.
Revision 1.3.2.3: download - view: text, markup, annotated - select for diffs
Sun Aug 19 19:24:35 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.3.2.2: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.2: +3 -7
lines
- Back out the biodone() changes.
- Eliminate B_ERROR (from HEAD).
Revision 1.4.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 15 13:48:45 2007 UTC (17 years, 4 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +5 -9
lines
Sync with HEAD.
Revision 1.6.28.2: download - view: text, markup, annotated - select for diffs
Sun Jul 29 12:15:45 2007 UTC (17 years, 4 months ago) by ad
Branches: matt-mips64
Diff to: previous 1.6.28.1: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.28.1: +767 -0
lines
It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
Revision 1.6.28.1
Sun Jul 29 12:15:44 2007 UTC (17 years, 4 months ago) by ad
Branches: matt-mips64
FILE REMOVED
Changes since revision 1.6: +0 -767
lines
file spiflash.c was added on branch matt-mips64 on 2007-07-29 12:15:45 +0000
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Jul 29 12:15:44 2007 UTC (17 years, 4 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
yamt-x86pmap-base,
yamt-x86pmap,
yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
vmlocking2-base3,
vmlocking2-base2,
vmlocking2-base1,
vmlocking2,
vmlocking-nbase,
vmlocking-base,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
nick-net80211-sync-base,
nick-net80211-sync,
nick-csl-alignment-base5,
mjf-devfs-base,
mjf-devfs,
matt-mips64-base,
matt-armv6-prevmlocking,
matt-armv6-nbase,
matt-armv6-base,
matt-armv6,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
jmcneill-pm-base,
jmcneill-pm,
jmcneill-base,
hpcarm-cleanup-base,
hpcarm-cleanup,
cube-autoconf-base,
cube-autoconf,
bouyer-xeni386-nbase,
bouyer-xeni386-merge1,
bouyer-xeni386-base,
bouyer-xeni386,
bouyer-xenamd64-base2,
bouyer-xenamd64-base,
bouyer-xenamd64,
ad-socklock-base1
Branch point for: mjf-devfs2,
matt-mips64
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -7
lines
It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Jul 19 00:00:09 2007 UTC (17 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -4
lines
Fix the kthread_create(9) call so this compiles again.
Revision 1.3.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:08:21 2007 UTC (17 years, 5 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +8 -18
lines
Sync with head.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:01:23 2007 UTC (17 years, 5 months ago) by ad
Branches: MAIN
CVS tags: nick-csl-alignment-base,
mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +8 -18
lines
Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Sun May 13 17:36:29 2007 UTC (17 years, 7 months ago) by ad
Branches: vmlocking
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.1: +6 -16
lines
- Pass the error number and residual count to biodone(), and let it handle
setting error indicators. Prepare to eliminate B_ERROR.
- Add a flag argument to brelse() to be set into the buf's flags, instead
of doing it directly. Typically used to set B_INVAL.
- Add a "struct cpu_info *" argument to kthread_create(), to be used to
create bound threads. Change "bool mpsafe" to "int flags".
- Allow exit of LWPs in the IDL state when (l != curlwp).
- More locking fixes & conversion to the new API.
Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 13 20:56:21 2007 UTC (17 years, 8 months ago) by ad
Branches: vmlocking
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -4
lines
- Make the devsw interface MP safe, and add some comments.
- Allow individual block/character drivers to be marked MP safe.
- Provide wrappers around the device methods that look up the
device, returning ENXIO if it's not found, and acquire the
kernel lock if needed.
Revision 1.2.10.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:57:11 2007 UTC (17 years, 9 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +3 -3
lines
Sync with HEAD.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:02:44 2007 UTC (17 years, 9 months ago) by christos
Branches: MAIN
CVS tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: vmlocking,
mjf-ufs-trans
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -3
lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.2.8.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:49:37 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.2.8.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.8.1: +781 -0
lines
sync with head.
Revision 1.2.4.2: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:50 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.2.4.1: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.4.1: +781 -0
lines
Sync with head.
Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:06:48 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.2.2.1: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.1: +781 -0
lines
sync with head
Revision 1.2.8.1
Fri Oct 20 06:41:47 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
FILE REMOVED
Changes since revision 1.2: +0 -781
lines
file spiflash.c was added on branch yamt-lazymbuf on 2006-12-30 20:49:37 +0000
Revision 1.2.4.1
Fri Oct 20 06:41:47 2006 UTC (18 years, 1 month ago) by ad
Branches: newlock2
FILE REMOVED
Changes since revision 1.2: +0 -781
lines
file spiflash.c was added on branch newlock2 on 2006-11-18 21:34:50 +0000
Revision 1.2.2.1
Fri Oct 20 06:41:47 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
FILE REMOVED
Changes since revision 1.2: +0 -781
lines
file spiflash.c was added on branch yamt-splraiseipl on 2006-10-22 06:06:48 +0000
Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Oct 20 06:41:47 2006 UTC (18 years, 1 month ago) by gdamore
Branches: MAIN
CVS tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
yamt-splraiseipl-base2,
wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
post-newlock2-merge,
newlock2-nbase,
newlock2-base,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
matt-nb4-arm-base,
matt-nb4-arm,
ad-audiomp-base,
ad-audiomp
Branch point for: yamt-splraiseipl,
yamt-lazymbuf,
yamt-idlelwp,
newlock2
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +223 -70
lines
This commit provides substantial fixes and functionality for SPI flash.
Specifically, the SPI flash now operates as a nearly fully functional block
device (other than lacking disklabel support). It does some basic translation
stuff, so that if you attempt to write a block, the underlying flash sectors
(usually 64k in size) will be read, erased and rewritten.
To minize thrashing, the spiflash strategy routine attempts to gather writes
to the same sector together, so that in the typical case you will not have to
repeatedly erase/rewrite the sector. It also attempts to check and verify
whether an erase cycle is truly needed. There are still access patterns that
will cause multiple erases to occur, and so I heartily discourage the use
of these flash devices for storing anything other than small configuration
data, or write-once images. If you want to do more than that, then someone
should try to write a real flash translation layer.
The drivers attempt to provide some level of asynchronous operation, so that
while you are erasing or writing to the flash, other things can reasonably
take place.
Note that spiflash does not do bad block remapping. It also doesn't detect
when a device is in read-only mode, or if some sectors are read-only. It
only supports uniform sectored NOR flash. It lacks any code to deal with
disklabels, and does not offer any disk related ioctls.
These limitations aside, it would not be terribly hard, I think, to break
out the code I've done to create a generic "norflash" driver, backed by
a "common" spiflash module. Then other flash drivers (e.g. athflash, etc.)
could benefit from the ability to use this as a block device. I've tried
to architect it to support that, if someone else wants to do the work.
(Hi Jared!)
The primary reason that I've not added code to deal with disklabels is that
I had a difficult time figuring out which framework (disklabels or wedges)
to use, and which bits of code were necessary to implement. In the case of
the flash devices I'm working with, a parser to deal with redboot FIS images
(partitions) would need to be added. I was prepared to do this, but gave
up owing to the complete and total lack of any API or design documentation
pertaining to the requirements for disk drivers and disklabel management or
wedges. I would strongly encourage someone who knows something about
wedges or disklabels to write a simple document (or even a dummy driver)
showing which interfaces should be provided in new mass storage drivers.
This work was funded by the Champaign-Urbana Community Wireless Network
Project.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Oct 7 07:21:13 2006 UTC (18 years, 2 months ago) by gdamore
Branches: MAIN
Add spiflash driver, and M25P instance, used for STMicro flash devices
found on Meraki Mini (for example).
CVSweb <webmaster@jp.NetBSD.org>