git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[SCSI] aic94xx: new driver
[pandora-kernel.git]
/
include
/
scsi
/
scsi.h
diff --git
a/include/scsi/scsi.h
b/include/scsi/scsi.h
index
1bc6752
..
84a6d5f
100644
(file)
--- a/
include/scsi/scsi.h
+++ b/
include/scsi/scsi.h
@@
-429,4
+429,10
@@
struct scsi_lun {
/* Used to obtain the PCI location of a device */
#define SCSI_IOCTL_GET_PCI 0x5387
/* Used to obtain the PCI location of a device */
#define SCSI_IOCTL_GET_PCI 0x5387
+/* Pull a u32 out of a SCSI message (using BE SCSI conventions) */
+static inline u32 scsi_to_u32(u8 *ptr)
+{
+ return (ptr[0]<<24) + (ptr[1]<<16) + (ptr[2]<<8) + ptr[3];
+}
+
#endif /* _SCSI_SCSI_H */
#endif /* _SCSI_SCSI_H */