summaryrefslogtreecommitdiffstats
path: root/sys/boot/uboot/lib/api_public.h
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2008-03-13 17:54:21 +0000
committerobrien <obrien@FreeBSD.org>2008-03-13 17:54:21 +0000
commitd0848f449cfa552b05c30bcc6e51bc6139c3686e (patch)
tree0e709adb4347c9e9718297e045714dd2d55024ee /sys/boot/uboot/lib/api_public.h
parent3c1f420f6a964912961c71b20d47aa0ffb53c13d (diff)
downloadFreeBSD-src-d0848f449cfa552b05c30bcc6e51bc6139c3686e.zip
FreeBSD-src-d0848f449cfa552b05c30bcc6e51bc6139c3686e.tar.gz
style(9) & style.Makefile(9)
Reviewed by: raj
Diffstat (limited to 'sys/boot/uboot/lib/api_public.h')
-rw-r--r--sys/boot/uboot/lib/api_public.h54
1 files changed, 27 insertions, 27 deletions
diff --git a/sys/boot/uboot/lib/api_public.h b/sys/boot/uboot/lib/api_public.h
index 09fb8a0..0ec6129 100644
--- a/sys/boot/uboot/lib/api_public.h
+++ b/sys/boot/uboot/lib/api_public.h
@@ -55,25 +55,25 @@
*/
#ifndef _API_PUBLIC_H_
-#define _API_PUBLIC_H_
+#define _API_PUBLIC_H_
-#define API_EINVAL 1 /* invalid argument(s) */
-#define API_ENODEV 2 /* no device */
-#define API_ENOMEM 3 /* no memory */
-#define API_EBUSY 4 /* busy, occupied etc. */
-#define API_EIO 5 /* I/O error */
+#define API_EINVAL 1 /* invalid argument(s) */
+#define API_ENODEV 2 /* no device */
+#define API_ENOMEM 3 /* no memory */
+#define API_EBUSY 4 /* busy, occupied etc. */
+#define API_EIO 5 /* I/O error */
-typedef int (*scp_t)(int, int *, ...);
+typedef int (*scp_t)(int, int *, ...);
-#define API_SIG_VERSION 1
-#define API_SIG_MAGIC "UBootAPI"
-#define API_SIG_MAGLEN 8
+#define API_SIG_VERSION 1
+#define API_SIG_MAGIC "UBootAPI"
+#define API_SIG_MAGLEN 8
struct api_signature {
char magic[API_SIG_MAGLEN]; /* magic string */
- uint16_t version; /* API version */
- uint32_t checksum; /* checksum of this sig struct */
- scp_t syscall; /* entry point to the API */
+ uint16_t version; /* API version */
+ uint32_t checksum; /* checksum of this sig struct */
+ scp_t syscall; /* entry point to the API */
};
enum {
@@ -97,9 +97,9 @@ enum {
API_MAXCALL
};
-#define MR_ATTR_FLASH 0x0001
-#define MR_ATTR_DRAM 0x0002
-#define MR_ATTR_SRAM 0x0003
+#define MR_ATTR_FLASH 0x0001
+#define MR_ATTR_DRAM 0x0002
+#define MR_ATTR_SRAM 0x0003
struct mem_region {
unsigned long start;
@@ -123,17 +123,17 @@ typedef unsigned long lbasize_t;
#endif
typedef unsigned long lbastart_t;
-#define DEV_TYP_NONE 0x0000
-#define DEV_TYP_NET 0x0001
+#define DEV_TYP_NONE 0x0000
+#define DEV_TYP_NET 0x0001
-#define DEV_TYP_STOR 0x0002
-#define DT_STOR_IDE 0x0010
-#define DT_STOR_SCSI 0x0020
-#define DT_STOR_USB 0x0040
-#define DT_STOR_MMC 0x0080
+#define DEV_TYP_STOR 0x0002
+#define DT_STOR_IDE 0x0010
+#define DT_STOR_SCSI 0x0020
+#define DT_STOR_USB 0x0040
+#define DT_STOR_MMC 0x0080
-#define DEV_STA_CLOSED 0x0000 /* invalid, closed */
-#define DEV_STA_OPEN 0x0001 /* open i.e. active */
+#define DEV_STA_CLOSED 0x0000 /* invalid, closed */
+#define DEV_STA_OPEN 0x0001 /* open i.e. active */
struct device_info {
int type;
@@ -149,8 +149,8 @@ struct device_info {
unsigned char hwaddr[6];
} net;
} info;
-#define di_stor info.storage
-#define di_net info.net
+#define di_stor info.storage
+#define di_net info.net
int state;
};
OpenPOWER on IntegriCloud