summaryrefslogtreecommitdiffstats
path: root/sys/boot/ofw
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2006-11-02 01:23:18 +0000
committermarcel <marcel@FreeBSD.org>2006-11-02 01:23:18 +0000
commitdc91b1990af7dcb6d36cfccc9756c830cf400108 (patch)
treef6d4e8e00f43cedf707309d12500b41a38fcaaf0 /sys/boot/ofw
parent19b599de4af959c5287bac69d61c3810ae390dfe (diff)
downloadFreeBSD-src-dc91b1990af7dcb6d36cfccc9756c830cf400108.zip
FreeBSD-src-dc91b1990af7dcb6d36cfccc9756c830cf400108.tar.gz
Extend struct devdesc with a unit field, called d_unit. Promote the
device (kind) specific unit field to the common field. This change allows a future version of libefi to work without requiring anything more than what is defined in struct devdesc and as such makes it possible to compile said version of libefi for different platforms without requiring that those platforms have identical derivatives of struct devdesc.
Diffstat (limited to 'sys/boot/ofw')
-rw-r--r--sys/boot/ofw/libofw/libofw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/boot/ofw/libofw/libofw.h b/sys/boot/ofw/libofw/libofw.h
index 71a2462..748233e 100644
--- a/sys/boot/ofw/libofw/libofw.h
+++ b/sys/boot/ofw/libofw/libofw.h
@@ -31,6 +31,7 @@
struct ofw_devdesc {
struct devsw *d_dev;
int d_type;
+ int d_unit;
ihandle_t d_handle;
char d_path[256];
};
OpenPOWER on IntegriCloud