| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: mainbus.c,v 1.2 2008/12/21 09:24:27 isaki Exp $ */ | | 1 | /* $NetBSD: mainbus.c,v 1.3 2008/12/31 08:33:20 isaki Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (c) 2008 Tetsuya Isaki. All rights reserved. | | 4 | * Copyright (c) 2008 Tetsuya Isaki. All rights reserved. |
5 | * | | 5 | * |
6 | * Redistribution and use in source and binary forms, with or without | | 6 | * Redistribution and use in source and binary forms, with or without |
7 | * modification, are permitted provided that the following conditions | | 7 | * modification, are permitted provided that the following conditions |
8 | * are met: | | 8 | * are met: |
9 | * 1. Redistributions of source code must retain the above copyright | | 9 | * 1. Redistributions of source code must retain the above copyright |
10 | * notice, this list of conditions and the following disclaimer. | | 10 | * notice, this list of conditions and the following disclaimer. |
11 | * 2. Redistributions in binary form must reproduce the above copyright | | 11 | * 2. Redistributions in binary form must reproduce the above copyright |
12 | * notice, this list of conditions and the following disclaimer in the | | 12 | * notice, this list of conditions and the following disclaimer in the |
13 | * documentation and/or other materials provided with the distribution. | | 13 | * documentation and/or other materials provided with the distribution. |
14 | * 3. The name of the author may not be used to endorse or promote products | | 14 | * 3. The name of the author may not be used to endorse or promote products |
| @@ -22,27 +22,27 @@ | | | @@ -22,27 +22,27 @@ |
22 | * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | | 22 | * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED | | 23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED |
24 | * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | | 24 | * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
25 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | | 25 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | | 26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
27 | * SUCH DAMAGE. | | 27 | * SUCH DAMAGE. |
28 | */ | | 28 | */ |
29 | | | 29 | |
30 | /* | | 30 | /* |
31 | * mainbus driver | | 31 | * mainbus driver |
32 | */ | | 32 | */ |
33 | | | 33 | |
34 | #include <sys/cdefs.h> | | 34 | #include <sys/cdefs.h> |
35 | __KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.2 2008/12/21 09:24:27 isaki Exp $"); | | 35 | __KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.3 2008/12/31 08:33:20 isaki Exp $"); |
36 | | | 36 | |
37 | #include <sys/param.h> | | 37 | #include <sys/param.h> |
38 | #include <sys/systm.h> | | 38 | #include <sys/systm.h> |
39 | #include <sys/device.h> | | 39 | #include <sys/device.h> |
40 | | | 40 | |
41 | static int mainbus_match(device_t, cfdata_t, void *); | | 41 | static int mainbus_match(device_t, cfdata_t, void *); |
42 | static void mainbus_attach(device_t, device_t, void *); | | 42 | static void mainbus_attach(device_t, device_t, void *); |
43 | | | 43 | |
44 | CFATTACH_DECL_NEW(mainbus, 0, | | 44 | CFATTACH_DECL_NEW(mainbus, 0, |
45 | mainbus_match, mainbus_attach, NULL, NULL); | | 45 | mainbus_match, mainbus_attach, NULL, NULL); |
46 | | | 46 | |
47 | static int mainbus_attached; | | 47 | static int mainbus_attached; |
48 | | | 48 | |
| @@ -61,15 +61,14 @@ mainbus_match(device_t parent, cfdata_t | | | @@ -61,15 +61,14 @@ mainbus_match(device_t parent, cfdata_t |
61 | */ | | 61 | */ |
62 | static void | | 62 | static void |
63 | mainbus_attach(device_t parent, device_t self, void *aux) | | 63 | mainbus_attach(device_t parent, device_t self, void *aux) |
64 | { | | 64 | { |
65 | | | 65 | |
66 | mainbus_attached = 1; | | 66 | mainbus_attached = 1; |
67 | | | 67 | |
68 | aprint_normal("\n"); | | 68 | aprint_normal("\n"); |
69 | | | 69 | |
70 | config_found(self, __UNCONST("intio") , NULL); | | 70 | config_found(self, __UNCONST("intio") , NULL); |
71 | config_found(self, __UNCONST("grfbus") , NULL); | | 71 | config_found(self, __UNCONST("grfbus") , NULL); |
72 | config_found(self, __UNCONST("com") , NULL); | | 72 | config_found(self, __UNCONST("com") , NULL); |
73 | config_found(self, __UNCONST("com") , NULL); | | 73 | config_found(self, __UNCONST("com") , NULL); |
74 | config_found(self, __UNCONST("*") , NULL); | | | |
75 | } | | 74 | } |