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

TOMOYO Linux Cross Reference
Linux/scripts/dtc/libfdt/fdt.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ 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.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /scripts/dtc/libfdt/fdt.h (Version linux-6.12-rc7) and /scripts/dtc/libfdt/fdt.h (Version linux-6.8.12)


  1 /* SPDX-License-Identifier: (GPL-2.0-or-later       1 /* SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) */
  2 #ifndef FDT_H                                       2 #ifndef FDT_H
  3 #define FDT_H                                       3 #define FDT_H
  4 /*                                                  4 /*
  5  * libfdt - Flat Device Tree manipulation           5  * libfdt - Flat Device Tree manipulation
  6  * Copyright (C) 2006 David Gibson, IBM Corpor      6  * Copyright (C) 2006 David Gibson, IBM Corporation.
  7  * Copyright 2012 Kim Phillips, Freescale Semi      7  * Copyright 2012 Kim Phillips, Freescale Semiconductor.
  8  */                                                 8  */
  9                                                     9 
 10 #ifndef __ASSEMBLY__                               10 #ifndef __ASSEMBLY__
 11                                                    11 
 12 struct fdt_header {                                12 struct fdt_header {
 13         fdt32_t magic;                   /* ma     13         fdt32_t magic;                   /* magic word FDT_MAGIC */
 14         fdt32_t totalsize;               /* to     14         fdt32_t totalsize;               /* total size of DT block */
 15         fdt32_t off_dt_struct;           /* of     15         fdt32_t off_dt_struct;           /* offset to structure */
 16         fdt32_t off_dt_strings;          /* of     16         fdt32_t off_dt_strings;          /* offset to strings */
 17         fdt32_t off_mem_rsvmap;          /* of     17         fdt32_t off_mem_rsvmap;          /* offset to memory reserve map */
 18         fdt32_t version;                 /* fo     18         fdt32_t version;                 /* format version */
 19         fdt32_t last_comp_version;       /* la     19         fdt32_t last_comp_version;       /* last compatible version */
 20                                                    20 
 21         /* version 2 fields below */               21         /* version 2 fields below */
 22         fdt32_t boot_cpuid_phys;         /* Wh     22         fdt32_t boot_cpuid_phys;         /* Which physical CPU id we're
 23                                             bo     23                                             booting on */
 24         /* version 3 fields below */               24         /* version 3 fields below */
 25         fdt32_t size_dt_strings;         /* si     25         fdt32_t size_dt_strings;         /* size of the strings block */
 26                                                    26 
 27         /* version 17 fields below */              27         /* version 17 fields below */
 28         fdt32_t size_dt_struct;          /* si     28         fdt32_t size_dt_struct;          /* size of the structure block */
 29 };                                                 29 };
 30                                                    30 
 31 struct fdt_reserve_entry {                         31 struct fdt_reserve_entry {
 32         fdt64_t address;                           32         fdt64_t address;
 33         fdt64_t size;                              33         fdt64_t size;
 34 };                                                 34 };
 35                                                    35 
 36 struct fdt_node_header {                           36 struct fdt_node_header {
 37         fdt32_t tag;                               37         fdt32_t tag;
 38         char name[];                               38         char name[];
 39 };                                                 39 };
 40                                                    40 
 41 struct fdt_property {                              41 struct fdt_property {
 42         fdt32_t tag;                               42         fdt32_t tag;
 43         fdt32_t len;                               43         fdt32_t len;
 44         fdt32_t nameoff;                           44         fdt32_t nameoff;
 45         char data[];                               45         char data[];
 46 };                                                 46 };
 47                                                    47 
 48 #endif /* !__ASSEMBLY */                           48 #endif /* !__ASSEMBLY */
 49                                                    49 
 50 #define FDT_MAGIC       0xd00dfeed      /* 4:      50 #define FDT_MAGIC       0xd00dfeed      /* 4: version, 4: total size */
 51 #define FDT_TAGSIZE     sizeof(fdt32_t)            51 #define FDT_TAGSIZE     sizeof(fdt32_t)
 52                                                    52 
 53 #define FDT_BEGIN_NODE  0x1             /* Sta     53 #define FDT_BEGIN_NODE  0x1             /* Start node: full name */
 54 #define FDT_END_NODE    0x2             /* End     54 #define FDT_END_NODE    0x2             /* End node */
 55 #define FDT_PROP        0x3             /* Pro     55 #define FDT_PROP        0x3             /* Property: name off,
 56                                            siz     56                                            size, content */
 57 #define FDT_NOP         0x4             /* nop     57 #define FDT_NOP         0x4             /* nop */
 58 #define FDT_END         0x9                        58 #define FDT_END         0x9
 59                                                    59 
 60 #define FDT_V1_SIZE     (7*sizeof(fdt32_t))        60 #define FDT_V1_SIZE     (7*sizeof(fdt32_t))
 61 #define FDT_V2_SIZE     (FDT_V1_SIZE + sizeof(     61 #define FDT_V2_SIZE     (FDT_V1_SIZE + sizeof(fdt32_t))
 62 #define FDT_V3_SIZE     (FDT_V2_SIZE + sizeof(     62 #define FDT_V3_SIZE     (FDT_V2_SIZE + sizeof(fdt32_t))
 63 #define FDT_V16_SIZE    FDT_V3_SIZE                63 #define FDT_V16_SIZE    FDT_V3_SIZE
 64 #define FDT_V17_SIZE    (FDT_V16_SIZE + sizeof     64 #define FDT_V17_SIZE    (FDT_V16_SIZE + sizeof(fdt32_t))
 65                                                    65 
 66 #endif /* FDT_H */                                 66 #endif /* FDT_H */
 67                                                    67 

~ [ 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