.. | .. |
---|
4 | 4 | * Used for the posting of outbound SCSI transport events |
---|
5 | 5 | * |
---|
6 | 6 | * Copyright (C) 2006 James Smart, Emulex Corporation |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or modify |
---|
9 | | - * it under the terms of the GNU General Public License as published by |
---|
10 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
11 | | - * (at your option) any later version. |
---|
12 | | - * |
---|
13 | | - * This program is distributed in the hope that it will be useful, |
---|
14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | | - * GNU General Public License for more details. |
---|
17 | | - * |
---|
18 | | - * You should have received a copy of the GNU General Public License |
---|
19 | | - * along with this program; if not, write to the Free Software |
---|
20 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
21 | | - * |
---|
22 | 7 | */ |
---|
23 | 8 | #ifndef SCSI_NETLINK_H |
---|
24 | 9 | #define SCSI_NETLINK_H |
---|
.. | .. |
---|
41 | 26 | |
---|
42 | 27 | /* SCSI_TRANSPORT_MSG event message header */ |
---|
43 | 28 | struct scsi_nl_hdr { |
---|
44 | | - uint8_t version; |
---|
45 | | - uint8_t transport; |
---|
46 | | - uint16_t magic; |
---|
47 | | - uint16_t msgtype; |
---|
48 | | - uint16_t msglen; |
---|
49 | | -} __attribute__((aligned(sizeof(uint64_t)))); |
---|
| 29 | + __u8 version; |
---|
| 30 | + __u8 transport; |
---|
| 31 | + __u16 magic; |
---|
| 32 | + __u16 msgtype; |
---|
| 33 | + __u16 msglen; |
---|
| 34 | +} __attribute__((aligned(sizeof(__u64)))); |
---|
50 | 35 | |
---|
51 | 36 | /* scsi_nl_hdr->version value */ |
---|
52 | 37 | #define SCSI_NL_VERSION 1 |
---|
.. | .. |
---|
90 | 75 | */ |
---|
91 | 76 | struct scsi_nl_host_vendor_msg { |
---|
92 | 77 | struct scsi_nl_hdr snlh; /* must be 1st element ! */ |
---|
93 | | - uint64_t vendor_id; |
---|
94 | | - uint16_t host_no; |
---|
95 | | - uint16_t vmsg_datalen; |
---|
96 | | -} __attribute__((aligned(sizeof(uint64_t)))); |
---|
| 78 | + __u64 vendor_id; |
---|
| 79 | + __u16 host_no; |
---|
| 80 | + __u16 vmsg_datalen; |
---|
| 81 | +} __attribute__((aligned(sizeof(__u64)))); |
---|
97 | 82 | |
---|
98 | 83 | |
---|
99 | 84 | /* |
---|