summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/device.h
diff options
context:
space:
mode:
authorMichael Brown2010-09-22 01:12:23 +0200
committerMichael Brown2010-09-22 18:09:56 +0200
commit3c35ae2f3b67fcd8f1ded0431fbaca05fa7fd3a0 (patch)
tree32a19df0bb5fcb3c7fe9bc3b2db886adbbee04fe /src/include/ipxe/device.h
parent[aoe] Fail immediately when network device is closed (diff)
downloadipxe-3c35ae2f3b67fcd8f1ded0431fbaca05fa7fd3a0.tar.gz
ipxe-3c35ae2f3b67fcd8f1ded0431fbaca05fa7fd3a0.tar.xz
ipxe-3c35ae2f3b67fcd8f1ded0431fbaca05fa7fd3a0.zip
[int13] Add infrastructure to support EDD version 4.0
Support the extensions mandated by EDD 4.0, including: o the ability to specify a flat physical address in a disk address packet, o the ability to specify a sector count greater than 127 in a disk address packet, o support for all functions within the Fixed Disk Access and EDD Support subsets, o the ability to describe a device using EDD Device Path Information. This implementation is based on draft revision 3 of the EDD 4.0 specification, with reference to the EDD 3.0 specification. It is possible that this implementation may need to change in order to conform to the final published EDD 4.0 specification. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/device.h')
-rw-r--r--src/include/ipxe/device.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/ipxe/device.h b/src/include/ipxe/device.h
index 85675300..068268ba 100644
--- a/src/include/ipxe/device.h
+++ b/src/include/ipxe/device.h
@@ -13,6 +13,8 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <ipxe/list.h>
#include <ipxe/tables.h>
+struct interface;
+
/** A hardware device description */
struct device_description {
/** Bus type
@@ -110,4 +112,8 @@ struct root_driver {
/** Declare a root device */
#define __root_device __table_entry ( ROOT_DEVICES, 01 )
+extern struct device * identify_device ( struct interface *intf );
+#define identify_device_TYPE( object_type ) \
+ typeof ( struct device * ( object_type ) )
+
#endif /* _IPXE_DEVICE_H */