From 54ec3673cc319a5646c21a87bbf41198b1f462b5 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 7 Jul 2009 23:01:28 +0100 Subject: [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. --- src/include/gpxe/ata.h | 2 ++ src/include/gpxe/errfile.h | 1 + 2 files changed, 3 insertions(+) (limited to 'src/include') 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 ) -- cgit v1.2.3-55-g7522