wok annotate linux-api-headers/stuff/scsi.patch @ rev 7033

Add: lyx (1.6.7)
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sun Oct 31 23:28:08 2010 +0100 (2010-10-31)
parents
children
rev   line source
slaxemulator@6654 1 diff -Naur linux-2.6.32-old/include/scsi/scsi.h linux-2.6.32/include/scsi/scsi.h
slaxemulator@6654 2 --- linux-2.6.32-old/include/scsi/scsi.h 2009-12-03 13:51:21.000000000 +1000
slaxemulator@6654 3 +++ linux-2.6.32/include/scsi/scsi.h 2009-12-12 10:43:11.000000000 +1000
slaxemulator@6654 4 @@ -145,14 +145,15 @@
slaxemulator@6654 5
slaxemulator@6654 6 /* defined in T10 SCSI Primary Commands-2 (SPC2) */
slaxemulator@6654 7 struct scsi_varlen_cdb_hdr {
slaxemulator@6654 8 - u8 opcode; /* opcode always == VARIABLE_LENGTH_CMD */
slaxemulator@6654 9 - u8 control;
slaxemulator@6654 10 - u8 misc[5];
slaxemulator@6654 11 - u8 additional_cdb_length; /* total cdb length - 8 */
slaxemulator@6654 12 + __u8 opcode; /* opcode always == VARIABLE_LENGTH_CMD */
slaxemulator@6654 13 + __u8 control;
slaxemulator@6654 14 + __u8 misc[5];
slaxemulator@6654 15 + __u8 additional_cdb_length; /* total cdb length - 8 */
slaxemulator@6654 16 __be16 service_action;
slaxemulator@6654 17 /* service specific data follows */
slaxemulator@6654 18 };
slaxemulator@6654 19
slaxemulator@6654 20 +#ifdef __KERNEL__
slaxemulator@6654 21 static inline unsigned
slaxemulator@6654 22 scsi_varlen_cdb_length(const void *hdr)
slaxemulator@6654 23 {
slaxemulator@6654 24 @@ -168,6 +169,7 @@
slaxemulator@6654 25 return (cmnd[0] == VARIABLE_LENGTH_CMD) ?
slaxemulator@6654 26 scsi_varlen_cdb_length(cmnd) : COMMAND_SIZE(cmnd[0]);
slaxemulator@6654 27 }
slaxemulator@6654 28 +#endif
slaxemulator@6654 29
slaxemulator@6654 30 /*
slaxemulator@6654 31 * SCSI Architecture Model (SAM) Status codes. Taken from SAM-3 draft
slaxemulator@6654 32 @@ -284,8 +286,10 @@
slaxemulator@6654 33 SCSI_PROTOCOL_UNSPEC = 0xf, /* No specific protocol */
slaxemulator@6654 34 };
slaxemulator@6654 35
slaxemulator@6654 36 +#ifdef __KERNEL__
slaxemulator@6654 37 /* Returns a human-readable name for the device */
slaxemulator@6654 38 extern const char * scsi_device_type(unsigned type);
slaxemulator@6654 39 +#endif
slaxemulator@6654 40
slaxemulator@6654 41 /*
slaxemulator@6654 42 * standard mode-select header prepended to all mode-select commands