Ready to start testing

This commit is contained in:
Michael Brown
2007-07-08 22:01:49 +01:00
parent edd1b173a7
commit b94420a52b
6 changed files with 127 additions and 161 deletions

View File

@@ -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 */

View File

@@ -4,6 +4,7 @@
#include <stdint.h>
#include <gpxe/blockdev.h>
#include <gpxe/uaccess.h>
#include <gpxe/refcnt.h>
/** @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 );