1/* $NetBSD: machdep.h,v 1.7 2002/02/21 02:52:21 thorpej Exp $ */
2/* $FreeBSD: head/sys/arm/include/machdep.h 245079 2013-01-05 23:08:10Z gonzo $ */
3
4#ifndef _MACHDEP_BOOT_MACHDEP_H_
5#define _MACHDEP_BOOT_MACHDEP_H_
6
7/* Structs that need to be initialised by initarm */
8extern struct pv_addr irqstack;
9extern struct pv_addr undstack;
10extern struct pv_addr abtstack;
11
12/* Define various stack sizes in pages */
13#define IRQ_STACK_SIZE 1
14#define ABT_STACK_SIZE 1
15#define UND_STACK_SIZE 1
16
17/* misc prototypes used by the many arm machdeps */
18void arm_lock_cache_line(vm_offset_t);
19void init_proc0(vm_offset_t kstack);
20void halt(void);
21void data_abort_handler(trapframe_t *);
22void prefetch_abort_handler(trapframe_t *);
23void set_stackptrs(int cpu);
24void undefinedinstruction_bounce(trapframe_t *);
25
26/* Early boot related helper functions */
27struct arm_boot_params;
28vm_offset_t default_parse_boot_param(struct arm_boot_params *abp);
29vm_offset_t freebsd_parse_boot_param(struct arm_boot_params *abp);
30vm_offset_t linux_parse_boot_param(struct arm_boot_params *abp);
31vm_offset_t fake_preload_metadata(struct arm_boot_params *abp);
32vm_offset_t parse_boot_param(struct arm_boot_params *abp);
33
34/* Called by initarm */
35vm_offset_t initarm_lastaddr(void);
36void initarm_gpio_init(void);
37void initarm_late_init(void);
38int platform_devmap_init(void);
39
40/* Board-specific attributes */
41void board_set_serial(uint64_t);
42void board_set_revision(uint32_t);
43
44/* Needs to be initialised by platform_devmap_init */
45extern const struct pmap_devmap *pmap_devmap_bootstrap_table;
46
47/* Setup standard arrays */
48void arm_dump_avail_init( vm_offset_t memsize, size_t max);
49
50#endif /* !_MACHINE_MACHDEP_H_ */
2/* $FreeBSD: head/sys/arm/include/machdep.h 245079 2013-01-05 23:08:10Z gonzo $ */
3
4#ifndef _MACHDEP_BOOT_MACHDEP_H_
5#define _MACHDEP_BOOT_MACHDEP_H_
6
7/* Structs that need to be initialised by initarm */
8extern struct pv_addr irqstack;
9extern struct pv_addr undstack;
10extern struct pv_addr abtstack;
11
12/* Define various stack sizes in pages */
13#define IRQ_STACK_SIZE 1
14#define ABT_STACK_SIZE 1
15#define UND_STACK_SIZE 1
16
17/* misc prototypes used by the many arm machdeps */
18void arm_lock_cache_line(vm_offset_t);
19void init_proc0(vm_offset_t kstack);
20void halt(void);
21void data_abort_handler(trapframe_t *);
22void prefetch_abort_handler(trapframe_t *);
23void set_stackptrs(int cpu);
24void undefinedinstruction_bounce(trapframe_t *);
25
26/* Early boot related helper functions */
27struct arm_boot_params;
28vm_offset_t default_parse_boot_param(struct arm_boot_params *abp);
29vm_offset_t freebsd_parse_boot_param(struct arm_boot_params *abp);
30vm_offset_t linux_parse_boot_param(struct arm_boot_params *abp);
31vm_offset_t fake_preload_metadata(struct arm_boot_params *abp);
32vm_offset_t parse_boot_param(struct arm_boot_params *abp);
33
34/* Called by initarm */
35vm_offset_t initarm_lastaddr(void);
36void initarm_gpio_init(void);
37void initarm_late_init(void);
38int platform_devmap_init(void);
39
40/* Board-specific attributes */
41void board_set_serial(uint64_t);
42void board_set_revision(uint32_t);
43
44/* Needs to be initialised by platform_devmap_init */
45extern const struct pmap_devmap *pmap_devmap_bootstrap_table;
46
47/* Setup standard arrays */
48void arm_dump_avail_init( vm_offset_t memsize, size_t max);
49
50#endif /* !_MACHINE_MACHDEP_H_ */