Lines Matching +full:int +full:- +full:property
1 /* SPDX-License-Identifier: GPL-2.0 */
23 extern int prom_stdout;
44 extern int prom_mmu_ihandle_cache;
45 extern unsigned int prom_boot_mapped_pc;
46 extern unsigned int prom_boot_mapping_mode;
85 /* Enter the prom, with no chance of continuation for the stand-alone
90 /* Halt and power-off the machine. */
97 unsigned char prom_get_idprom(char *idp_buffer, int idpbuf_size);
100 void prom_console_write_buf(const char *buf, int len);
104 void prom_write(const char *buf, unsigned int len);
111 void prom_startcpu(int cpunode, unsigned long pc, unsigned long arg);
116 void prom_startcpu_cpuid(int cpuid, unsigned long pc, unsigned long arg);
119 void prom_stopcpu_cpuid(int cpuid);
128 void prom_resumecpu(int cpunode);
137 int prom_sleepsystem(void);
140 int prom_wakeupsystem(void);
145 int prom_getunumber(int syndrome_code,
147 char *buf, int buflen);
150 int prom_retain(const char *name, unsigned long size,
166 #define PROM_MAP_READ 0x0002 /* Readable - sw */
167 #define PROM_MAP_EXEC 0x0004 /* Executable - sw */
170 #define PROM_MAP_SE 0x0040 /* Side-Effects */
172 #define PROM_MAP_IE 0x0100 /* Invert-Endianness */
175 int prom_map(int mode, unsigned long size,
190 /* Get the length, at the passed node, of the given property type.
191 * Returns -1 on error (ie. no such property at this node).
193 int prom_getproplen(phandle thisnode, const char *property);
195 /* Fetch the requested property using the given buffer. Returns
196 * the number of bytes the prom put into your buffer or -1 on error.
198 int prom_getproperty(phandle thisnode, const char *property,
199 char *prop_buffer, int propbuf_size);
201 /* Acquire an integer property. */
202 int prom_getint(phandle node, const char *property);
204 /* Acquire an integer property, with a default value. */
205 int prom_getintdefault(phandle node, const char *property, int defval);
207 /* Acquire a boolean property, 0=FALSE 1=TRUE. */
208 int prom_getbool(phandle node, const char *prop);
210 /* Acquire a string property, null string on error. */
212 int bufsize);
215 int prom_nodematch(phandle thisnode, const char *name);
222 /* Return the first property type, as a string, for the given node.
227 /* Returns the next property after the passed property for the given
232 /* Returns 1 if the specified node has given property. */
233 int prom_node_has_property(phandle node, const char *property);
238 /* Set the indicated property at the given node with the passed value.
241 int prom_setprop(phandle node, const char *prop_name, char *prop_value,
242 int value_size);
244 phandle prom_inst2pkg(int);
247 int prom_ihandle2path(int handle, char *buffer, int bufsize);