Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mvme Umm, fix more split fallout.
details: https://anonhg.NetBSD.org/src/rev/f81e052d05e8
branches: trunk
changeset: 765770:f81e052d05e8
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sun Jun 05 16:22:00 2011 +0000
description:
Umm, fix more split fallout.
While here use a common arg name (aux) as mentioned in autoconf(9).
diffstat:
sys/dev/mvme/if_ie_mvme.c | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
diffs (72 lines):
diff -r bac1f3160f5e -r f81e052d05e8 sys/dev/mvme/if_ie_mvme.c
--- a/sys/dev/mvme/if_ie_mvme.c Sun Jun 05 16:15:24 2011 +0000
+++ b/sys/dev/mvme/if_ie_mvme.c Sun Jun 05 16:22:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ie_mvme.c,v 1.18 2011/06/05 16:08:20 christos Exp $ */
+/* $NetBSD: if_ie_mvme.c,v 1.19 2011/06/05 16:22:00 tsutsui Exp $ */
/*-
* Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ie_mvme.c,v 1.18 2011/06/05 16:08:20 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ie_mvme.c,v 1.19 2011/06/05 16:22:00 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -68,7 +68,7 @@
struct evcnt ps_evcnt;
};
-CFATTACH_DECL(ie_pcctwo, sizeof(struct ie_pcctwo_softc),
+CFATTACH_DECL_NEW(ie_pcctwo, sizeof(struct ie_pcctwo_softc),
ie_pcctwo_match, ie_pcctwo_attach, NULL, NULL);
extern struct cfdriver ie_cd;
@@ -218,11 +218,11 @@
/* ARGSUSED */
int
-ie_pcctwo_match(device_t parent, cfdata_t cf, void *args)
+ie_pcctwo_match(device_t parent, cfdata_t cf, void *aux)
{
struct pcctwo_attach_args *pa;
- pa = args;
+ pa = aux;
if (strcmp(pa->pa_name, ie_cd.cd_name))
return (0);
@@ -234,7 +234,7 @@
/* ARGSUSED */
void
-ie_pcctwo_attach(device_t parent, device_t self, void *args)
+ie_pcctwo_attach(device_t parent, device_t self, void *aux)
{
struct pcctwo_attach_args *pa;
struct ie_pcctwo_softc *ps;
@@ -242,9 +242,10 @@
bus_dma_segment_t seg;
int rseg;
- pa = (struct pcctwo_attach_args *) args;
+ pa = aux;
ps = device_private(self);
- sc = device_private(self);
+ sc = &ps->ps_ie;
+ sc->sc_dev = self;
/* Map the MPU controller registers in PCCTWO space */
ps->ps_bust = pa->pa_bust;
@@ -308,7 +309,7 @@
/* Register the event counter */
evcnt_attach_dynamic(&ps->ps_evcnt, EVCNT_TYPE_INTR,
- pcctwointr_evcnt(pa->pa_ipl), "ether", device_xname(sc->sc_dev));
+ pcctwointr_evcnt(pa->pa_ipl), "ether", device_xname(self));
/* Finally, hook the hardware interrupt */
pcctwointr_establish(PCCTWOV_LANC_IRQ, i82586_intr, pa->pa_ipl, sc,
Home |
Main Index |
Thread Index |
Old Index