Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35033
b: refs/heads/master
c: f14e2e2
h: refs/heads/master
i:
  35031: 41aaf0f
v: v3
  • Loading branch information
James Smart authored and James Bottomley committed Sep 2, 2006
1 parent 51e8716 commit ea6d72d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 84314fd4740ad73550c76dee4a9578979d84af48
refs/heads/master: f14e2e29cdd07f80de6dec168dc2bb39de37eec3
2 changes: 1 addition & 1 deletion trunk/drivers/scsi/scsi_transport_fc.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ EXPORT_SYMBOL(fc_host_post_event);
**/
void
fc_host_post_vendor_event(struct Scsi_Host *shost, u32 event_number,
u32 data_len, char * data_buf, u32 vendor_id)
u32 data_len, char * data_buf, u64 vendor_id)
{
struct sk_buff *skb;
struct nlmsghdr *nlh;
Expand Down
7 changes: 4 additions & 3 deletions trunk/include/scsi/scsi_netlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ struct scsi_nl_hdr {
* Identifiers for each type:
* PCI : ID data is the 16 bit PCI Registered Vendor ID
*/
#define SCSI_NL_VID_ID_MASK 0x00FFFFFF
#define SCSI_NL_VID_TYPE_MASK 0xFF000000
#define SCSI_NL_VID_TYPE_PCI 0x01000000
#define SCSI_NL_VID_TYPE_SHIFT 56
#define SCSI_NL_VID_TYPE_MASK ((u64)0xFF << SCSI_NL_VID_TYPE_SHIFT)
#define SCSI_NL_VID_TYPE_PCI ((u64)0x01 << SCSI_NL_VID_TYPE_SHIFT)
#define SCSI_NL_VID_ID_MASK (~ SCSI_NL_VID_TYPE_MASK)


#define INIT_SCSI_NL_HDR(hdr, t, mtype, mlen) \
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/scsi/scsi_netlink_fc.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
struct fc_nl_event {
struct scsi_nl_hdr snlh; /* must be 1st element ! */
uint64_t seconds;
uint32_t vendor_id;
uint64_t vendor_id;
uint16_t host_no;
uint16_t event_datalen;
uint32_t event_num;
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/scsi/scsi_transport_fc.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ u32 fc_get_event_number(void);
void fc_host_post_event(struct Scsi_Host *shost, u32 event_number,
enum fc_host_event_code event_code, u32 event_data);
void fc_host_post_vendor_event(struct Scsi_Host *shost, u32 event_number,
u32 data_len, char * data_buf, u32 vendor_id);
u32 data_len, char * data_buf, u64 vendor_id);
/* Note: when specifying vendor_id to fc_host_post_vendor_event()
* be sure to read the Vendor Type and ID formatting requirements
* specified in scsi_netlink.h
Expand Down

0 comments on commit ea6d72d

Please sign in to comment.