diff options
author | Steve Murphree <smurph@cvs.openbsd.org> | 2001-06-26 21:58:11 +0000 |
---|---|---|
committer | Steve Murphree <smurph@cvs.openbsd.org> | 2001-06-26 21:58:11 +0000 |
commit | 416f561c78b0eca90fdb484e72a96080b0825dca (patch) | |
tree | d310db0254b85229b90b9d90e79cabfbbcb6101a /sys/arch/mvmeppc/stand/libbug/netwr.c | |
parent | 77682e0d8d22531ed2952aaab30aae7c69483b3d (diff) |
Initial import of mvmeppc.
Diffstat (limited to 'sys/arch/mvmeppc/stand/libbug/netwr.c')
-rw-r--r-- | sys/arch/mvmeppc/stand/libbug/netwr.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/arch/mvmeppc/stand/libbug/netwr.c b/sys/arch/mvmeppc/stand/libbug/netwr.c new file mode 100644 index 00000000000..e96d888db18 --- /dev/null +++ b/sys/arch/mvmeppc/stand/libbug/netwr.c @@ -0,0 +1,16 @@ +/* + * bug routines -- assumes that the necessary sections of memory + * are preserved. + */ +#include <sys/types.h> +#include <machine/prom.h> + +/* returns 0: success, nonzero: error */ +int +mvmeprom_netwr(arg) + struct mvmeprom_netio *arg; +{ + asm volatile ("mr 3, %0": : "r" (arg)); + MVMEPROM_CALL(MVMEPROM_NETWR); + return (arg->status); +} |