From b94420a52bd2f19336b02bd431e80e59ff30d60b Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 8 Jul 2007 22:01:49 +0100 Subject: Ready to start testing --- src/include/gpxe/iscsi.h | 3 +++ src/include/gpxe/scsi.h | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/gpxe/iscsi.h b/src/include/gpxe/iscsi.h index 03fc0641e..d9dd43079 100644 --- a/src/include/gpxe/iscsi.h +++ b/src/include/gpxe/iscsi.h @@ -639,4 +639,7 @@ struct iscsi_session { /** Maximum number of retries at connecting */ #define ISCSI_MAX_RETRIES 2 +extern int iscsi_attach ( struct scsi_device *scsi, const char *root_path ); +extern void iscsi_detach ( struct scsi_device *scsi ); + #endif /* _GPXE_ISCSI_H */ diff --git a/src/include/gpxe/scsi.h b/src/include/gpxe/scsi.h index 9d5952dad..e820117be 100644 --- a/src/include/gpxe/scsi.h +++ b/src/include/gpxe/scsi.h @@ -4,6 +4,7 @@ #include #include #include +#include /** @file * @@ -229,7 +230,7 @@ struct scsi_command { * Must be zero if @c data_in is NULL */ size_t data_in_len; - /** SCSI statua code */ + /** SCSI status code */ uint8_t status; /** SCSI sense response code */ uint8_t sense_response; @@ -260,6 +261,8 @@ struct scsi_device { */ int ( * command ) ( struct scsi_device *scsi, struct scsi_command *command ); + /** Backing device */ + struct refcnt *backend; }; extern int init_scsidev ( struct scsi_device *scsi ); -- cgit v1.2.3-55-g7522