1/*-
2 * Copyright (c) 1995, David Greenman
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
--- 13 unchanged lines hidden (view full) ---
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/dev/ed/if_ed_isa.c 141586 2005-02-09 20:03:40Z imp $");
31
32#include "opt_ed.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/socket.h>
37#include <sys/kernel.h>
38
39#include <sys/module.h>
40#include <sys/bus.h>
41#include <machine/bus.h>
42
43#include <net/if.h>
44#include <net/if_arp.h>
45#include <net/if_mib.h>
46
47#include <isa/isavar.h>
48
49#include <dev/ed/if_edvar.h>
50
--- 9 unchanged lines hidden (view full) ---
60 { 0x19808c4a, NULL }, /* RTL8019 */
61 { 0x0090252a, NULL }, /* JQE9000 */
62 { 0x0020832e, NULL }, /* KTC2000 */
63 { 0x4cf48906, NULL }, /* ATIf44c */
64 { 0, NULL }
65};
66
67static int
68ed_isa_probe(dev)
69 device_t dev;
70{
71 int flags = device_get_flags(dev);
72 int error = 0;
73
74 /* Check isapnp ids */
75 error = ISA_PNP_PROBE(device_get_parent(dev), dev, ed_ids);
76
77 /* If the card had a PnP ID that didn't match any we know about */
78 if (error == ENXIO) {
79 goto end;
80 }
81
82 /* If we had some other problem. */
83 if (!(error == 0 || error == ENOENT)) {
84 goto end;
85 }
86
87 /* Heuristic probes */
88
89 error = ed_probe_WD80x3(dev, 0, flags);
90 if (error == 0)
91 goto end;
92 ed_release_resources(dev);
93
--- 5 unchanged lines hidden (view full) ---
99#endif
100
101#ifdef ED_SIC
102 error = ed_probe_SIC(dev, 0, flags);
103 if (error == 0)
104 goto end;
105 ed_release_resources(dev);
106#endif
107 error = ed_probe_Novell(dev, 0, flags);
108 if (error == 0)
109 goto end;
110 ed_release_resources(dev);
111
112#ifdef ED_HPP
113 error = ed_probe_HP_pclanp(dev, 0, flags);
114 if (error == 0)
115 goto end;
--- 52 unchanged lines hidden ---
2 * Copyright (c) 1995, David Greenman
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
--- 13 unchanged lines hidden (view full) ---
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/dev/ed/if_ed_isa.c 141586 2005-02-09 20:03:40Z imp $");
31
32#include "opt_ed.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/socket.h>
37#include <sys/kernel.h>
38
39#include <sys/module.h>
40#include <sys/bus.h>
41#include <machine/bus.h>
42
43#include <net/if.h>
44#include <net/if_arp.h>
45#include <net/if_mib.h>
46
47#include <isa/isavar.h>
48
49#include <dev/ed/if_edvar.h>
50
--- 9 unchanged lines hidden (view full) ---
60 { 0x19808c4a, NULL }, /* RTL8019 */
61 { 0x0090252a, NULL }, /* JQE9000 */
62 { 0x0020832e, NULL }, /* KTC2000 */
63 { 0x4cf48906, NULL }, /* ATIf44c */
64 { 0, NULL }
65};
66
67static int
68ed_isa_probe(dev)
69 device_t dev;
70{
71 int flags = device_get_flags(dev);
72 int error = 0;
73
74 /* Check isapnp ids */
75 error = ISA_PNP_PROBE(device_get_parent(dev), dev, ed_ids);
76
77 /* If the card had a PnP ID that didn't match any we know about */
78 if (error == ENXIO) {
79 goto end;
80 }
81
82 /* If we had some other problem. */
83 if (!(error == 0 || error == ENOENT)) {
84 goto end;
85 }
86
87 /* Heuristic probes */
88
89 error = ed_probe_WD80x3(dev, 0, flags);
90 if (error == 0)
91 goto end;
92 ed_release_resources(dev);
93
--- 5 unchanged lines hidden (view full) ---
99#endif
100
101#ifdef ED_SIC
102 error = ed_probe_SIC(dev, 0, flags);
103 if (error == 0)
104 goto end;
105 ed_release_resources(dev);
106#endif
107 error = ed_probe_Novell(dev, 0, flags);
108 if (error == 0)
109 goto end;
110 ed_release_resources(dev);
111
112#ifdef ED_HPP
113 error = ed_probe_HP_pclanp(dev, 0, flags);
114 if (error == 0)
115 goto end;
--- 52 unchanged lines hidden ---