]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/dev/hfa/hfa_eisa.c
This commit was generated by cvs2svn to compensate for changes in r156952,
[FreeBSD/FreeBSD.git] / sys / dev / hfa / hfa_eisa.c
1 /*-
2  * Copyright (c) 2002 Matthew N. Dodd <winter@jurai.net>
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  *    notice, this list of conditions and the following disclaimer in the
12  *    documentation and/or other materials provided with the distribution.
13  *
14  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24  * SUCH DAMAGE.
25  *
26  */
27
28 #include <sys/cdefs.h>
29 __FBSDID("$FreeBSD$");
30
31 /*
32  *
33  * ===================================
34  * HARP  |  Host ATM Research Platform
35  * ===================================
36  *
37  *
38  * This Host ATM Research Platform ("HARP") file (the "Software") is
39  * made available by Network Computing Services, Inc. ("NetworkCS")
40  * "AS IS".  NetworkCS does not provide maintenance, improvements or
41  * support of any kind.
42  *
43  * NETWORKCS MAKES NO WARRANTIES OR REPRESENTATIONS, EXPRESS OR IMPLIED,
44  * INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY
45  * AND FITNESS FOR A PARTICULAR PURPOSE, AS TO ANY ELEMENT OF THE
46  * SOFTWARE OR ANY SUPPORT PROVIDED IN CONNECTION WITH THIS SOFTWARE.
47  * In no event shall NetworkCS be responsible for any damages, including
48  * but not limited to consequential damages, arising from or relating to
49  * any use of the Software or related support.
50  *
51  * Copyright 1994-1998 Network Computing Services, Inc.
52  *
53  * Copies of this Software may be made, however, the above copyright
54  * notice must be reproduced on all copies.
55  *
56  */
57
58 #include <sys/param.h>
59 #include <sys/systm.h>
60 #include <sys/socket.h>
61 #include <sys/socketvar.h>
62 #include <sys/kernel.h>
63 #include <sys/lock.h>
64 #include <sys/malloc.h>
65 #include <sys/socket.h>
66 #include <sys/sysctl.h>
67
68 #include <sys/bus.h>
69 #include <sys/conf.h>
70
71 #include <sys/module.h>
72 #include <machine/bus.h>
73 #include <machine/resource.h>
74 #include <sys/rman.h> 
75
76 #include <net/if.h>
77 #include <netatm/port.h>
78 #include <netatm/queue.h>
79 #include <netatm/atm.h>
80 #include <netatm/atm_sys.h>
81 #include <netatm/atm_sap.h>
82 #include <netatm/atm_cm.h>
83 #include <netatm/atm_if.h>
84 #include <netatm/atm_stack.h>
85 #include <netatm/atm_pcb.h>
86 #include <netatm/atm_var.h>
87
88 #include <dev/eisa/eisa_busreg.h>
89 #include <dev/eisa/eisa_busvar.h>
90
91 #include <dev/hfa/fore.h>
92 #include <dev/hfa/fore_aali.h>
93 #include <dev/hfa/fore_slave.h>
94 #include <dev/hfa/fore_stats.h>
95 #include <dev/hfa/fore_var.h>
96 #include <dev/hfa/fore_include.h>
97
98 #include <dev/hfa/hfa_freebsd.h>
99
100 static int hfa_eisa_probe(device_t);
101 static int hfa_eisa_attach(device_t);
102
103 static int
104 hfa_eisa_probe (device_t dev)
105 {
106
107         return (ENXIO);
108 }
109
110 static int
111 hfa_eisa_attach (device_t dev)
112 {
113
114         return (ENXIO);
115 }
116
117 static device_method_t hfa_eisa_methods[] = {
118         DEVMETHOD(device_probe,         hfa_eisa_probe),
119         DEVMETHOD(device_attach,        hfa_eisa_attach),
120
121         DEVMETHOD(device_detach,        hfa_detach),
122
123         { 0, 0 }
124 };
125
126 static driver_t hfa_eisa_driver = {
127         "hfa",
128         hfa_eisa_methods,
129         sizeof(struct hfa_softc)
130 };
131
132 DRIVER_MODULE(hfa, eisa, hfa_eisa_driver, hfa_devclass, 0, 0);
133 MODULE_DEPEND(hfa, hfa, 1, 1, 1);
134 MODULE_DEPEND(hfa, eisa, 1, 1, 1);