~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/mips/include/asm/mips_machine.h

Version: ~ [ linux-5.12 ] ~ [ linux-5.11.16 ] ~ [ linux-5.10.32 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.114 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.188 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.231 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.267 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.267 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.18.140 ] ~ [ linux-3.16.85 ] ~ [ linux-3.14.79 ] ~ [ linux-3.12.74 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  *  Copyright (C) 2008-2010 Gabor Juhos <juhosg@openwrt.org>
  3  *
  4  *  This program is free software; you can redistribute it and/or modify it
  5  *  under the terms of the GNU General Public License version 2 as published
  6  *  by the Free Software Foundation.
  7  *
  8  */
  9 
 10 #ifndef __ASM_MIPS_MACHINE_H
 11 #define __ASM_MIPS_MACHINE_H
 12 
 13 #include <linux/init.h>
 14 #include <linux/stddef.h>
 15 
 16 #include <asm/bootinfo.h>
 17 
 18 struct mips_machine {
 19         unsigned long           mach_type;
 20         const char              *mach_id;
 21         const char              *mach_name;
 22         void                    (*mach_setup)(void);
 23 };
 24 
 25 #define MIPS_MACHINE(_type, _id, _name, _setup)                 \
 26 static const char machine_name_##_type[] __initconst            \
 27                         __aligned(1) = _name;                   \
 28 static const char machine_id_##_type[] __initconst              \
 29                         __aligned(1) = _id;                     \
 30 static struct mips_machine machine_##_type                      \
 31                 __used __section(.mips.machines.init) =         \
 32 {                                                               \
 33         .mach_type      = _type,                                \
 34         .mach_id        = machine_id_##_type,                   \
 35         .mach_name      = machine_name_##_type,                 \
 36         .mach_setup     = _setup,                               \
 37 };
 38 
 39 extern long __mips_machines_start;
 40 extern long __mips_machines_end;
 41 
 42 #ifdef CONFIG_MIPS_MACHINE
 43 int  mips_machtype_setup(char *id) __init;
 44 void mips_machine_setup(void) __init;
 45 #else
 46 static inline int mips_machtype_setup(char *id) { return 1; }
 47 static inline void mips_machine_setup(void) { }
 48 #endif /* CONFIG_MIPS_MACHINE */
 49 
 50 #endif /* __ASM_MIPS_MACHINE_H */
 51 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp