diff options
| author | Michael Brown | 2009-07-08 00:01:28 +0200 |
|---|---|---|
| committer | Michael Brown | 2009-07-18 00:01:20 +0200 |
| commit | 54ec3673cc319a5646c21a87bbf41198b1f462b5 (patch) | |
| tree | 1f9082322c78bc0b6110784198782126dd0394ee /src/include | |
| parent | [scsi] Improve SCSI debugging (diff) | |
| download | ipxe-54ec3673cc319a5646c21a87bbf41198b1f462b5.tar.gz ipxe-54ec3673cc319a5646c21a87bbf41198b1f462b5.tar.xz ipxe-54ec3673cc319a5646c21a87bbf41198b1f462b5.zip | |
[ata] Make ATA command issuing partially asynchronous
Move the icky call to step() from aoe.c to ata.c; this takes it at
least one step further away from where it really doesn't belong.
Unfortunately, AoE has the ugly aoe_discover() mechanism which means
that we still have a step() loop in aoe.c for now; this needs to be
replaced at some future point.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/gpxe/ata.h | 2 | ||||
| -rw-r--r-- | src/include/gpxe/errfile.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/include/gpxe/ata.h b/src/include/gpxe/ata.h index 643b7cd9d..3c5658445 100644 --- a/src/include/gpxe/ata.h +++ b/src/include/gpxe/ata.h @@ -154,6 +154,8 @@ struct ata_command { * sectors in size. */ userptr_t data_in; + /** Command status code */ + int rc; }; /** diff --git a/src/include/gpxe/errfile.h b/src/include/gpxe/errfile.h index 7ca9c9989..1312cbc95 100644 --- a/src/include/gpxe/errfile.h +++ b/src/include/gpxe/errfile.h @@ -115,6 +115,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #define ERRFILE_arbel ( ERRFILE_DRIVER | 0x00710000 ) #define ERRFILE_hermon ( ERRFILE_DRIVER | 0x00720000 ) #define ERRFILE_linda ( ERRFILE_DRIVER | 0x00730000 ) +#define ERRFILE_ata ( ERRFILE_DRIVER | 0x00740000 ) #define ERRFILE_aoe ( ERRFILE_NET | 0x00000000 ) #define ERRFILE_arp ( ERRFILE_NET | 0x00010000 ) |
