diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2007-05-30 13:57:12 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2007-06-01 12:55:23 -0400 |
commit | 0801c242a33426fddc005c2f559a3d2fa6fca7eb (patch) | |
tree | be5b4b54766ee7f53458a5cd69e9f9ada8102676 /include/scsi/libiscsi.h | |
parent | 1d9bf13a9cf91f8faf221e98a64dd1157bcf5fa9 (diff) |
[SCSI] libiscsi, iscsi_tcp, ib_iser : add sw iscsi host get/set params helpers
iscsid and udev need to key off the hw address being
used so add some helpers for iser and iscsi tcp.
Also convert them
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Cc: Roland Dreier <rdreier@cisco.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi/libiscsi.h')
-rw-r--r-- | include/scsi/libiscsi.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index ea0816d4904d..e202cc00c8e7 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h | |||
@@ -224,7 +224,8 @@ struct iscsi_session { | |||
224 | int erl; | 224 | int erl; |
225 | int tpgt; | 225 | int tpgt; |
226 | char *targetname; | 226 | char *targetname; |
227 | 227 | /* hw address being used for iscsi connection */ | |
228 | char *hwaddress; | ||
228 | /* control data */ | 229 | /* control data */ |
229 | struct iscsi_transport *tt; | 230 | struct iscsi_transport *tt; |
230 | struct Scsi_Host *host; | 231 | struct Scsi_Host *host; |
@@ -255,6 +256,16 @@ extern int iscsi_eh_host_reset(struct scsi_cmnd *sc); | |||
255 | extern int iscsi_queuecommand(struct scsi_cmnd *sc, | 256 | extern int iscsi_queuecommand(struct scsi_cmnd *sc, |
256 | void (*done)(struct scsi_cmnd *)); | 257 | void (*done)(struct scsi_cmnd *)); |
257 | 258 | ||
259 | |||
260 | /* | ||
261 | * iSCSI host helpers. | ||
262 | */ | ||
263 | extern int iscsi_host_set_param(struct Scsi_Host *shost, | ||
264 | enum iscsi_host_param param, char *buf, | ||
265 | int buflen); | ||
266 | extern int iscsi_host_get_param(struct Scsi_Host *shost, | ||
267 | enum iscsi_host_param param, char *buf); | ||
268 | |||
258 | /* | 269 | /* |
259 | * session management | 270 | * session management |
260 | */ | 271 | */ |