/* $OpenBSD: netwr.c,v 1.2 2001/07/04 08:31:36 niklas Exp $ */ /* * bug routines -- assumes that the necessary sections of memory * are preserved. */ #include #include /* 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); }