Module Name:    src
Committed By:   kiyohara
Date:           Mon Mar 15 13:11:23 UTC 2010

Modified Files:
        src/sys/arch/evbarm/gumstix: if_sm_gxio.c

Log Message:
Use bus_space_write_2() instead of _1, because sm(4) is 16bit/word.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/evbarm/gumstix/if_sm_gxio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbarm/gumstix/if_sm_gxio.c
diff -u src/sys/arch/evbarm/gumstix/if_sm_gxio.c:1.7 src/sys/arch/evbarm/gumstix/if_sm_gxio.c:1.8
--- src/sys/arch/evbarm/gumstix/if_sm_gxio.c:1.7	Sun Aug  9 07:10:13 2009
+++ src/sys/arch/evbarm/gumstix/if_sm_gxio.c	Mon Mar 15 13:11:23 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_sm_gxio.c,v 1.7 2009/08/09 07:10:13 kiyohara Exp $ */
+/*	$NetBSD: if_sm_gxio.c,v 1.8 2010/03/15 13:11:23 kiyohara Exp $ */
 /*
  * Copyright (C) 2005, 2006 WIDE Project and SOUM Corporation.
  * All rights reserved.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_sm_gxio.c,v 1.7 2009/08/09 07:10:13 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_sm_gxio.c,v 1.8 2010/03/15 13:11:23 kiyohara Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -136,7 +136,7 @@
 	 * Switch to bank 0 and perform the test again.
 	 * XXX INVASIVE!
 	 */
-	bus_space_write_1(iot, ioh, BANK_SELECT_REG_W, 0);
+	bus_space_write_2(iot, ioh, BANK_SELECT_REG_W, 0);
 	tmp = bus_space_read_2(iot, ioh, BANK_SELECT_REG_W);
 	if ((tmp & BSR_DETECT_MASK) != BSR_DETECT_VALUE)
 		goto out;
@@ -145,7 +145,7 @@
 	 * Check for a recognized chip id.
 	 * XXX INVASIVE!
 	 */
-	bus_space_write_1(iot, ioh, BANK_SELECT_REG_W, 3);
+	bus_space_write_2(iot, ioh, BANK_SELECT_REG_W, 3);
 	tmp = bus_space_read_2(iot, ioh, REVISION_REG_W);
 	if (smc91cxx_idstrs[RR_ID(tmp)] == NULL)
 		goto out;

Reply via email to