summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2006-05-29 10:25:31 +0200
committerMichael Brown2006-05-29 10:25:31 +0200
commit654133889709631cb7aa9390134cada1b7067c86 (patch)
tree1c56c6f540c3d25e665294064e2e29ac09c20a1c /src/include
parentInitial AoE implementation. Limitations are: (diff)
downloadipxe-654133889709631cb7aa9390134cada1b7067c86.tar.gz
ipxe-654133889709631cb7aa9390134cada1b7067c86.tar.xz
ipxe-654133889709631cb7aa9390134cada1b7067c86.zip
Handle multi-sector reads by splitting them into subcommands.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/aoe.h2
-rw-r--r--src/include/gpxe/ata.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/include/gpxe/aoe.h b/src/include/gpxe/aoe.h
index 094feb5c3..2e13d7a8d 100644
--- a/src/include/gpxe/aoe.h
+++ b/src/include/gpxe/aoe.h
@@ -110,6 +110,8 @@ struct aoe_session {
extern void aoe_open ( struct aoe_session *aoe );
extern void aoe_close ( struct aoe_session *aoe );
extern int aoe_issue ( struct aoe_session *aoe, struct ata_command *command );
+extern int aoe_issue_split ( struct aoe_session *aoe,
+ struct ata_command *command );
/** An AoE device */
struct aoe_device {
diff --git a/src/include/gpxe/ata.h b/src/include/gpxe/ata.h
index ecc9c5b4e..195e361cf 100644
--- a/src/include/gpxe/ata.h
+++ b/src/include/gpxe/ata.h
@@ -117,6 +117,9 @@ struct ata_cb {
/** Master ("device 0") flag in the ATA device register */
#define ATA_DEV_MASTER 0x00
+/** Mask of non-LBA portion of device register */
+#define ATA_DEV_MASK 0xf0
+
/** "Read sectors" command */
#define ATA_CMD_READ 0x20