Home | History | Annotate | Line # | Download | only in include
cpu.h revision 1.1
      1  1.1  is #ifndef _MACHINE_CPU_H_
      2  1.1  is #define _MACHINE_CPU_H_
      3  1.1  is 
      4  1.1  is #include <machine/frame.h>
      5  1.1  is #include <machine/psl.h>
      6  1.1  is #include <machine/intr.h>
      7  1.1  is 
      8  1.1  is u_long	clkread	__P((void));
      9  1.1  is void	physaccess	__P((caddr_t, caddr_t, int, int));
     10  1.1  is 
     11  1.1  is /* ADAM: taken from macppc/cpu.h */
     12  1.1  is #define CLKF_USERMODE(frame)    (((frame)->srr1 & PSL_PR) != 0)
     13  1.1  is #define CLKF_BASEPRI(frame)     ((frame)->pri == 0)
     14  1.1  is #define CLKF_PC(frame)          ((frame)->srr0)
     15  1.1  is #define CLKF_INTR(frame)        ((frame)->depth > 0)
     16  1.1  is 
     17  1.1  is #define cpu_swapout(p)
     18  1.1  is #define cpu_wait(p)
     19  1.1  is #define cpu_number()            0
     20  1.1  is 
     21  1.1  is extern void delay __P((unsigned));
     22  1.1  is #define DELAY(n)                delay(n)
     23  1.1  is 
     24  1.1  is extern __volatile int want_resched;
     25  1.1  is extern __volatile int astpending;
     26  1.1  is 
     27  1.1  is #define need_resched()          (want_resched = 1, astpending = 1)
     28  1.1  is #define need_proftick(p)        ((p)->p_flag |= P_OWEUPC, astpending = 1)
     29  1.1  is #define signotify(p)            (astpending = 1)
     30  1.1  is 
     31  1.1  is extern char bootpath[];
     32  1.1  is 
     33  1.1  is #if defined(_KERNEL) || defined(_STANDALONE)
     34  1.1  is #define CACHELINESIZE   32
     35  1.1  is #endif
     36  1.1  is 
     37  1.1  is /* ADAM: commented out to avoid CTL_MACHDEP_NAMES redefiniton (see below) */
     38  1.1  is /*#include <powerpc/cpu.h>*/
     39  1.1  is 
     40  1.1  is /* end of ADAM */
     41  1.1  is 
     42  1.1  is 
     43  1.1  is /* ADAM: maybe we will need this??? */
     44  1.1  is /* values for machineid (happen to be AFF_* settings of AttnFlags) */
     45  1.1  is /*
     46  1.1  is #define AMIGA_68020	(1L<<1)
     47  1.1  is #define AMIGA_68030	(1L<<2)
     48  1.1  is #define AMIGA_68040	(1L<<3)
     49  1.1  is #define AMIGA_68881	(1L<<4)
     50  1.1  is #define AMIGA_68882	(1L<<5)
     51  1.1  is #define	AMIGA_FPU40	(1L<<6)
     52  1.1  is #define AMIGA_68060	(1L<<7)
     53  1.1  is */
     54  1.1  is 
     55  1.1  is #ifdef _KERNEL
     56  1.1  is int machineid;
     57  1.1  is #endif
     58  1.1  is 
     59  1.1  is /* ADAM: copied from powerpc/cpu.h */
     60  1.1  is #ifndef _POWERPC_CPU_H_
     61  1.1  is #define _POWERPC_CPU_H_
     62  1.1  is 
     63  1.1  is extern void __syncicache __P((void *, int));
     64  1.1  is 
     65  1.1  is /*
     66  1.1  is  * CTL_MACHDEP definitions.
     67  1.1  is  */
     68  1.1  is #define CPU_CACHELINE   1
     69  1.1  is #define CPU_MAXID       2
     70  1.1  is 
     71  1.1  is #endif  /* _POWERPC_CPU_H_ */
     72  1.1  is 
     73  1.1  is /* ADAM: copied from amiga/cpu.h */
     74  1.1  is #define CTL_MACHDEP_NAMES { \
     75  1.1  is 	{ 0, 0 }, \
     76  1.1  is 	{ "console_device", CTLTYPE_STRUCT }, \
     77  1.1  is }
     78  1.1  is 
     79  1.1  is #ifdef _KERNEL
     80  1.1  is /*
     81  1.1  is  * Prototypes from amiga_init.c
     82  1.1  is  */
     83  1.1  is void    *alloc_z2mem __P((long));
     84  1.1  is 
     85  1.1  is /*
     86  1.1  is  * Prototypes from autoconf.c
     87  1.1  is  */
     88  1.1  is int     is_a1200 __P((void));
     89  1.1  is int     is_a3000 __P((void));
     90  1.1  is int     is_a4000 __P((void));
     91  1.1  is #endif
     92  1.1  is 
     93  1.1  is #endif /* !_MACHINE_CPU_H_ */
     94