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 struct pv_addr; 9 extern struct pv_addr irqstack; 10 extern struct pv_addr undstack; 11 extern struct pv_addr abtstack; 12 13 /* Define various stack sizes in pages */ 14 #define IRQ_STACK_SIZE 1 15 #define ABT_STACK_SIZE 1 16 #define UND_STACK_SIZE 1 17 18 /* misc prototypes used by the many arm machdeps */ 19 struct trapframe; 20 void arm_lock_cache_line(vm_offset_t); 21 void init_proc0(vm_offset_t kstack); 22 void halt(void); 23 void data_abort_handler(struct trapframe *); 24 void prefetch_abort_handler(struct trapframe *); 25 void set_stackptrs(int cpu); 26 void undefinedinstruction_bounce(struct trapframe *); 27 28 /* Early boot related helper functions */ 29 struct arm_boot_params; 30 vm_offset_t default_parse_boot_param(struct arm_boot_params *abp); 31 vm_offset_t freebsd_parse_boot_param(struct arm_boot_params *abp); 32 vm_offset_t linux_parse_boot_param(struct arm_boot_params *abp); 33 vm_offset_t fake_preload_metadata(struct arm_boot_params *abp); 34 vm_offset_t parse_boot_param(struct arm_boot_params *abp); 35 void arm_generic_initclocks(void); 36 37 /* Board-specific attributes */ 38 void board_set_serial(uint64_t); 39 void board_set_revision(uint32_t); 40 41 #endif /* !_MACHINE_MACHDEP_H_ */ 42