2 * ADM5120 board definitions
4 * Copyright (C) 2007-2008 Gabor Juhos <juhosg@openwrt.org>
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published
8 * by the Free Software Foundation.
12 #ifndef _ASM_MIPS_MACH_ADM5120_BOARD_H
13 #define _ASM_MIPS_MACH_ADM5120_BOARD_H
15 #include <linux/init.h>
16 #include <linux/list.h>
18 #define ADM5120_BOARD_NAMELEN 64
20 struct adm5120_board
{
21 unsigned long mach_type
;
22 char name
[ADM5120_BOARD_NAMELEN
];
24 void (*board_setup
)(void);
25 struct list_head list
;
28 extern void adm5120_board_register(struct adm5120_board
*) __init
;
30 #define ADM5120_BOARD(_type, _name, _setup) \
31 static struct adm5120_board adm5120_board_##_type __initdata = { \
34 .board_setup = _setup, \
37 static __init int adm5120_board_##_type##_register(void) \
39 adm5120_board_register(&adm5120_board_##_type); \
42 pure_initcall(adm5120_board_##_type##_register)
44 #endif /* _ASM_MIPS_MACH_ADM5120_BOARD_H */
This page took 0.064329 seconds and 5 git commands to generate.