Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Nov 2013 23:45:13 +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: r258201 - head/sys/dev/nand
Message-ID:  <201311152345.rAFNjDkI034988@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Fri Nov 15 23:45:13 2013
New Revision: 258201
URL: http://svnweb.freebsd.org/changeset/base/258201

Log:
  Move the luns field to the end of the struct, for serendipitous packing.
  (I was supposed to do this before committing it initially.)

Modified:
  head/sys/dev/nand/nand.h

Modified: head/sys/dev/nand/nand.h
==============================================================================
--- head/sys/dev/nand/nand.h	Fri Nov 15 23:41:32 2013	(r258200)
+++ head/sys/dev/nand/nand.h	Fri Nov 15 23:45:13 2013	(r258201)
@@ -236,7 +236,6 @@ struct onfi_params {
 CTASSERT(sizeof(struct onfi_params) == 256);
 
 struct onfi_chip_params {
-	uint8_t luns;
 	uint32_t blocks_per_lun;
 	uint32_t pages_per_block;
 	uint32_t bytes_per_page;
@@ -247,6 +246,7 @@ struct onfi_chip_params {
 	uint16_t t_ccs;
 	uint16_t features;
 	uint8_t address_cycles;
+	uint8_t luns;
 };
 
 struct nand_ecc_data {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311152345.rAFNjDkI034988>