Date: Fri, 15 Nov 2013 23:31:39 +0000 (UTC) From: Ian Lepore <ian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r258196 - head/sys/dev/nand Message-ID: <201311152331.rAFNVdLE031155@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ian Date: Fri Nov 15 23:31:39 2013 New Revision: 258196 URL: http://svnweb.freebsd.org/changeset/base/258196 Log: The vendor specified field is 88 bytes, not 8 bytes. Submitted by: Kristof Provost <kristof@sigsegv.be> Modified: head/sys/dev/nand/nand.h Modified: head/sys/dev/nand/nand.h ============================================================================== --- head/sys/dev/nand/nand.h Fri Nov 15 22:45:14 2013 (r258195) +++ head/sys/dev/nand/nand.h Fri Nov 15 23:31:39 2013 (r258196) @@ -31,6 +31,7 @@ #include <sys/bus.h> #include <sys/param.h> +#include <sys/systm.h> #include <sys/lock.h> #include <sys/sx.h> #include <sys/taskqueue.h> @@ -218,9 +219,10 @@ struct onfi_params { uint8_t driver_strength_support; uint8_t res4[12]; uint16_t vendor_rev; - uint8_t vendor_spec[8]; + uint8_t vendor_spec[88]; uint16_t crc; }__attribute__((packed)); +CTASSERT(sizeof(struct onfi_params) == 256); struct nand_ecc_data { int eccsize; /* Number of data bytes per ECC step */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311152331.rAFNVdLE031155>