head	1.6;
access;
symbols
	netbsd-11-0-RC4:1.6
	netbsd-11-0-RC3:1.6
	netbsd-11-0-RC2:1.6
	netbsd-11-0-RC1:1.6
	perseant-exfatfs-base-20250801:1.6
	netbsd-11:1.6.0.44
	netbsd-11-base:1.6
	netbsd-10-1-RELEASE:1.6
	perseant-exfatfs-base-20240630:1.6
	perseant-exfatfs:1.6.0.42
	perseant-exfatfs-base:1.6
	netbsd-8-3-RELEASE:1.5
	netbsd-9-4-RELEASE:1.6
	netbsd-10-0-RELEASE:1.6
	netbsd-10-0-RC6:1.6
	netbsd-10-0-RC5:1.6
	netbsd-10-0-RC4:1.6
	netbsd-10-0-RC3:1.6
	netbsd-10-0-RC2:1.6
	thorpej-ifq:1.6.0.40
	thorpej-ifq-base:1.6
	thorpej-altq-separation:1.6.0.38
	thorpej-altq-separation-base:1.6
	netbsd-10-0-RC1:1.6
	netbsd-10:1.6.0.36
	netbsd-10-base:1.6
	bouyer-sunxi-drm:1.6.0.34
	bouyer-sunxi-drm-base:1.6
	netbsd-9-3-RELEASE:1.6
	thorpej-i2c-spi-conf2:1.6.0.32
	thorpej-i2c-spi-conf2-base:1.6
	thorpej-futex2:1.6.0.30
	thorpej-futex2-base:1.6
	thorpej-cfargs2:1.6.0.28
	thorpej-cfargs2-base:1.6
	cjep_sun2x-base1:1.6
	cjep_sun2x:1.6.0.26
	cjep_sun2x-base:1.6
	cjep_staticlib_x-base1:1.6
	netbsd-9-2-RELEASE:1.6
	cjep_staticlib_x:1.6.0.24
	cjep_staticlib_x-base:1.6
	thorpej-i2c-spi-conf:1.6.0.22
	thorpej-i2c-spi-conf-base:1.6
	thorpej-cfargs:1.6.0.20
	thorpej-cfargs-base:1.6
	thorpej-futex:1.6.0.18
	thorpej-futex-base:1.6
	netbsd-9-1-RELEASE:1.6
	bouyer-xenpvh-base2:1.6
	phil-wifi-20200421:1.6
	bouyer-xenpvh-base1:1.6
	phil-wifi-20200411:1.6
	bouyer-xenpvh:1.6.0.16
	bouyer-xenpvh-base:1.6
	is-mlppp:1.6.0.14
	is-mlppp-base:1.6
	phil-wifi-20200406:1.6
	netbsd-8-2-RELEASE:1.5
	ad-namecache-base3:1.6
	netbsd-9-0-RELEASE:1.6
	netbsd-9-0-RC2:1.6
	ad-namecache-base2:1.6
	ad-namecache-base1:1.6
	ad-namecache:1.6.0.12
	ad-namecache-base:1.6
	netbsd-9-0-RC1:1.6
	phil-wifi-20191119:1.6
	netbsd-9:1.6.0.10
	netbsd-9-base:1.6
	phil-wifi-20190609:1.6
	netbsd-8-1-RELEASE:1.5
	netbsd-8-1-RC1:1.5
	isaki-audio2:1.6.0.8
	isaki-audio2-base:1.6
	pgoyette-compat-merge-20190127:1.6
	pgoyette-compat-20190127:1.6
	pgoyette-compat-20190118:1.6
	pgoyette-compat-1226:1.6
	pgoyette-compat-1126:1.6
	pgoyette-compat-1020:1.6
	pgoyette-compat-0930:1.6
	pgoyette-compat-0906:1.6
	jdolecek-ncqfixes:1.6.0.6
	jdolecek-ncqfixes-base:1.6
	netbsd-7-2-RELEASE:1.5
	pgoyette-compat-0728:1.6
	netbsd-8-0-RELEASE:1.5
	phil-wifi:1.6.0.4
	phil-wifi-base:1.6
	pgoyette-compat-0625:1.6
	netbsd-8-0-RC2:1.5
	pgoyette-compat-0521:1.6
	pgoyette-compat-0502:1.6
	pgoyette-compat-0422:1.6
	netbsd-8-0-RC1:1.5
	pgoyette-compat-0415:1.6
	pgoyette-compat-0407:1.6
	pgoyette-compat-0330:1.6
	pgoyette-compat-0322:1.6
	pgoyette-compat-0315:1.6
	netbsd-7-1-2-RELEASE:1.5
	pgoyette-compat:1.6.0.2
	pgoyette-compat-base:1.6
	netbsd-7-1-1-RELEASE:1.5
	tls-maxphys-base-20171202:1.6
	matt-nb8-mediatek:1.5.0.34
	matt-nb8-mediatek-base:1.5
	nick-nhusb-base-20170825:1.5
	perseant-stdc-iso10646:1.5.0.32
	perseant-stdc-iso10646-base:1.5
	netbsd-8:1.5.0.30
	netbsd-8-base:1.5
	prg-localcount2-base3:1.5
	prg-localcount2-base2:1.5
	prg-localcount2-base1:1.5
	prg-localcount2:1.5.0.28
	prg-localcount2-base:1.5
	pgoyette-localcount-20170426:1.5
	bouyer-socketcan-base1:1.5
	jdolecek-ncq:1.5.0.26
	jdolecek-ncq-base:1.5
	pgoyette-localcount-20170320:1.5
	netbsd-7-1:1.5.0.24
	netbsd-7-1-RELEASE:1.5
	netbsd-7-1-RC2:1.5
	nick-nhusb-base-20170204:1.5
	netbsd-7-nhusb-base-20170116:1.5
	bouyer-socketcan:1.5.0.22
	bouyer-socketcan-base:1.5
	pgoyette-localcount-20170107:1.5
	netbsd-7-1-RC1:1.5
	nick-nhusb-base-20161204:1.5
	pgoyette-localcount-20161104:1.5
	netbsd-7-0-2-RELEASE:1.5
	nick-nhusb-base-20161004:1.5
	localcount-20160914:1.5
	netbsd-7-nhusb:1.5.0.20
	netbsd-7-nhusb-base:1.5
	pgoyette-localcount-20160806:1.5
	pgoyette-localcount-20160726:1.5
	pgoyette-localcount:1.5.0.18
	pgoyette-localcount-base:1.5
	nick-nhusb-base-20160907:1.5
	nick-nhusb-base-20160529:1.5
	netbsd-7-0-1-RELEASE:1.5
	nick-nhusb-base-20160422:1.5
	nick-nhusb-base-20160319:1.5
	nick-nhusb-base-20151226:1.5
	netbsd-7-0:1.5.0.16
	netbsd-7-0-RELEASE:1.5
	nick-nhusb-base-20150921:1.5
	netbsd-7-0-RC3:1.5
	netbsd-7-0-RC2:1.5
	netbsd-7-0-RC1:1.5
	nick-nhusb-base-20150606:1.5
	nick-nhusb-base-20150406:1.5
	nick-nhusb:1.5.0.14
	nick-nhusb-base:1.5
	netbsd-6-0-6-RELEASE:1.4
	netbsd-6-1-5-RELEASE:1.4
	netbsd-7:1.5.0.12
	netbsd-7-base:1.5
	yamt-pagecache-base9:1.5
	yamt-pagecache-tag8:1.4.4.1
	netbsd-6-1-4-RELEASE:1.4
	netbsd-6-0-5-RELEASE:1.4
	tls-earlyentropy:1.5.0.10
	tls-earlyentropy-base:1.5
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.5
	riastradh-drm2-base3:1.5
	netbsd-6-1-3-RELEASE:1.4
	netbsd-6-0-4-RELEASE:1.4
	netbsd-6-1-2-RELEASE:1.4
	netbsd-6-0-3-RELEASE:1.4
	rmind-smpnet-nbase:1.5
	netbsd-6-1-1-RELEASE:1.4
	riastradh-drm2-base2:1.5
	riastradh-drm2-base1:1.5
	riastradh-drm2:1.5.0.8
	riastradh-drm2-base:1.5
	rmind-smpnet:1.5.0.2
	rmind-smpnet-base:1.5
	netbsd-6-1:1.4.0.20
	netbsd-6-0-2-RELEASE:1.4
	netbsd-6-1-RELEASE:1.4
	khorben-n900:1.5.0.6
	netbsd-6-1-RC4:1.4
	netbsd-6-1-RC3:1.4
	agc-symver:1.5.0.4
	agc-symver-base:1.5
	netbsd-6-1-RC2:1.4
	netbsd-6-1-RC1:1.4
	yamt-pagecache-base8:1.5
	netbsd-6-0-1-RELEASE:1.4
	yamt-pagecache-base7:1.5
	matt-nb6-plus-nbase:1.4
	yamt-pagecache-base6:1.4
	netbsd-6-0:1.4.0.18
	netbsd-6-0-RELEASE:1.4
	netbsd-6-0-RC2:1.4
	tls-maxphys:1.4.0.16
	tls-maxphys-base:1.5
	matt-nb6-plus:1.4.0.14
	matt-nb6-plus-base:1.4
	netbsd-6-0-RC1:1.4
	jmcneill-usbmp-base10:1.4
	yamt-pagecache-base5:1.4
	jmcneill-usbmp-base9:1.4
	yamt-pagecache-base4:1.4
	jmcneill-usbmp-base8:1.4
	jmcneill-usbmp-base7:1.4
	jmcneill-usbmp-base6:1.4
	jmcneill-usbmp-base5:1.4
	jmcneill-usbmp-base4:1.4
	jmcneill-usbmp-base3:1.4
	jmcneill-usbmp-pre-base2:1.4
	jmcneill-usbmp-base2:1.4
	netbsd-6:1.4.0.12
	netbsd-6-base:1.4
	matt-nb5-mips64:1.4.0.10
	jmcneill-usbmp:1.4.0.8
	jmcneill-usbmp-base:1.4
	jmcneill-audiomp3:1.4.0.6
	jmcneill-audiomp3-base:1.4
	yamt-pagecache-base3:1.4
	yamt-pagecache-base2:1.4
	yamt-pagecache:1.4.0.4
	yamt-pagecache-base:1.4
	matt-nb5-pq3:1.4.0.2
	rmind-uvmplock-nbase:1.3
	jruoho-x86intr:1.3.0.4
	cherry-xenmp:1.3.0.2
	cherry-xenmp-base:1.3
	rmind-uvmplock-base:1.3
	rmind-uvmplock:1.1.0.4
	bouyer-quota2:1.1.0.2
	bouyer-quota2-nbase:1.1;
locks; strict;
comment	@# @;


1.6
date	2017.11.09.21.50.15;	author jmcneill;	state Exp;
branches;
next	1.5;
commitid	nzx9nR7isweqppeA;

1.5
date	2012.10.31.18.58.08;	author riz;	state Exp;
branches;
next	1.4;

1.4
date	2011.06.28.18.14.11;	author ahoka;	state Exp;
branches
	1.4.2.1
	1.4.4.1
	1.4.10.1
	1.4.16.1;
next	1.3;

1.3
date	2011.03.27.13.33.04;	author ahoka;	state Exp;
branches
	1.3.4.1;
next	1.2;

1.2
date	2011.03.09.10.05.08;	author ahoka;	state Exp;
branches;
next	1.1;

1.1
date	2011.02.26.18.07.31;	author ahoka;	state Exp;
branches
	1.1.2.1
	1.1.4.1;
next	;

1.4.2.1
date	2011.06.28.18.14.11;	author matt;	state dead;
branches;
next	1.4.2.2;

1.4.2.2
date	2011.07.26.03.22.27;	author matt;	state Exp;
branches;
next	;

1.4.4.1
date	2013.01.16.05.33.16;	author yamt;	state Exp;
branches;
next	;

1.4.10.1
date	2011.06.28.18.14.11;	author matt;	state dead;
branches;
next	1.4.10.2;

1.4.10.2
date	2011.12.27.17.35.47;	author matt;	state Exp;
branches;
next	;

1.4.16.1
date	2012.11.20.03.02.13;	author tls;	state Exp;
branches;
next	1.4.16.2;

1.4.16.2
date	2017.12.03.11.37.06;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.3.4.1
date	2011.03.27.13.33.04;	author jruoho;	state dead;
branches;
next	1.3.4.2;

1.3.4.2
date	2011.06.06.09.08.07;	author jruoho;	state Exp;
branches;
next	;

1.1.2.1
date	2011.02.26.18.07.31;	author bouyer;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2011.03.05.15.10.22;	author bouyer;	state Exp;
branches;
next	;

1.1.4.1
date	2011.02.26.18.07.31;	author rmind;	state dead;
branches;
next	1.1.4.2;

1.1.4.2
date	2011.03.05.20.53.33;	author rmind;	state Exp;
branches;
next	1.1.4.3;

1.1.4.3
date	2011.04.21.01.41.48;	author rmind;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Add support for decoding legacy Toshiba TC58NVG2S0H NAND chip params.
@
text
@# $NetBSD: files.nand,v 1.5 2012/10/31 18:58:08 riz Exp $

define	nandbus	{ }

device	nand: flashbus
attach	nand at nandbus
file	dev/nand/nand.c		nand
file	dev/nand/hamming.c	nand
file	dev/nand/nand_bbt.c	nand
file	dev/nand/nand_crc.c	nand
file	dev/nand/nand_micron.c	nand
file	dev/nand/nand_samsung.c	nand
file	dev/nand/nand_toshiba.c	nand

defpseudodev	nandemulator: nandbus
file	dev/nand/nandemulator.c	nandemulator

defflag opt_nand.h		NAND_BBT
defflag opt_nand.h		NAND_DEBUG
defflag opt_nand.h		NAND_VERBOSE
@


1.5
log
@Hook nand_samsung.c into the build, and use it if a legacy chip
from Samsung is found.
@
text
@d1 1
a1 1
# $NetBSD: files.nand,v 1.4 2011/06/28 18:14:11 ahoka Exp $
d13 1
@


1.4
log
@Refactor flash and nand driver, so we can reuse the io thread code
in the future nor driver (and any other future driver).

Also simplify some of the code in the process, eg. saner flash attachment.
@
text
@d1 1
a1 1
# $NetBSD: files.nand,v 1.3 2011/03/27 13:33:04 ahoka Exp $
d12 1
@


1.4.4.1
log
@sync with (a bit old) head
@
text
@d1 1
a1 1
# $NetBSD: files.nand,v 1.4 2011/06/28 18:14:11 ahoka Exp $
a11 1
file	dev/nand/nand_samsung.c	nand
@


1.4.16.1
log
@Resync to 2012-11-19 00:00:00 UTC
@
text
@d1 1
a1 1
# $NetBSD: files.nand,v 1.5 2012/10/31 18:58:08 riz Exp $
a11 1
file	dev/nand/nand_samsung.c	nand
@


1.4.16.2
log
@update from HEAD
@
text
@d1 1
a1 1
# $NetBSD$
a12 1
file	dev/nand/nand_toshiba.c	nand
@


1.4.10.1
log
@file files.nand was added on branch matt-nb5-mips64 on 2011-12-27 17:35:47 +0000
@
text
@d1 18
@


1.4.10.2
log
@Merge flash/nand/nor infrastruct from matt-nb5-pq3.
@
text
@a0 18
# $NetBSD: files.nand,v 1.4.2.2 2011/07/26 03:22:27 matt Exp $

define	nandbus	{ }

device	nand: flashbus
attach	nand at nandbus
file	dev/nand/nand.c		nand
file	dev/nand/hamming.c	nand
file	dev/nand/nand_bbt.c	nand
file	dev/nand/nand_crc.c	nand
file	dev/nand/nand_micron.c	nand

defpseudodev	nandemulator: nandbus
file	dev/nand/nandemulator.c	nandemulator

defflag opt_nand.h		NAND_BBT
defflag opt_nand.h		NAND_DEBUG
defflag opt_nand.h		NAND_VERBOSE
@


1.4.2.1
log
@file files.nand was added on branch matt-nb5-pq3 on 2011-07-26 03:22:27 +0000
@
text
@d1 18
@


1.4.2.2
log
@Backport flash/nand/nor subsystem from -HEAD.
@
text
@a0 18
# $NetBSD: files.nand,v 1.4 2011/06/28 18:14:11 ahoka Exp $

define	nandbus	{ }

device	nand: flashbus
attach	nand at nandbus
file	dev/nand/nand.c		nand
file	dev/nand/hamming.c	nand
file	dev/nand/nand_bbt.c	nand
file	dev/nand/nand_crc.c	nand
file	dev/nand/nand_micron.c	nand

defpseudodev	nandemulator: nandbus
file	dev/nand/nandemulator.c	nandemulator

defflag opt_nand.h		NAND_BBT
defflag opt_nand.h		NAND_DEBUG
defflag opt_nand.h		NAND_VERBOSE
@


1.3
log
@Add support for redifining page read and program functions by drivers.
Some controllers implement read/write in one step, so this is required
to support those.
@
text
@d1 1
a1 1
# $NetBSD: files.nand,v 1.2 2011/03/09 10:05:08 ahoka Exp $
a7 1
file	dev/nand/nand_io.c	nand
@


1.3.4.1
log
@file files.nand was added on branch jruoho-x86intr on 2011-06-06 09:08:07 +0000
@
text
@d1 19
@


1.3.4.2
log
@Sync with HEAD.
@
text
@a0 19
# $NetBSD: files.nand,v 1.3 2011/03/27 13:33:04 ahoka Exp $

define	nandbus	{ }

device	nand: flashbus
attach	nand at nandbus
file	dev/nand/nand.c		nand
file	dev/nand/nand_io.c	nand
file	dev/nand/hamming.c	nand
file	dev/nand/nand_bbt.c	nand
file	dev/nand/nand_crc.c	nand
file	dev/nand/nand_micron.c	nand

defpseudodev	nandemulator: nandbus
file	dev/nand/nandemulator.c	nandemulator

defflag opt_nand.h		NAND_BBT
defflag opt_nand.h		NAND_DEBUG
defflag opt_nand.h		NAND_VERBOSE
@


1.2
log
@Add support for legacy devices not supporting the ONFI READ_PARAMETER_PAGE
command with example usage for Micron chips
@
text
@d1 1
a1 1
# $NetBSD: files.nand,v 1.1 2011/02/26 18:07:31 ahoka Exp $
d18 2
@


1.1
log
@Import the Flash and NAND subsytem code contributed by the University
of Szeged, Hungary.

The commit includes:
 - Flash layer, which gives a common API to access flash devices
 - NAND controller subsystem for the flash layer
 - An example OMAP driver which is used on BeagleBoard or alike ARM boards
@
text
@d1 1
a1 1
# $NetBSD$
d12 1
@


1.1.4.1
log
@file files.nand was added on branch rmind-uvmplock on 2011-03-05 20:53:33 +0000
@
text
@d1 16
@


1.1.4.2
log
@sync with head
@
text
@a0 16
# $NetBSD$

define	nandbus	{ }

device	nand: flashbus
attach	nand at nandbus
file	dev/nand/nand.c		nand
file	dev/nand/nand_io.c	nand
file	dev/nand/hamming.c	nand
file	dev/nand/nand_bbt.c	nand
file	dev/nand/nand_crc.c	nand

defpseudodev	nandemulator: nandbus
file	dev/nand/nandemulator.c	nandemulator

defflag opt_nand.h		NAND_BBT
@


1.1.4.3
log
@sync with head
@
text
@a11 1
file	dev/nand/nand_micron.c	nand
a16 2
defflag opt_nand.h		NAND_DEBUG
defflag opt_nand.h		NAND_VERBOSE
@


1.1.2.1
log
@file files.nand was added on branch bouyer-quota2 on 2011-03-05 15:10:22 +0000
@
text
@d1 16
@


1.1.2.2
log
@Sync with HEAD
@
text
@a0 16
# $NetBSD$

define	nandbus	{ }

device	nand: flashbus
attach	nand at nandbus
file	dev/nand/nand.c		nand
file	dev/nand/nand_io.c	nand
file	dev/nand/hamming.c	nand
file	dev/nand/nand_bbt.c	nand
file	dev/nand/nand_crc.c	nand

defpseudodev	nandemulator: nandbus
file	dev/nand/nandemulator.c	nandemulator

defflag opt_nand.h		NAND_BBT
@


