Mon May 4 12:14:31 2009 UTC ()
struct device * -> device_t
No functional changes intended.


(cegger)
diff -r1.35 -r1.36 src/sys/arch/i386/isa/ahc_isa.c
diff -r1.54 -r1.55 src/sys/arch/i386/isa/lms.c
diff -r1.51 -r1.52 src/sys/arch/i386/isa/mms.c

cvs diff -r1.35 -r1.36 src/sys/arch/i386/isa/ahc_isa.c (expand / switch to unified diff)

--- src/sys/arch/i386/isa/ahc_isa.c 2008/04/28 20:23:24 1.35
+++ src/sys/arch/i386/isa/ahc_isa.c 2009/05/04 12:14:31 1.36
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: ahc_isa.c,v 1.35 2008/04/28 20:23:24 martin Exp $ */ 1/* $NetBSD: ahc_isa.c,v 1.36 2009/05/04 12:14:31 cegger Exp $ */
2 2
3/* 3/*
4 * Product specific probe and attach routines for: 4 * Product specific probe and attach routines for:
5 * AHA-284X VL-bus SCSI controllers 5 * AHA-284X VL-bus SCSI controllers
6 * 6 *
7 * Copyright (c) 1994, 1995, 1996, 1997, 1998 Justin T. Gibbs. 7 * Copyright (c) 1994, 1995, 1996, 1997, 1998 Justin T. Gibbs.
8 * All rights reserved. 8 * All rights reserved.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice immediately at the beginning of the file, without modification, 14 * notice immediately at the beginning of the file, without modification,
@@ -100,27 +100,27 @@ @@ -100,27 +100,27 @@
100 * by looking in "EISA i/o space" for 284X controllers. 100 * by looking in "EISA i/o space" for 284X controllers.
101 * 101 *
102 * This relies heavily on i/o port accounting. We also just use the 102 * This relies heavily on i/o port accounting. We also just use the
103 * EISA macros for everything ... it's a real waste to redefine them. 103 * EISA macros for everything ... it's a real waste to redefine them.
104 * 104 *
105 * Note: there isn't any #ifdef for FreeBSD in this file, since the 105 * Note: there isn't any #ifdef for FreeBSD in this file, since the
106 * FreeBSD EISA driver handles all cases of the 284X. 106 * FreeBSD EISA driver handles all cases of the 284X.
107 * 107 *
108 * -- Jason R. Thorpe <thorpej@NetBSD.org> 108 * -- Jason R. Thorpe <thorpej@NetBSD.org>
109 * July 12, 1996 109 * July 12, 1996
110 */ 110 */
111 111
112#include <sys/cdefs.h> 112#include <sys/cdefs.h>
113__KERNEL_RCSID(0, "$NetBSD: ahc_isa.c,v 1.35 2008/04/28 20:23:24 martin Exp $"); 113__KERNEL_RCSID(0, "$NetBSD: ahc_isa.c,v 1.36 2009/05/04 12:14:31 cegger Exp $");
114 114
115#include <sys/param.h> 115#include <sys/param.h>
116#include <sys/systm.h> 116#include <sys/systm.h>
117#include <sys/kernel.h> 117#include <sys/kernel.h>
118#include <sys/device.h> 118#include <sys/device.h>
119#include <sys/queue.h> 119#include <sys/queue.h>
120#include <sys/malloc.h> 120#include <sys/malloc.h>
121#include <sys/reboot.h> 121#include <sys/reboot.h>
122 122
123#include <machine/bus.h> 123#include <machine/bus.h>
124#include <machine/intr.h> 124#include <machine/intr.h>
125 125
126#include <dev/scsipi/scsi_all.h> 126#include <dev/scsipi/scsi_all.h>
@@ -152,28 +152,28 @@ __KERNEL_RCSID(0, "$NetBSD: ahc_isa.c,v  @@ -152,28 +152,28 @@ __KERNEL_RCSID(0, "$NetBSD: ahc_isa.c,v
152#define AHC_ISA_VID (EISA_SLOTOFF_VID - AHC_ISA_SLOT_OFFSET) 152#define AHC_ISA_VID (EISA_SLOTOFF_VID - AHC_ISA_SLOT_OFFSET)
153#define AHC_ISA_PID (EISA_SLOTOFF_PID - AHC_ISA_SLOT_OFFSET) 153#define AHC_ISA_PID (EISA_SLOTOFF_PID - AHC_ISA_SLOT_OFFSET)
154#define AHC_ISA_PRIMING AHC_ISA_VID /* enable vendor/product ID */ 154#define AHC_ISA_PRIMING AHC_ISA_VID /* enable vendor/product ID */
155 155
156/* 156/*
157 * AHC_ISA_PRIMING register values (write) 157 * AHC_ISA_PRIMING register values (write)
158 */ 158 */
159#define AHC_ISA_PRIMING_VID(index) (AHC_ISA_VID + (index)) 159#define AHC_ISA_PRIMING_VID(index) (AHC_ISA_VID + (index))
160#define AHC_ISA_PRIMING_PID(index) (AHC_ISA_PID + (index)) 160#define AHC_ISA_PRIMING_PID(index) (AHC_ISA_PID + (index))
161 161
162int ahc_isa_idstring(bus_space_tag_t, bus_space_handle_t, char *); 162int ahc_isa_idstring(bus_space_tag_t, bus_space_handle_t, char *);
163int ahc_isa_match(struct isa_attach_args *, bus_addr_t); 163int ahc_isa_match(struct isa_attach_args *, bus_addr_t);
164 164
165int ahc_isa_probe(struct device *, struct cfdata *, void *); 165int ahc_isa_probe(device_t, cfdata_t, void *);
166void ahc_isa_attach(struct device *, struct device *, void *); 166void ahc_isa_attach(device_t, device_t, void *);
167void aha2840_load_seeprom(struct ahc_softc *ahc); 167void aha2840_load_seeprom(struct ahc_softc *ahc);
168static int verify_seeprom_cksum(struct seeprom_config *sc); 168static int verify_seeprom_cksum(struct seeprom_config *sc);
169 169
170CFATTACH_DECL(ahc_isa, sizeof(struct ahc_softc), 170CFATTACH_DECL(ahc_isa, sizeof(struct ahc_softc),
171 ahc_isa_probe, ahc_isa_attach, NULL, NULL); 171 ahc_isa_probe, ahc_isa_attach, NULL, NULL);
172 172
173/* 173/*
174 * This keeps track of which slots are to be checked next if the 174 * This keeps track of which slots are to be checked next if the
175 * iobase locator is a wildcard. A simple static variable isn't enough, 175 * iobase locator is a wildcard. A simple static variable isn't enough,
176 * since it's conceivable that a system might have more than one ISA 176 * since it's conceivable that a system might have more than one ISA
177 * bus. 177 * bus.
178 * 178 *
179 * The "bus" member is the unit number of the parent ISA bus, e.g. "0" 179 * The "bus" member is the unit number of the parent ISA bus, e.g. "0"
@@ -293,27 +293,27 @@ ahc_isa_match(struct isa_attach_args *ia @@ -293,27 +293,27 @@ ahc_isa_match(struct isa_attach_args *ia
293 293
294 ia->ia_ndrq = 0; 294 ia->ia_ndrq = 0;
295 ia->ia_niomem = 0; 295 ia->ia_niomem = 0;
296 296
297 return (1); 297 return (1);
298} 298}
299 299
300/* 300/*
301 * Check the slots looking for a board we recognise 301 * Check the slots looking for a board we recognise
302 * If we find one, note it's address (slot) and call 302 * If we find one, note it's address (slot) and call
303 * the actual probe routine to check it out. 303 * the actual probe routine to check it out.
304 */ 304 */
305int 305int
306ahc_isa_probe(struct device *parent, struct cfdata *match, void *aux) 306ahc_isa_probe(device_t parent, cfdata_t match, void *aux)
307{  307{
308 struct isa_attach_args *ia = aux; 308 struct isa_attach_args *ia = aux;
309 struct ahc_isa_slot *as; 309 struct ahc_isa_slot *as;
310 310
311 if (ahc_isa_slot_initialized == 0) { 311 if (ahc_isa_slot_initialized == 0) {
312 LIST_INIT(&ahc_isa_all_slots); 312 LIST_INIT(&ahc_isa_all_slots);
313 ahc_isa_slot_initialized = 1; 313 ahc_isa_slot_initialized = 1;
314 } 314 }
315 315
316 if (ia->ia_nio < 1) 316 if (ia->ia_nio < 1)
317 return (0); 317 return (0);
318 if (ia->ia_nirq < 1) 318 if (ia->ia_nirq < 1)
319 return (0); 319 return (0);
@@ -350,29 +350,29 @@ ahc_isa_probe(struct device *parent, str @@ -350,29 +350,29 @@ ahc_isa_probe(struct device *parent, str
350 for (; as->slot <= AHC_ISA_MAX_SLOT; as->slot++) { 350 for (; as->slot <= AHC_ISA_MAX_SLOT; as->slot++) {
351 if (ahc_isa_match(ia, EISA_SLOT_ADDR(as->slot) + 351 if (ahc_isa_match(ia, EISA_SLOT_ADDR(as->slot) +
352 AHC_ISA_SLOT_OFFSET)) { 352 AHC_ISA_SLOT_OFFSET)) {
353 as->slot++; /* next slot to search */ 353 as->slot++; /* next slot to search */
354 return (1); 354 return (1);
355 } 355 }
356 } 356 }
357 357
358 /* No matching cards were found. */ 358 /* No matching cards were found. */
359 return (0); 359 return (0);
360} 360}
361 361
362void 362void
363ahc_isa_attach(struct device *parent, struct device *self, void *aux) 363ahc_isa_attach(device_t parent, device_t self, void *aux)
364{ 364{
365 struct ahc_softc *ahc = (void *)self; 365 struct ahc_softc *ahc = device_private(self);
366 struct isa_attach_args *ia = aux; 366 struct isa_attach_args *ia = aux;
367 bus_space_tag_t iot = ia->ia_iot; 367 bus_space_tag_t iot = ia->ia_iot;
368 bus_space_handle_t ioh; 368 bus_space_handle_t ioh;
369 int irq, intrtype; 369 int irq, intrtype;
370 const char *intrtypestr; 370 const char *intrtypestr;
371 char idstring[EISA_IDSTRINGLEN]; 371 char idstring[EISA_IDSTRINGLEN];
372 u_char intdef; 372 u_char intdef;
373 373
374 aprint_naive(": SCSI controller\n"); 374 aprint_naive(": SCSI controller\n");
375 375
376 if (bus_space_map(iot, ia->ia_io[0].ir_addr, ia->ia_io[0].ir_size, 376 if (bus_space_map(iot, ia->ia_io[0].ir_addr, ia->ia_io[0].ir_size,
377 0, &ioh)) { 377 0, &ioh)) {
378 aprint_error(": can't map i/o space\n"); 378 aprint_error(": can't map i/o space\n");

cvs diff -r1.54 -r1.55 src/sys/arch/i386/isa/lms.c (expand / switch to unified diff)

--- src/sys/arch/i386/isa/lms.c 2008/07/09 20:50:41 1.54
+++ src/sys/arch/i386/isa/lms.c 2009/05/04 12:14:31 1.55
@@ -1,40 +1,40 @@ @@ -1,40 +1,40 @@
1/* $NetBSD: lms.c,v 1.54 2008/07/09 20:50:41 joerg Exp $ */ 1/* $NetBSD: lms.c,v 1.55 2009/05/04 12:14:31 cegger Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 1993, 1994 Charles M. Hannum. 4 * Copyright (c) 1993, 1994 Charles M. Hannum.
5 * Copyright (c) 1992, 1993 Erik Forsberg. 5 * Copyright (c) 1992, 1993 Erik Forsberg.
6 * All rights reserved. 6 * All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
11 * 1. Redistributions of source code must retain the above copyright 11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer. 12 * notice, this list of conditions and the following disclaimer.
13 * 13 *
14 * THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS OR IMPLIED 14 * THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS OR IMPLIED
15 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 15 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
16 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN 16 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
17 * NO EVENT SHALL I BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 17 * NO EVENT SHALL I BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
21 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 21 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
22 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 22 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26#include <sys/cdefs.h> 26#include <sys/cdefs.h>
27__KERNEL_RCSID(0, "$NetBSD: lms.c,v 1.54 2008/07/09 20:50:41 joerg Exp $"); 27__KERNEL_RCSID(0, "$NetBSD: lms.c,v 1.55 2009/05/04 12:14:31 cegger Exp $");
28 28
29#include <sys/param.h> 29#include <sys/param.h>
30#include <sys/systm.h> 30#include <sys/systm.h>
31#include <sys/ioctl.h> 31#include <sys/ioctl.h>
32#include <sys/device.h> 32#include <sys/device.h>
33 33
34#include <machine/bus.h> 34#include <machine/bus.h>
35#include <machine/intr.h> 35#include <machine/intr.h>
36 36
37#include <dev/isa/isavar.h> 37#include <dev/isa/isavar.h>
38 38
39#include <dev/wscons/wsconsio.h> 39#include <dev/wscons/wsconsio.h>
40#include <dev/wscons/wsmousevar.h> 40#include <dev/wscons/wsmousevar.h>
@@ -45,27 +45,27 @@ __KERNEL_RCSID(0, "$NetBSD: lms.c,v 1.54 @@ -45,27 +45,27 @@ __KERNEL_RCSID(0, "$NetBSD: lms.c,v 1.54
45#define LMS_CNTRL 2 /* offset for control port, write-only */ 45#define LMS_CNTRL 2 /* offset for control port, write-only */
46#define LMS_CONFIG 3 /* for configuration port, read-write */ 46#define LMS_CONFIG 3 /* for configuration port, read-write */
47#define LMS_NPORTS 4 47#define LMS_NPORTS 4
48 48
49struct lms_softc { /* driver status information */ 49struct lms_softc { /* driver status information */
50 void *sc_ih; 50 void *sc_ih;
51 51
52 bus_space_tag_t sc_iot; /* bus i/o space identifier */ 52 bus_space_tag_t sc_iot; /* bus i/o space identifier */
53 bus_space_handle_t sc_ioh; /* bus i/o handle */ 53 bus_space_handle_t sc_ioh; /* bus i/o handle */
54 54
55 int sc_enabled; /* device is open */ 55 int sc_enabled; /* device is open */
56 int oldbuttons; /* mouse button status */ 56 int oldbuttons; /* mouse button status */
57 57
58 struct device *sc_wsmousedev; 58 device_t sc_wsmousedev;
59}; 59};
60 60
61static int lmsprobe(device_t, cfdata_t, void *); 61static int lmsprobe(device_t, cfdata_t, void *);
62static void lmsattach(device_t, device_t, void *); 62static void lmsattach(device_t, device_t, void *);
63static int lmsintr(void *); 63static int lmsintr(void *);
64 64
65CFATTACH_DECL_NEW(lms, sizeof(struct lms_softc), 65CFATTACH_DECL_NEW(lms, sizeof(struct lms_softc),
66 lmsprobe, lmsattach, NULL, NULL); 66 lmsprobe, lmsattach, NULL, NULL);
67 67
68static int lms_enable(void *); 68static int lms_enable(void *);
69static int lms_ioctl(void *, u_long, void *, int, struct lwp *); 69static int lms_ioctl(void *, u_long, void *, int, struct lwp *);
70static void lms_disable(void *); 70static void lms_disable(void *);
71 71

cvs diff -r1.51 -r1.52 src/sys/arch/i386/isa/mms.c (expand / switch to unified diff)

--- src/sys/arch/i386/isa/mms.c 2008/07/09 20:54:13 1.51
+++ src/sys/arch/i386/isa/mms.c 2009/05/04 12:14:31 1.52
@@ -1,40 +1,40 @@ @@ -1,40 +1,40 @@
1/* $NetBSD: mms.c,v 1.51 2008/07/09 20:54:13 joerg Exp $ */ 1/* $NetBSD: mms.c,v 1.52 2009/05/04 12:14:31 cegger Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 1993, 1994 Charles M. Hannum. 4 * Copyright (c) 1993, 1994 Charles M. Hannum.
5 * Copyright (c) 1992, 1993 Erik Forsberg. 5 * Copyright (c) 1992, 1993 Erik Forsberg.
6 * All rights reserved. 6 * All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
11 * 1. Redistributions of source code must retain the above copyright 11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer. 12 * notice, this list of conditions and the following disclaimer.
13 * 13 *
14 * THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS OR IMPLIED 14 * THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS OR IMPLIED
15 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 15 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
16 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN 16 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
17 * NO EVENT SHALL I BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 17 * NO EVENT SHALL I BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
21 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 21 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
22 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 22 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26#include <sys/cdefs.h> 26#include <sys/cdefs.h>
27__KERNEL_RCSID(0, "$NetBSD: mms.c,v 1.51 2008/07/09 20:54:13 joerg Exp $"); 27__KERNEL_RCSID(0, "$NetBSD: mms.c,v 1.52 2009/05/04 12:14:31 cegger Exp $");
28 28
29#include <sys/param.h> 29#include <sys/param.h>
30#include <sys/systm.h> 30#include <sys/systm.h>
31#include <sys/ioctl.h> 31#include <sys/ioctl.h>
32#include <sys/device.h> 32#include <sys/device.h>
33 33
34#include <machine/intr.h> 34#include <machine/intr.h>
35#include <machine/bus.h> 35#include <machine/bus.h>
36 36
37#include <dev/isa/isavar.h> 37#include <dev/isa/isavar.h>
38 38
39#include <dev/wscons/wsconsio.h> 39#include <dev/wscons/wsconsio.h>
40#include <dev/wscons/wsmousevar.h> 40#include <dev/wscons/wsmousevar.h>
@@ -42,27 +42,27 @@ __KERNEL_RCSID(0, "$NetBSD: mms.c,v 1.51 @@ -42,27 +42,27 @@ __KERNEL_RCSID(0, "$NetBSD: mms.c,v 1.51
42#define MMS_ADDR 0 /* offset for register select */ 42#define MMS_ADDR 0 /* offset for register select */
43#define MMS_DATA 1 /* offset for InPort data */ 43#define MMS_DATA 1 /* offset for InPort data */
44#define MMS_IDENT 2 /* offset for identification register */ 44#define MMS_IDENT 2 /* offset for identification register */
45#define MMS_NPORTS 4 45#define MMS_NPORTS 4
46 46
47struct mms_softc { /* driver status information */ 47struct mms_softc { /* driver status information */
48 void *sc_ih; 48 void *sc_ih;
49 49
50 bus_space_tag_t sc_iot; 50 bus_space_tag_t sc_iot;
51 bus_space_handle_t sc_ioh; 51 bus_space_handle_t sc_ioh;
52 52
53 int sc_enabled; /* device is open */ 53 int sc_enabled; /* device is open */
54 54
55 struct device *sc_wsmousedev; 55 device_t sc_wsmousedev;
56}; 56};
57 57
58static int mmsprobe(device_t, cfdata_t, void *); 58static int mmsprobe(device_t, cfdata_t, void *);
59static void mmsattach(device_t, device_t, void *); 59static void mmsattach(device_t, device_t, void *);
60static int mmsintr(void *); 60static int mmsintr(void *);
61 61
62CFATTACH_DECL_NEW(mms, sizeof(struct mms_softc), 62CFATTACH_DECL_NEW(mms, sizeof(struct mms_softc),
63 mmsprobe, mmsattach, NULL, NULL); 63 mmsprobe, mmsattach, NULL, NULL);
64 64
65static int mms_enable(void *); 65static int mms_enable(void *);
66static int mms_ioctl(void *, u_long, void *, int, struct lwp *); 66static int mms_ioctl(void *, u_long, void *, int, struct lwp *);
67static void mms_disable(void *); 67static void mms_disable(void *);
68 68