Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/nand Make this compile. (Still untested)



details:   https://anonhg.NetBSD.org/src/rev/7f87dce1582f
branches:  trunk
changeset: 782368:7f87dce1582f
user:      riz <riz%NetBSD.org@localhost>
date:      Tue Oct 30 22:43:36 2012 +0000

description:
Make this compile.  (Still untested)

diffstat:

 sys/dev/nand/nand_samsung.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (47 lines):

diff -r 0c9cc56a3768 -r 7f87dce1582f sys/dev/nand/nand_samsung.c
--- a/sys/dev/nand/nand_samsung.c       Tue Oct 30 22:29:01 2012 +0000
+++ b/sys/dev/nand/nand_samsung.c       Tue Oct 30 22:43:36 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nand_samsung.c,v 1.1 2012/10/30 22:03:00 ahoka Exp $   */
+/*     $NetBSD: nand_samsung.c,v 1.2 2012/10/30 22:43:36 riz Exp $     */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nand_samsung.c,v 1.1 2012/10/30 22:03:00 ahoka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nand_samsung.c,v 1.2 2012/10/30 22:43:36 riz Exp $");
 
 #include "nand.h"
 #include "onfi.h"
@@ -47,9 +47,9 @@
 {
        uint8_t mfgrid;
        uint8_t devid;
-       uint8_t dontcare1;
-       uint8_t dontcare2;
+       uint8_t params1;
        uint8_t params2;
+       uint8_t params3;
 
        /* Only for Samsung devices, obviously */
        if (chip->nc_manf_id != NAND_MFR_SAMSUNG) {
@@ -94,13 +94,13 @@
                case 0x0:
                        chip->nc_block_size = 64 * 1024;
                        break;
-               case 0x0:
+               case 0x1:
                        chip->nc_block_size = 128 * 1024;
                        break;
-               case 0x0:
+               case 0x2:
                        chip->nc_block_size = 256 * 1024;
                        break;
-               case 0x0:
+               case 0x3:
                        chip->nc_block_size = 512 * 1024;
                        break;
                }



Home | Main Index | Thread Index | Old Index