1 /* $NetBSD: machdep.h,v 1.7 2002/02/21 02:52:21 thorpej Exp $ */ 2 /* $FreeBSD$ */ 3 4 #ifndef _MACHDEP_BOOT_MACHDEP_H_ 5 #define _MACHDEP_BOOT_MACHDEP_H_ 6 7 /* Structs that need to be initialised by initarm */ 8 #ifdef ARM_NEW_PMAP 9 extern vm_offset_t irqstack; 10 extern vm_offset_t undstack; 11 extern vm_offset_t abtstack; 12 #else 13 struct pv_addr; 14 extern struct pv_addr irqstack; 15 extern struct pv_addr undstack; 16 extern struct pv_addr abtstack; 17 #endif 18 19 /* Define various stack sizes in pages */ 20 #define IRQ_STACK_SIZE 1 21 #define ABT_STACK_SIZE 1 22 #define UND_STACK_SIZE 1 23 24 /* misc prototypes used by the many arm machdeps */ 25 struct trapframe; 26 void arm_lock_cache_line(vm_offset_t); 27 void init_proc0(vm_offset_t kstack); 28 void halt(void); 29 void abort_handler(struct trapframe *, int ); 30 void set_stackptrs(int cpu); 31 void undefinedinstruction_bounce(struct trapframe *); 32 33 /* Early boot related helper functions */ 34 struct arm_boot_params; 35 vm_offset_t default_parse_boot_param(struct arm_boot_params *abp); 36 vm_offset_t freebsd_parse_boot_param(struct arm_boot_params *abp); 37 vm_offset_t linux_parse_boot_param(struct arm_boot_params *abp); 38 vm_offset_t fake_preload_metadata(struct arm_boot_params *abp); 39 vm_offset_t parse_boot_param(struct arm_boot_params *abp); 40 void arm_generic_initclocks(void); 41 42 /* Board-specific attributes */ 43 void board_set_serial(uint64_t); 44 void board_set_revision(uint32_t); 45 46 #endif /* !_MACHINE_MACHDEP_H_ */ 47