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

TOMOYO Linux Cross Reference
Linux/arch/arc/include/asm/mach_desc.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*
  3  * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com)
  4  *
  5  * based on METAG mach/arch.h (which in turn was based on ARM)
  6  */
  7 
  8 #ifndef _ASM_ARC_MACH_DESC_H_
  9 #define _ASM_ARC_MACH_DESC_H_
 10 
 11 /**
 12  * struct machine_desc - Board specific callbacks, called from ARC common code
 13  *      Provided by each ARC board using MACHINE_START()/MACHINE_END(), so
 14  *      a multi-platform kernel builds with array of such descriptors.
 15  *      We extend the early DT scan to also match the DT's "compatible" string
 16  *      against the @dt_compat of all such descriptors, and one with highest
 17  *      "DT score" is selected as global @machine_desc.
 18  *
 19  * @name:               Board/SoC name
 20  * @dt_compat:          Array of device tree 'compatible' strings
 21  *                      (XXX: although only 1st entry is looked at)
 22  * @init_early:         Very early callback [called from setup_arch()]
 23  * @init_per_cpu:       for each CPU as it is coming up (SMP as well as UP)
 24  *                      [(M):init_IRQ(), (o):start_kernel_secondary()]
 25  * @init_machine:       arch initcall level callback (e.g. populate static
 26  *                      platform devices or parse Devicetree)
 27  * @init_late:          Late initcall level callback
 28  *
 29  */
 30 struct machine_desc {
 31         const char              *name;
 32         const char              **dt_compat;
 33         void                    (*init_early)(void);
 34         void                    (*init_per_cpu)(unsigned int);
 35         void                    (*init_machine)(void);
 36         void                    (*init_late)(void);
 37 
 38 };
 39 
 40 /*
 41  * Current machine - only accessible during boot.
 42  */
 43 extern const struct machine_desc *machine_desc;
 44 
 45 /*
 46  * Machine type table - also only accessible during boot
 47  */
 48 extern const struct machine_desc __arch_info_begin[], __arch_info_end[];
 49 
 50 /*
 51  * Set of macros to define architecture features.
 52  * This is built into a table by the linker.
 53  */
 54 #define MACHINE_START(_type, _name)                     \
 55 static const struct machine_desc __mach_desc_##_type    \
 56 __used __section(".arch.info.init") = {                 \
 57         .name           = _name,
 58 
 59 #define MACHINE_END                             \
 60 };
 61 
 62 extern const struct machine_desc *setup_machine_fdt(void *dt);
 63 
 64 #endif
 65 

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

kernel.org | git.kernel.org | LWN.net | Project Home | 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.

sflogo.php