Back to index

glibc  2.9
Defines | Typedefs | Variables
m68020.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define disable_intr(level)
#define enable_intr(level)
#define flash_intr(level)
#define get_vbr(vbr)
#define set_vbr(vbr)
#define enable_caching()
#define delay(microseconds)
#define enable_tracing()
#define cause_intr(X)
#define clear_intr(X)

Typedefs

typedef void(* mc68020_isr )(void)

Variables

mc68020_isr M68Kvec []

Define Documentation

#define cause_intr (   X)

Definition at line 81 of file m68020.h.

#define clear_intr (   X)

Definition at line 82 of file m68020.h.

#define delay (   microseconds)
Value:
{ register unsigned int _delay=(microseconds); \
    register unsigned int _tmp=123; \
    asm volatile( "0: \                 nbcd      %0 ; \                   nbcd      %0 ; \                   dbf       %1,0 " \
                : "=d" (_tmp), "=d" (_delay) \
                : "0"  (_tmp), "1"  (_delay) ); \
  }

Definition at line 69 of file m68020.h.

#define disable_intr (   level)
Value:
{ (level) = 0; \
    asm volatile ( "movew   %%sr,%0 ; \              orw     #0x0700,%%sr" \
                  : "=d" ((level)) : "0" ((level)) ); \
  }

Definition at line 33 of file m68020.h.

#define enable_caching ( )
Value:
{ register unsigned int _ctl=0x01; \
    asm volatile ( "movec   %0,%%cacr" \
                     : "=d" (_ctl) : "0" (_ctl) ); \
  }

Definition at line 63 of file m68020.h.

#define enable_intr (   level)
Value:
{ asm volatile ( "movew   %0,%%sr " \
                     : "=d" ((level)) : "0" ((level)) ); \
  }

Definition at line 40 of file m68020.h.

#define enable_tracing ( )

Definition at line 80 of file m68020.h.

#define flash_intr (   level)
Value:
{ asm volatile ( "movew   %0,%%sr ; \                orw     #0x0700,%%sr" \
                     : "=d" ((level)) : "0" ((level)) ); \
  }

Definition at line 45 of file m68020.h.

#define get_vbr (   vbr)
Value:
{ (vbr) = 0; \
    asm volatile ( "movec   %%vbr,%0 " \
                     : "=a" (vbr) : "0" (vbr) ); \
  }

Definition at line 51 of file m68020.h.

#define set_vbr (   vbr)
Value:
{ register mc68020_isr *_vbr= (mc68020_isr *)(vbr); \
    asm volatile ( "movec   %0,%%vbr " \
                     : "=a" (_vbr) : "0" (_vbr) ); \
  }

Definition at line 57 of file m68020.h.


Typedef Documentation

typedef void( * mc68020_isr)(void)

Definition at line 31 of file m68020.h.


Variable Documentation