conf.c revision 1.7 1 1.7 tsutsui /* $NetBSD: conf.c,v 1.7 2008/01/12 09:54:32 tsutsui Exp $ */
2 1.1 chuck
3 1.1 chuck #include <sys/types.h>
4 1.2 chuck #include <netinet/in.h>
5 1.3 chuck #include <netinet/in_systm.h>
6 1.2 chuck
7 1.5 junyoung #include <lib/libsa/stand.h>
8 1.3 chuck #include <nfs.h>
9 1.3 chuck #include <dev_net.h>
10 1.1 chuck
11 1.1 chuck struct fs_ops file_system[] = {
12 1.1 chuck { nfs_open, nfs_close, nfs_read, nfs_write, nfs_seek, nfs_stat },
13 1.1 chuck };
14 1.7 tsutsui int nfsys = __arraycount(file_system);
15 1.1 chuck
16 1.1 chuck struct devsw devsw[] = {
17 1.1 chuck { "net", net_strategy, net_open, net_close, net_ioctl },
18 1.1 chuck };
19 1.7 tsutsui int ndevs = __arraycount(devsw);
20 1.3 chuck
21 1.3 chuck extern struct netif_driver le_driver;
22 1.3 chuck extern struct netif_driver ie_driver;
23 1.3 chuck
24 1.3 chuck struct netif_driver *netif_drivers[] = {
25 1.3 chuck &le_driver,
26 1.3 chuck &ie_driver,
27 1.3 chuck };
28 1.7 tsutsui int n_netif_drivers = __arraycount(netif_drivers);
29 1.3 chuck
30 1.1 chuck
31 1.1 chuck /* XXX */
32 1.1 chuck int netif_debug;
33 1.1 chuck int debug;
34 1.1 chuck int errno;
35 1.4 scw int try_bootp = 1;
36