Lines Matching +full:int +full:- +full:property

1 /* SPDX-License-Identifier: GPL-2.0 */
29 extern unsigned int prom_rev, prom_prev;
37 * and usage utility functions. Only prom-lib should use these,
65 /* Enter the prom, with no chance of continuation for the stand-alone
74 * XXX The arguments are different on V0 vs. V2->higher proms, grrr! XXX
83 unsigned char prom_get_idprom(char *idp_buffer, int idpbuf_size);
86 int prom_version(void);
89 int prom_getrev(void);
92 int prom_getprev(void);
95 void prom_console_write_buf(const char *buf, int len);
99 void prom_write(const char *buf, unsigned int len);
106 int prom_startcpu(int cpunode, struct linux_prom_registers *context_table,
107 int context, char *program_counter);
122 /* Get the length, at the passed node, of the given property type.
123 * Returns -1 on error (ie. no such property at this node).
125 int prom_getproplen(phandle thisnode, const char *property);
127 /* Fetch the requested property using the given buffer. Returns
128 * the number of bytes the prom put into your buffer or -1 on error.
130 int __must_check prom_getproperty(phandle thisnode, const char *property,
131 char *prop_buffer, int propbuf_size);
133 /* Acquire an integer property. */
134 int prom_getint(phandle node, char *property);
136 /* Acquire an integer property, with a default value. */
137 int prom_getintdefault(phandle node, char *property, int defval);
139 /* Acquire a boolean property, 0=FALSE 1=TRUE. */
140 int prom_getbool(phandle node, char *prop);
142 /* Acquire a string property, null string on error. */
143 void prom_getstring(phandle node, char *prop, char *buf, int bufsize);
150 /* Returns the next property after the passed property for the given
158 /* Set the indicated property at the given node with the passed value.
161 int prom_setprop(phandle node, const char *prop_name, char *prop_value,
162 int value_size);
164 phandle prom_inst2pkg(int);
169 void prom_apply_obio_ranges(struct linux_prom_registers *obioregs, int nregs);
173 struct linux_prom_registers *sbusregs, int nregs);
178 int cpu_find_by_instance(int instance, phandle *prom_node, int *mid);
179 int cpu_find_by_mid(int mid, phandle *prom_node);
180 int cpu_get_hwmid(phandle prom_node);