[BACK]Return to libbug.h CVS log [TXT][DIR] Up to [local] / sys / arch / mvmeppc / stand / libbug

Annotation of sys/arch/mvmeppc/stand/libbug/libbug.h, Revision 1.1

1.1     ! nbrk        1: /*     $OpenBSD: libbug.h,v 1.5 2004/11/15 14:03:21 miod Exp $ */
        !             2:
        !             3: #include <machine/prom.h>
        !             4:
        !             5: /*
        !             6:  * prototypes and such.   note that get/put char are in stand.h
        !             7:  */
        !             8:
        !             9: void   mvmeprom_delay(int);
        !            10: int    mvmeprom_diskrd(struct mvmeprom_dskio *);
        !            11: int    mvmeprom_diskwr(struct mvmeprom_dskio *);
        !            12: struct mvmeprom_brdid *mvmeprom_getbrdid(void);
        !            13: int    peekchar(void);
        !            14: void   mvmeprom_outln(char *, char *);
        !            15: void   mvmeprom_outstr(char *, char *);
        !            16: void   mvmeprom_rtc_rd(struct mvmeprom_time *);
        !            17: int    mvmeprom_netctrl(struct mvmeprom_netctrl *);
        !            18: int     mvmeprom_netctrl_init(u_char, u_char);
        !            19: int    mvmeprom_netctrl_hwa(u_char, u_char, void *, u_long *);
        !            20: int    mvmeprom_netctrl_tx(u_char, u_char, void *, u_long *);
        !            21: int    mvmeprom_netctrl_rx(u_char, u_char, void *, u_long *);
        !            22: int    mvmeprom_netctrl_flush_rx(u_char, u_char);
        !            23: int    mvmeprom_netctrl_reset(u_char, u_char);
        !            24:
        !            25: /*
        !            26:  * bugcrt stuff
        !            27:  */
        !            28:
        !            29: extern struct mvmeprom_args bugargs;
        !            30:
        !            31: void   bugexec(void (*)());
        !            32:
        !            33: /* Invoke the BUG */
        !            34: #define MVMEPROM_CALL(x)       \
        !            35:        __asm__ __volatile__ ("addi %r10,%r0," __STRING(x)); \
        !            36:        __asm__ __volatile__ ("sc");

CVSweb