[ar71xx] fix null pointer access in mach-dir-600-a1.c machine setup (#8671)
[openwrt.git] / target / linux / ar71xx / files / arch / mips / include / asm / fw / myloader / myloader.h
1 /*
2 * Compex's MyLoader specific definitions
3 *
4 * Copyright (C) 2006-2008 Gabor Juhos <juhosg@openwrt.org>
5 *
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.
9 *
10 */
11
12 #ifndef _ASM_MIPS_FW_MYLOADER_H
13 #define _ASM_MIPS_FW_MYLOADER_H
14
15 #include <linux/myloader.h>
16
17 struct myloader_info {
18 uint32_t vid;
19 uint32_t did;
20 uint32_t svid;
21 uint32_t sdid;
22 uint8_t macs[MYLO_ETHADDR_COUNT][6];
23 };
24
25 #ifdef CONFIG_MYLOADER
26 extern struct myloader_info *myloader_get_info(void) __init;
27 #else
28 static inline struct myloader_info *myloader_get_info(void)
29 {
30 return NULL;
31 }
32 #endif /* CONFIG_MYLOADER */
33
34 #endif /* _ASM_MIPS_FW_MYLOADER_H */
This page took 0.05092 seconds and 5 git commands to generate.