aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/scsi_netlink.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/scsi/scsi_netlink.h')
-rw-r--r--include/scsi/scsi_netlink.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/scsi/scsi_netlink.h b/include/scsi/scsi_netlink.h
index 7a3a20e640c0..8c1470cc8209 100644
--- a/include/scsi/scsi_netlink.h
+++ b/include/scsi/scsi_netlink.h
@@ -67,9 +67,10 @@ struct scsi_nl_hdr {
67 * Identifiers for each type: 67 * Identifiers for each type:
68 * PCI : ID data is the 16 bit PCI Registered Vendor ID 68 * PCI : ID data is the 16 bit PCI Registered Vendor ID
69 */ 69 */
70#define SCSI_NL_VID_ID_MASK 0x00FFFFFF 70#define SCSI_NL_VID_TYPE_SHIFT 56
71#define SCSI_NL_VID_TYPE_MASK 0xFF000000 71#define SCSI_NL_VID_TYPE_MASK ((u64)0xFF << SCSI_NL_VID_TYPE_SHIFT)
72#define SCSI_NL_VID_TYPE_PCI 0x01000000 72#define SCSI_NL_VID_TYPE_PCI ((u64)0x01 << SCSI_NL_VID_TYPE_SHIFT)
73#define SCSI_NL_VID_ID_MASK (~ SCSI_NL_VID_TYPE_MASK)
73 74
74 75
75#define INIT_SCSI_NL_HDR(hdr, t, mtype, mlen) \ 76#define INIT_SCSI_NL_HDR(hdr, t, mtype, mlen) \