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