diff options
Diffstat (limited to 'sys/arch/mvme88k/stand/libbug/netctrl.c')
-rw-r--r-- | sys/arch/mvme88k/stand/libbug/netctrl.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/arch/mvme88k/stand/libbug/netctrl.c b/sys/arch/mvme88k/stand/libbug/netctrl.c new file mode 100644 index 00000000000..218dbcc2b86 --- /dev/null +++ b/sys/arch/mvme88k/stand/libbug/netctrl.c @@ -0,0 +1,15 @@ +/* $OpenBSD: netctrl.c,v 1.1 2012/11/25 14:10:47 miod Exp $ */ +/* public domain */ + +#include <sys/types.h> +#include <machine/prom.h> + +#include "prom.h" + +int +mvmeprom_netctrl(struct mvmeprom_netctrl *ctrl) +{ + asm volatile ("or r2,r0,%0": : "r" (ctrl)); + MVMEPROM_CALL(MVMEPROM_NETCTRL); + return ctrl->status; +} |