// SPDX-License-Identifier: GPL-2.0 /* * Device Tree Source for the iWave Systems RZ/G1N Qseven board development * platform with camera daughter board * * Copyright (C) 2018 Renesas Electronics Corp. */ /dts-v1/; #include "r8a7744-iwg20m.dtsi" #include "iwg20d-q7-common.dtsi" #include "iwg20d-q7-dbcm-ca.dtsi" / { model = "iWave Systems RZ/G1N Qseven development platform with camera add-on"; compatible = "iwave,g20d", "iwave,g20m", "renesas,r8a7744"; };
aboutsummaryrefslogtreecommitdiffstats
path: root/src/gen-defs.h
blob: dabf64cd9981f605845dd04edf7486a4fb4aa6c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Tool for building defintions accessible from assembler code.  This
// is based on code from the Linux Kernel.
#ifndef __GEN_DEFS_H
#define __GEN_DEFS_H


#define DEFINE(sym, val) \
    asm volatile("\n->" #sym " %0 " #val : : "i" (val))

#define BLANK() \
    asm volatile("\n->" : : )

#define OFFSET(sym, str, mem) \
    DEFINE(sym, offsetof(struct str, mem))

#define COMMENT(x) \
    asm volatile("\n->#" x)

#endif // gen-defs.h