/* $OpenBSD: netctrl.c,v 1.2 2013/01/05 11:20:56 miod Exp $ */ /* public domain */ #include #include #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; }