diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2001-08-24 22:46:26 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2001-08-24 22:46:26 +0000 |
commit | b15d7d9843b131a85d691de6225bd447f533aecb (patch) | |
tree | 339931fc97ce7d0a9ee5962180c993fc82be334f /sys/arch | |
parent | 6ccba8e2eb4fc64e976fff7c674151d915e8640e (diff) |
There is no need to hide potentially useful stuff in .c files.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/mvme88k/dev/bugio.c | 37 | ||||
-rw-r--r-- | sys/arch/mvme88k/include/bugio.h | 42 |
2 files changed, 41 insertions, 38 deletions
diff --git a/sys/arch/mvme88k/dev/bugio.c b/sys/arch/mvme88k/dev/bugio.c index eafea1b7a1c..8973ee4ef8b 100644 --- a/sys/arch/mvme88k/dev/bugio.c +++ b/sys/arch/mvme88k/dev/bugio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bugio.c,v 1.7 2001/03/09 05:44:38 smurph Exp $ */ +/* $OpenBSD: bugio.c,v 1.8 2001/08/24 22:46:23 miod Exp $ */ /* Copyright (c) 1998 Steve Murphree, Jr. */ #include <sys/param.h> #include <sys/systm.h> @@ -217,41 +217,6 @@ bugnetctrl(struct bugniocall *niocall) /* OSCTXT();*/ } -typedef struct netcnfgp { - unsigned int magic; - unsigned int nodemem; - unsigned int bfla; - unsigned int bfea; - unsigned int bfed; - unsigned int bfl; - unsigned int bfbo; - unsigned int tbuffer; - unsigned char cipa[4]; - unsigned char sipa[4]; - unsigned char netmask[4]; - unsigned char broadcast[4]; - unsigned char gipa[4]; - unsigned char bootp_retry; - unsigned char tftp_retry; - unsigned char bootp_ctl; - unsigned char cnfgp_ctl; - unsigned char filename[64]; - unsigned char argfname[64]; -} NETCNFGP; - -struct bugniotcall { - unsigned char clun; - unsigned char dlun; - unsigned char ci; - unsigned char cd; - NETCNFGP * netcfngp_p; - void * unused; -#define NIOT_READ (1<<0) -#define NIOT_WRITE (1<<1) -#define NIOT_NVRAM (1<<2) - unsigned long cntrlflag; -}; - int bugnetcfg(struct bugniotcall *niotcall) { diff --git a/sys/arch/mvme88k/include/bugio.h b/sys/arch/mvme88k/include/bugio.h index 32be8a03ed0..8c691856b2b 100644 --- a/sys/arch/mvme88k/include/bugio.h +++ b/sys/arch/mvme88k/include/bugio.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bugio.h,v 1.9 2001/08/12 12:03:02 heko Exp $ */ +/* $OpenBSD: bugio.h,v 1.10 2001/08/24 22:46:25 miod Exp $ */ #ifndef __MACHINE_BUGIO_H__ #define __MACHINE_BUGIO_H__ #include "sys/cdefs.h" @@ -84,6 +84,42 @@ struct bugniocall { unsigned long nbytes; unsigned long csword; }; + +typedef struct netcnfgp { + unsigned int magic; + unsigned int nodemem; + unsigned int bfla; + unsigned int bfea; + unsigned int bfed; + unsigned int bfl; + unsigned int bfbo; + unsigned int tbuffer; + unsigned char cipa[4]; + unsigned char sipa[4]; + unsigned char netmask[4]; + unsigned char broadcast[4]; + unsigned char gipa[4]; + unsigned char bootp_retry; + unsigned char tftp_retry; + unsigned char bootp_ctl; + unsigned char cnfgp_ctl; + unsigned char filename[64]; + unsigned char argfname[64]; +} NETCNFGP; + +struct bugniotcall { + unsigned char clun; + unsigned char dlun; + unsigned char ci; + unsigned char cd; + NETCNFGP * netcfngp_p; + void * unused; +#define NIOT_READ (1<<0) +#define NIOT_WRITE (1<<1) +#define NIOT_NVRAM (1<<2) + unsigned long cntrlflag; +}; + void buginit __P((void)); int buginstat __P((void)); char buginchr __P((void)); @@ -97,5 +133,7 @@ void bugreturn __P((void)); int bugfork __P((int cpu, unsigned address)); void bugbrdid __P((struct bugbrdid *)); void bugnetctrl __P((struct bugniocall *)); -#endif /* __MACHINE_BUGIO_H__ */ +void bugdelay __P((int)); +int bugnetcfg __P((struct bugniotcall *)); +#endif /* __MACHINE_BUGIO_H__ */ |