/* $OpenBSD: cpu.h,v 1.5 1998/10/30 19:18:32 mickey Exp $ */ /* * Copyright (c) 1988-1994, The University of Utah and * the Computer Systems Laboratory at the University of Utah (CSL). * All rights reserved. * * Permission to use, copy, modify and distribute this software is hereby * granted provided that (1) source code retains these copyright, permission, * and disclaimer notices, and (2) redistributions including binaries * reproduce the notices in supporting documentation, and (3) all advertising * materials mentioning features or use of this software display the following * acknowledgement: ``This product includes software developed by the * Computer Systems Laboratory at the University of Utah.'' * * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. * * CSL requests users of this software to return to csl-dist@cs.utah.edu any * improvements that they make and grant CSL redistribution rights. * * Utah $Hdr: cpu.h 1.19 94/12/16$ */ #ifndef _MACHINE_CPU_H_ #define _MACHINE_CPU_H_ #include /* * Exported definitions unique to hp700/PA-RISC cpu support. */ /* * definitions of cpu-dependent requirements * referenced in generic code */ #undef COPY_SIGCODE /* copy sigcode above user stack in exec */ #define HPPA_IOSPACE 0xf0000000 #define HPPA_IOBCAST 0xfffc0000 #define HPPA_PDC_LOW 0xef000000 #define HPPA_PDC_HIGH 0xf1000000 #define HPPA_FPA 0xfff80000 #define HPPA_FLEX_DATA 0xfff80001 #define HPPA_DMA_ENABLE 0x00000001 #define HPPA_FLEX_MASK 0xfffc0000 #define HPPA_SPA_ENABLE 0x00000020 #define HPPA_NMODSPBUS 64 #define clockframe trapframe #define CLKF_BASEPRI(framep) ((framep)->eiem) #define CLKF_PC(framep) ((framep)->iioq_head) #define CLKF_INTR(framep) (0) /* XXX */ #define CLKF_USERMODE(framep) (USERMODE((framep)->iioq_head)) #define signotify(p) (void)(p) #define need_resched() {(void)1;} #define need_proftick(p) {(void)(p);} /* * Expected (and optimized for) cache line size (in bytes). */ #define CACHE_LINE_SIZE 32 #ifdef _KERNEL #define DELAY(x) delay(x) void delay __P((u_int)); void hppa_init __P((void)); void trap __P((int, struct trapframe *)); int kvtop __P((const caddr_t)); int dma_cachectl __P((caddr_t, int)); #endif /* * Boot arguments stuff */ #define BOOTARG_LEN (NBPG) #define BOOTARG_OFF (0x10000) /* * CTL_MACHDEP definitions. */ #define CPU_CONSDEV 1 /* dev_t: console terminal device */ #define CPU_MAXID 2 /* number of valid machdep ids */ #define CTL_MACHDEP_NAMES { \ { 0, 0 }, \ { "console_device", CTLTYPE_STRUCT }, \ } #endif /* _MACHINE_CPU_H_ */