summaryrefslogtreecommitdiffstats
path: root/sys/dev/ofw/openfirm.h
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2009-06-14 00:05:38 +0000
committermarius <marius@FreeBSD.org>2009-06-14 00:05:38 +0000
commit3961775a2db6be3ae2d269fb4fd4bb0465075f50 (patch)
tree6d55f50ca451267249e8300f0d3fcfa3987f7bd7 /sys/dev/ofw/openfirm.h
parent58b8ea457a3c19c4d56dab1375a71b926f674a2a (diff)
downloadFreeBSD-src-3961775a2db6be3ae2d269fb4fd4bb0465075f50.zip
FreeBSD-src-3961775a2db6be3ae2d269fb4fd4bb0465075f50.tar.gz
Fix style.
Diffstat (limited to 'sys/dev/ofw/openfirm.h')
-rw-r--r--sys/dev/ofw/openfirm.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/ofw/openfirm.h b/sys/dev/ofw/openfirm.h
index 614c4b2..10e8aad 100644
--- a/sys/dev/ofw/openfirm.h
+++ b/sys/dev/ofw/openfirm.h
@@ -57,8 +57,8 @@
* $FreeBSD$
*/
-#ifndef _OPENFIRM_H_
-#define _OPENFIRM_H_
+#ifndef _DEV_OPENFIRM_H_
+#define _DEV_OPENFIRM_H_
#include <sys/types.h>
@@ -66,7 +66,7 @@
* Prototypes for Open Firmware Interface Routines
*/
-typedef uint32_t ihandle_t;
+typedef uint32_t ihandle_t;
typedef uint32_t phandle_t;
typedef uint32_t pcell_t;
@@ -78,7 +78,7 @@ typedef uint32_t pcell_t;
MALLOC_DECLARE(M_OFWPROP);
/*
- * Open Firmware interface initialization. OF_install installs the named
+ * Open Firmware interface initialization. OF_install installs the named
* interface as the Open Firmware access mechanism, OF_init initializes it.
*/
@@ -94,8 +94,8 @@ void OF_init(void *cookie);
#define OFW_FDT "ofw_fdt" /* Flattened Device Tree */
/* Generic functions */
-int OF_test(const char *);
-void OF_printf(const char *, ...);
+int OF_test(const char *name);
+void OF_printf(const char *fmt, ...);
/* Device tree functions */
phandle_t OF_peer(phandle_t node);
@@ -104,7 +104,7 @@ phandle_t OF_parent(phandle_t node);
ssize_t OF_getproplen(phandle_t node, const char *propname);
ssize_t OF_getprop(phandle_t node, const char *propname, void *buf,
size_t len);
-ssize_t OF_searchprop(phandle_t node, char *propname, void *buf,
+ssize_t OF_searchprop(phandle_t node, const char *propname, void *buf,
size_t len);
ssize_t OF_getprop_alloc(phandle_t node, const char *propname,
int elsz, void **buf);
@@ -129,7 +129,7 @@ int OF_call_method(const char *method, ihandle_t instance,
int nargs, int nreturns, ...);
/* Memory functions */
-void *OF_claim(void *virtrequest, size_t size, u_int align);
+void *OF_claim(void *virtrequest, size_t size, u_int align);
void OF_release(void *virt, size_t size);
/* Control transfer functions */
@@ -140,4 +140,4 @@ void OF_exit(void) __attribute__((noreturn));
int OF_interpret(const char *cmd, int nreturns, ...);
#endif /* _KERNEL */
-#endif /* _OPENFIRM_H_ */
+#endif /* _DEV_OPENFIRM_H_ */
OpenPOWER on IntegriCloud