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 <kris...@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 */ _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"