/linux-3.3/scripts/dtc/ |
D | livetree.c | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * You should have received a copy of the GNU General Public License 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 33 if (streq(new->label, label)) in add_label() 37 new->label = label; in add_label() 38 new->next = *labels; in add_label() 42 struct property *build_property(char *name, struct data val) in build_property() 44 struct property *new = xmalloc(sizeof(*new)); in build_property() 48 new->name = name; in build_property() 49 new->val = val; in build_property() [all …]
|
D | checks.c | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * You should have received a copy of the GNU General Public License 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 26 fprintf(stderr, "=== %s: ", (c)->name); \ 49 typedef void (*tree_check_fn)(struct check *c, struct node *dt); 50 typedef void (*node_check_fn)(struct check *c, struct node *dt, struct node *node); 51 typedef void (*prop_check_fn)(struct check *c, struct node *dt, 52 struct node *node, struct property *prop); 98 if ((c->level < WARN) || (c->level <= quiet)) in check_msg() 102 (c->level == ERROR) ? "ERROR" : "Warning", c->name); in check_msg() [all …]
|
D | dtc.h | 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 * You should have received a copy of the GNU General Public License 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 64 #define streq(a, b) (strcmp((a), (b)) == 0) argument 65 #define strneq(a, b, n) (strncmp((a), (b), (n)) == 0) argument 67 #define ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1)) argument 94 for (; (m); (m) = (m)->next) 97 if ((m)->type == (t)) 133 struct property { struct 137 struct property *next; argument [all …]
|
D | flattree.c | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * You should have received a copy of the GNU General Public License 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 57 void (*property)(void *, struct label *labels); member 78 static void bin_emit_align(void *e, int a) in bin_emit_align() argument 82 *dtbuf = data_append_align(*dtbuf, a); in bin_emit_align() 114 .property = bin_emit_property, 165 static void asm_emit_align(void *e, int a) in asm_emit_align() argument 169 fprintf(f, "\t.balign\t%d, 0\n", a); in asm_emit_align() 179 emit_offset_label(f, m->ref, m->offset); in asm_emit_data() [all …]
|
/linux-3.3/Documentation/devicetree/bindings/crypto/ |
D | fsl-sec4.txt | 3 Copyright (C) 2008-2011 Freescale Semiconductor Inc. 6 -Overview 7 -SEC 4 Node 8 -Job Ring Node 9 -Run Time Integrity Check (RTIC) Node 10 -Run Time Integrity Check (RTIC) Memory Node 11 -Secure Non-Volatile Storage (SNVS) Node 12 -Full Example 28 HW interface between QM & SEC 4 and also BM & SEC 4, on DPAA-enabled parts 30 equal to the number of Descriptor Controller (DECO) engines in a particular [all …]
|
/linux-3.3/fs/proc/ |
D | proc_devtree.c | 2 * proc_devtree.c - handles /proc/device-tree 24 np->pde = de; in set_node_proc_entry() 31 * Supply data on a read from /proc/device-tree/node/property. 35 struct property *pp = m->private; in property_proc_show() 37 seq_write(m, pp->value, pp->length); in property_proc_show() 43 return single_open(file, property_proc_show, PDE(inode)->data); in property_proc_open() 55 * For a node with a name like "gc@10", we make symlinks called "gc" 60 * Add a property to a node 63 __proc_device_tree_add_prop(struct proc_dir_entry *de, struct property *pp, in __proc_device_tree_add_prop() 73 strncmp(name, "security-", 9) ? S_IRUGO : S_IRUSR, in __proc_device_tree_add_prop() [all …]
|
/linux-3.3/Documentation/devicetree/ |
D | booting-without-of.txt | 2 -------------------------------------------------- 7 Freescale Semiconductor, FSL SOC and 32-bit additions 9 Flash chip node definition 14 I - Introduction 19 II - The DT block format 25 III - Required content of the device tree 29 4) Note about node and property names and character set 31 a) The root node 32 b) The /cpus node 34 d) the /memory node(s) [all …]
|
/linux-3.3/drivers/of/ |
D | base.c | 5 * Copyright (C) 1996-2005 Paul Mackerras. 28 * struct alias_prop - Alias property in 'aliases' node 29 * @link: List node to link the structure in aliases_lookup list 30 * @alias: Alias property name 35 * The structure represents one alias property of 'aliases' node as 54 /* use when traversing tree through the allnext, child, sibling, 64 if (np->parent) in of_n_addr_cells() 65 np = np->parent; in of_n_addr_cells() 66 ip = of_get_property(np, "#address-cells", NULL); in of_n_addr_cells() 69 } while (np->parent); in of_n_addr_cells() [all …]
|
D | platform.c | 18 #include <linux/dma-mapping.h> 27 { .compatible = "simple-bus", }, 29 { .compatible = "arm,amba-bus", }, 36 return dev->of_node == data; in of_dev_node_match() 40 * of_find_device_by_node - Find the platform_device associated with a node 41 * @np: Pointer to device tree node 60 * The following routines scan a subtree and registers a device for 61 * each applicable node. 63 * Note: sparc doesn't use these routines because it has a different 68 * of_device_make_bus_id - Use the device node data to assign a unique name [all …]
|
D | irq.c | 5 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) 7 * Copyright (C) 1996-2001 Cort Dougan 30 * irq_of_parse_and_map - Parse and map an interrupt into linux virq space 31 * @device: Device node of the device whose interrupt is to be mapped 34 * This function is a wrapper that chains of_irq_map_one() and 50 * of_irq_find_parent - Given a device node, find its interrupt parent node 51 * @child: pointer to device node 53 * Returns a pointer to the interrupt parent node, or NULL if the interrupt 56 struct device_node *of_irq_find_parent(struct device_node *child) in of_irq_find_parent() argument 61 if (!of_node_get(child)) in of_irq_find_parent() [all …]
|
D | of_mdio.c | 26 * of_mdiobus_register - Register mii_bus and create PHYs from the device tree 30 * This function registers the mii_bus structure and registers a phy_device 31 * for each child node of @np. 36 struct device_node *child; in of_mdiobus_register() local 41 mdio->phy_mask = ~0; in of_mdiobus_register() 44 if (mdio->irq) in of_mdiobus_register() 46 mdio->irq[i] = PHY_POLL; in of_mdiobus_register() 53 /* Loop over the child nodes and register a phy_device for each one */ in of_mdiobus_register() 54 for_each_child_of_node(np, child) { in of_mdiobus_register() 59 /* A PHY must have a reg property in the range [0-31] */ in of_mdiobus_register() [all …]
|
D | of_spi.c | 17 * of_register_spi_devices - Register child devices onto the SPI bus 20 * Registers an spi_device for each child node of master node which has a 'reg' 21 * property. 31 if (!master->dev.of_node) in of_register_spi_devices() 34 for_each_child_of_node(master->dev.of_node, nc) { in of_register_spi_devices() 38 dev_err(&master->dev, "spi_device alloc error for %s\n", in of_register_spi_devices() 39 nc->full_name); in of_register_spi_devices() 45 if (of_modalias_node(nc, spi->modalias, in of_register_spi_devices() 46 sizeof(spi->modalias)) < 0) { in of_register_spi_devices() 47 dev_err(&master->dev, "cannot find modalias for %s\n", in of_register_spi_devices() [all …]
|
/linux-3.3/include/linux/ |
D | of.h | 7 * Copyright (C) 1996-2005 Paul Mackerras. 31 struct property { struct 35 struct property *next; argument 50 struct property *properties; argument 51 struct property *deadprops; /* removed properties */ 53 struct device_node *child; member 57 struct proc_dir_entry *pde; /* this node's proc directory */ 76 /* Dummy ref counting routines - to be implemented later */ 77 static inline struct device_node *of_node_get(struct device_node *node) in of_node_get() argument 79 return node; in of_node_get() [all …]
|
/linux-3.3/arch/powerpc/kernel/ |
D | pci_of_scan.c | 19 #include <asm/pci-bridge.h> 23 * get_int_prop - Decode a u32 from a device tree property 37 * pci_parse_of_flags - Parse the flags cell of a device tree PCI address 38 * @addr0: value of 1st cell of a device tree PCI address. 39 * @bridge: Set this flag if the address is from a bridge 'ranges' property 55 * do a config space read, it will be force-enabled if needed in pci_parse_of_flags() 67 * of_pci_parse_addrs - Parse PCI addresses assigned in the device tree node 68 * @node: device tree node for the PCI device 71 * This function parses the 'assigned-addresses' property of a PCI devices' 72 * device tree node and writes them into the associated pci_dev structure. [all …]
|
/linux-3.3/arch/m68k/include/asm/ |
D | oplib.h | 28 /* Root node of the prom device tree, this stays constant after 34 * and usage utility functions. Only prom-lib should use these, 52 * virtual address you pass is a request and the prom may put your mappings 64 * of the string is different on V0 vs. V2->higher proms. The caller must 69 /* Close a previously opened device described by the passed integer 74 /* Do a seek operation on the device described by the passed integer 82 /* This function returns a V0 format memory descriptor table, it has three 85 * areas which are allocated by the prom. So, in a sense the physical 86 * available is a calculation of the total physical minus the physical mapped 89 * These lists are returned pre-sorted, this should make your life easier [all …]
|
/linux-3.3/Documentation/devicetree/bindings/powerpc/fsl/ |
D | srio.txt | 3 RapidIO port node: 5 - compatible 11 Optionally, a compatiable string of "fsl,srio-vX.Y" where X is Major 15 - reg 17 Value type: <prop-encoded-array> 18 Definition: A standard property. Specifies the physical address and 22 - interrupts 24 Value type: <prop_encoded-array> 26 value of the interrupts property consists of one interrupt 28 binding document describing the node's interrupt parent. [all …]
|
D | mpc5200.txt | 2 ---------------------------- 4 (c) 2006-2009 Secret Lab Technologies Ltd 8 ------------------ 9 For mpc5200 on-chip devices, the format for each compatible value is 10 <chip>-<device>[-<mode>]. The OS should be able to match a device driver 15 The split between the MPC5200 and the MPC5200B leaves a bit of a 16 conundrum. How should the compatible property be set up to provide 21 "fsl,mpc5200-<device>". 24 silicon bugs and it adds a small number of enhancements. Most of the 25 devices either provide exactly the same interface as on the 5200. A few [all …]
|
D | dcsr.txt | 15 This node defines the base address and range for the 16 defined DCSR Memory Map. Child nodes will describe the individual 21 - compatible 24 Definition: Must include "fsl,dcsr" and "simple-bus". 25 The DCSR space exists in the memory-mapped bus. 27 - #address-cells 30 Definition: A standard property. Defines the number of cells 31 or representing physical addresses in child nodes. 33 - #size-cells 36 Definition: A standard property. Defines the number of cells [all …]
|
/linux-3.3/arch/sparc/include/asm/ |
D | oplib_32.h | 30 /* Root node of the prom device tree, this stays constant after 36 * and usage utility functions. Only prom-lib should use these, 64 /* Enter the prom, with no chance of continuation for the stand-alone 73 * XXX The arguments are different on V0 vs. V2->higher proms, grrr! XXX 78 /* Acquire the IDPROM of the root node in the prom device tree. This 79 * gets passed a buffer where you would like it stuffed. The return value 93 /* Write a buffer of characters to the console. */ 102 /* Start the CPU with the given device tree node, context table, and context 108 /* Sun4/sun4c specific memory-management startup hook. */ 121 /* Get the child node of the given node, or zero if no child exists. */ [all …]
|
D | oplib_64.h | 16 /* Root node of the prom device tree, this stays constant after 24 /* /chosen node of the prom device tree, this stays constant after 83 /* Enter the prom, with no chance of continuation for the stand-alone 88 /* Halt and power-off the machine. */ 91 /* Acquire the IDPROM of the root node in the prom device tree. This 92 * gets passed a buffer where you would like it stuffed. The return value 97 /* Write a buffer of characters to the console. */ 106 /* Start the CPU with the given device tree node at the passed program 125 /* Resume the CPU with the passed device tree node. */ 137 /* Initiate a wakeup event. */ [all …]
|
/linux-3.3/arch/sparc/prom/ |
D | tree_64.c | 19 static phandle prom_node_to_node(const char *type, phandle node) in prom_node_to_node() argument 26 args[3] = (unsigned int) node; in prom_node_to_node() 27 args[4] = (unsigned long) -1; in prom_node_to_node() 34 /* Return the child of node 'node' or zero if no this node has no 37 inline phandle __prom_getchild(phandle node) in __prom_getchild() argument 39 return prom_node_to_node("child", node); in __prom_getchild() 42 inline phandle prom_getchild(phandle node) in prom_getchild() argument 46 if ((s32)node == -1) in prom_getchild() 48 cnode = __prom_getchild(node); in prom_getchild() 49 if ((s32)cnode == -1) in prom_getchild() [all …]
|
D | tree_32.c | 23 static phandle __prom_getchild(phandle node) in __prom_getchild() argument 29 cnode = prom_nodeops->no_child(node); in __prom_getchild() 36 /* Return the child of node 'node' or zero if no this node has no 39 phandle prom_getchild(phandle node) in prom_getchild() argument 43 if ((s32)node == -1) in prom_getchild() 46 cnode = __prom_getchild(node); in prom_getchild() 47 if (cnode == 0 || (s32)cnode == -1) in prom_getchild() 55 static phandle __prom_getsibling(phandle node) in __prom_getsibling() argument 61 cnode = prom_nodeops->no_nextnode(node); in __prom_getsibling() 68 /* Return the next sibling of node 'node' or zero if no more siblings [all …]
|
/linux-3.3/Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/ |
D | qe.txt | 7 Basically, it is a bus of devices, that could act more or less 8 as a complete entity (UCC, USB etc ). All of them should be siblings on 9 the "root" qe node, using the common properties from there. 16 - compatible : should be "fsl,qe"; 17 - model : precise model of the QE, Can be "QE", "CPM", or "CPM2" 18 - reg : offset and length of the device registers. 19 - bus-frequency : the clock frequency for QUICC Engine. 20 - fsl,qe-num-riscs: define how many RISC engines the QE has. 21 - fsl,qe-num-snums: define how many serial number(SNUM) the QE can use for the 25 - fsl,firmware-phandle: [all …]
|
/linux-3.3/arch/powerpc/platforms/pseries/ |
D | reconfig.c | 2 * pSeries_reconfig.c - support for dynamic reconfiguration (including PCI 33 * Add a node to /proc/device-tree. 39 ent = proc_mkdir(strrchr(np->full_name, '/') + 1, np->parent->pde); in add_node_proc_entries() 46 struct property *pp = np->properties; in remove_node_proc_entries() 47 struct device_node *parent = np->parent; in remove_node_proc_entries() 50 remove_proc_entry(pp->name, np->pde); in remove_node_proc_entries() 51 pp = pp->next; in remove_node_proc_entries() 53 if (np->pde) in remove_node_proc_entries() 54 remove_proc_entry(np->pde->name, parent->pde); in remove_node_proc_entries() 69 * derive_parent - basically like dirname(1) [all …]
|
/linux-3.3/Documentation/devicetree/bindings/spi/ |
D | spi-bus.txt | 3 SPI busses can be described with a node for the SPI master device 4 and a set of child nodes for each SPI slave on the bus. For this 9 The SPI master node requires the following properties: 10 - #address-cells - number of cells required to define a chip select 12 - #size-cells - should be zero. 13 - compatible - name of SPI bus controller following generic names 15 No other properties are required in the SPI bus node. It is assumed 16 that a driver for an SPI bus device will understand that it is an SPI bus. 19 flexible and non-standardized, it is left out of this binding with the 24 SPI slave nodes must be children of the SPI master node and can [all …]
|