diff options
author | 2004-01-28 00:27:44 +0000 | |
---|---|---|
committer | 2004-01-28 00:27:44 +0000 | |
commit | 1c17e5881c044a9f476874766da6cf33be5bb066 (patch) | |
tree | c503e7cf628ac856a8a3b968c5231e5cf59fc45a | |
parent | make mail-mode more intelligent on middle-of-line insertions, and add a (diff) | |
download | wireguard-openbsd-1c17e5881c044a9f476874766da6cf33be5bb066.tar.xz wireguard-openbsd-1c17e5881c044a9f476874766da6cf33be5bb066.zip |
Oops, forgot cvs add in previous commit; spotted by deraadt@
-rw-r--r-- | sys/arch/mvme88k/stand/libbug/netfopen.c | 20 | ||||
-rw-r--r-- | sys/arch/mvme88k/stand/libbug/netfread.c | 20 |
2 files changed, 40 insertions, 0 deletions
diff --git a/sys/arch/mvme88k/stand/libbug/netfopen.c b/sys/arch/mvme88k/stand/libbug/netfopen.c new file mode 100644 index 00000000000..3a21733b0b8 --- /dev/null +++ b/sys/arch/mvme88k/stand/libbug/netfopen.c @@ -0,0 +1,20 @@ +/* $OpenBSD: netfopen.c,v 1.1 2004/01/28 00:27:44 miod Exp $ */ + +/* + * bug routines -- assumes that the necessary sections of memory + * are preserved. + */ +#include <sys/types.h> +#include <machine/prom.h> + +#include "prom.h" + +/* returns 0: success, nonzero: error */ +int +mvmeprom_netfopen(arg) + struct mvmeprom_netfopen *arg; +{ + asm volatile ("or r2,r0,%0": : "r" (arg)); + MVMEPROM_CALL(MVMEPROM_NETFOPEN); + return (arg->status); +} diff --git a/sys/arch/mvme88k/stand/libbug/netfread.c b/sys/arch/mvme88k/stand/libbug/netfread.c new file mode 100644 index 00000000000..63190331551 --- /dev/null +++ b/sys/arch/mvme88k/stand/libbug/netfread.c @@ -0,0 +1,20 @@ +/* $OpenBSD: netfread.c,v 1.1 2004/01/28 00:27:44 miod Exp $ */ + +/* + * bug routines -- assumes that the necessary sections of memory + * are preserved. + */ +#include <sys/types.h> +#include <machine/prom.h> + +#include "prom.h" + +/* returns 0: success, nonzero: error */ +int +mvmeprom_netfread(arg) + struct mvmeprom_netfread *arg; +{ + asm volatile ("or r2,r0,%0": : "r" (arg)); + MVMEPROM_CALL(MVMEPROM_NETFREAD); + return (arg->status); +} |