staging: board: Add support for translating hwirq to virq numbers
[deliverable/linux.git] / drivers / staging / board / board.h
CommitLineData
382063d9
MD
1#ifndef __BOARD_H__
2#define __BOARD_H__
72ee8626 3
382063d9
MD
4#include <linux/init.h>
5#include <linux/of.h>
6
72ee8626
GU
7struct resource;
8
382063d9
MD
9bool board_staging_dt_node_available(const struct resource *resource,
10 unsigned int num_resources);
72ee8626
GU
11int board_staging_gic_setup_xlate(const char *gic_match, unsigned int base);
12void board_staging_gic_fixup_resources(struct resource *res, unsigned int nres);
382063d9
MD
13
14#define board_staging(str, fn) \
15static int __init runtime_board_check(void) \
16{ \
17 if (of_machine_is_compatible(str)) \
18 fn(); \
19 \
20 return 0; \
21} \
22 \
b0c750f7 23device_initcall(runtime_board_check)
382063d9
MD
24
25#endif /* __BOARD_H__ */
This page took 0.125661 seconds and 5 git commands to generate.