projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge master.kernel.org:/pub/scm/linux/kernel/git/holtmann/bluetooth-2.6
[powerpc.git]
/
include
/
scsi
/
scsi_transport_fc.h
diff --git
a/include/scsi/scsi_transport_fc.h
b/include/scsi/scsi_transport_fc.h
index
70ad163
..
115db05
100644
(file)
--- a/
include/scsi/scsi_transport_fc.h
+++ b/
include/scsi/scsi_transport_fc.h
@@
-439,4
+439,12
@@
int fc_remote_port_block(struct fc_rport *rport);
void fc_remote_port_unblock(struct fc_rport *rport);
int scsi_is_fc_rport(const struct device *);
void fc_remote_port_unblock(struct fc_rport *rport);
int scsi_is_fc_rport(const struct device *);
+static inline u64 wwn_to_u64(u8 *wwn)
+{
+ return (u64)wwn[0] << 56 | (u64)wwn[1] << 48 |
+ (u64)wwn[2] << 40 | (u64)wwn[3] << 32 |
+ (u64)wwn[4] << 24 | (u64)wwn[5] << 16 |
+ (u64)wwn[6] << 8 | (u64)wwn[7];
+}
+
#endif /* SCSI_TRANSPORT_FC_H */
#endif /* SCSI_TRANSPORT_FC_H */