| /* SPDX-License-Identifier: GPL-2.0-only */ |
| * Copyright (C) 2008-2010 Gabor Juhos <juhosg@openwrt.org> |
| #ifndef __ASM_MIPS_MACHINE_H |
| #define __ASM_MIPS_MACHINE_H |
| #include <linux/stddef.h> |
| #include <asm/bootinfo.h> |
| void (*mach_setup)(void); |
| #define MIPS_MACHINE(_type, _id, _name, _setup) \ |
| static const char machine_name_##_type[] __initconst \ |
| static const char machine_id_##_type[] __initconst \ |
| static struct mips_machine machine_##_type \ |
| __used __section(.mips.machines.init) = \ |
| .mach_id = machine_id_##_type, \ |
| .mach_name = machine_name_##_type, \ |
| extern long __mips_machines_start; |
| extern long __mips_machines_end; |
| #ifdef CONFIG_MIPS_MACHINE |
| int mips_machtype_setup(char *id) __init; |
| void mips_machine_setup(void) __init; |
| static inline int mips_machtype_setup(char *id) { return 1; } |
| static inline void mips_machine_setup(void) { } |
| #endif /* CONFIG_MIPS_MACHINE */ |
| #endif /* __ASM_MIPS_MACHINE_H */ |