Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/lubbock pass correct atttach args to sacc_pr...
details: https://anonhg.NetBSD.org/src/rev/06c021372252
branches: trunk
changeset: 752960:06c021372252
user: bsh <bsh%NetBSD.org@localhost>
date: Sat Mar 13 10:55:09 2010 +0000
description:
pass correct atttach args to sacc_probe()
diffstat:
sys/arch/evbarm/lubbock/sacc_obio.c | 23 ++++++++++++++++++++---
1 files changed, 20 insertions(+), 3 deletions(-)
diffs (54 lines):
diff -r 175d4bc786b0 -r 06c021372252 sys/arch/evbarm/lubbock/sacc_obio.c
--- a/sys/arch/evbarm/lubbock/sacc_obio.c Sat Mar 13 08:36:06 2010 +0000
+++ b/sys/arch/evbarm/lubbock/sacc_obio.c Sat Mar 13 10:55:09 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sacc_obio.c,v 1.10 2009/05/29 14:15:44 rjs Exp $ */
+/* $NetBSD: sacc_obio.c,v 1.11 2010/03/13 10:55:09 bsh Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sacc_obio.c,v 1.10 2009/05/29 14:15:44 rjs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sacc_obio.c,v 1.11 2010/03/13 10:55:09 bsh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -65,10 +65,11 @@
#include <evbarm/lubbock/lubbock_var.h>
+static int sacc_obio_probe(device_t parent, cfdata_t match, void *aux);
static void sacc_obio_attach(device_t, device_t, void *);
static int sacc_obio_intr(void *arg);
-CFATTACH_DECL_NEW(sacc_obio, sizeof(struct sacc_softc), sacc_probe,
+CFATTACH_DECL_NEW(sacc_obio, sizeof(struct sacc_softc), sacc_obio_probe,
sacc_obio_attach, NULL, NULL);
#if 0
@@ -79,6 +80,22 @@
uint16_t cs2_memctl_init = 0x7ff0;
+static int
+sacc_obio_probe(device_t parent, cfdata_t match, void *aux)
+{
+ struct obio_attach_args *oa = aux;
+ struct sa11x0_attach_args sa;
+
+ printf("%s: addr=%lx\n", __func__, oa->oba_addr);
+
+ sa.sa_sc = oa->oba_sc;
+ sa.sa_iot = oa->oba_iot;
+ sa.sa_addr = oa->oba_addr;
+ sa.sa_size = 0x2000;
+
+ return sacc_probe(parent, match, &sa);
+}
+
static void
sacc_obio_attach(device_t parent, device_t self, void *aux)
{
Home |
Main Index |
Thread Index |
Old Index