summaryrefslogtreecommitdiffstats
path: root/sys/boot/uboot/lib
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2012-09-09 11:30:45 +0000
committerae <ae@FreeBSD.org>2012-09-09 11:30:45 +0000
commit6edc2e6fd1d2a1b3481b70e44d2fe6dd11b7fa9c (patch)
tree57ebc0fa868f6c100eda93ee49067dbc9eaa7e17 /sys/boot/uboot/lib
parent8705cd0c254164c2eed65073d7b2214a0cf4214a (diff)
downloadFreeBSD-src-6edc2e6fd1d2a1b3481b70e44d2fe6dd11b7fa9c.zip
FreeBSD-src-6edc2e6fd1d2a1b3481b70e44d2fe6dd11b7fa9c.tar.gz
Make struct uboot_devdesc compatible with struct disk_devdesc.
Diffstat (limited to 'sys/boot/uboot/lib')
-rw-r--r--sys/boot/uboot/lib/libuboot.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/boot/uboot/lib/libuboot.h b/sys/boot/uboot/lib/libuboot.h
index 16f4331..1f63bee 100644
--- a/sys/boot/uboot/lib/libuboot.h
+++ b/sys/boot/uboot/lib/libuboot.h
@@ -35,18 +35,15 @@ struct uboot_devdesc
union {
struct {
void *data;
- int pnum;
- int ptype;
+ int slice;
+ int partition;
+ off_t offset;
} disk;
} d_kind;
};
#define d_disk d_kind.disk
-#define PTYPE_BSDLABEL 1
-#define PTYPE_GPT 2
-#define PTYPE_MBR 3
-
/*
* Default network packet alignment in memory
*/
OpenPOWER on IntegriCloud