/* $OpenBSD: getbrdid.c,v 1.2 2001/07/04 08:31:35 niklas Exp $ */ /* * bug routines -- assumes that the necessary sections of memory * are preserved. */ #include #include /* BUG - query board routines */ struct mvmeprom_brdid * mvmeprom_brdid() { struct mvmeprom_brdid *id; MVMEPROM_CALL(MVMEPROM_BRD_ID); asm volatile ("mr %0, 3": "=r" (id):); return (id); }