Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef SCSI_NETLINK_FC_H |
| 8 | #define SCSI_NETLINK_FC_H |
Christopher Ferris | 9584fa4 | 2019-12-09 15:36:13 -0800 | [diff] [blame] | 9 | #include <linux/types.h> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 10 | #include <scsi/scsi_netlink.h> |
| 11 | #define FC_NL_ASYNC_EVENT 0x0100 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 12 | #define FC_NL_MSGALIGN(len) (((len) + 7) & ~7) |
| 13 | struct fc_nl_event { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 14 | struct scsi_nl_hdr snlh; |
Christopher Ferris | 9584fa4 | 2019-12-09 15:36:13 -0800 | [diff] [blame] | 15 | __u64 seconds; |
| 16 | __u64 vendor_id; |
| 17 | __u16 host_no; |
| 18 | __u16 event_datalen; |
| 19 | __u32 event_num; |
| 20 | __u32 event_code; |
Christopher Ferris | 6cd53a5 | 2022-12-12 23:39:16 +0000 | [diff] [blame] | 21 | union { |
| 22 | __u32 event_data; |
| 23 | __DECLARE_FLEX_ARRAY(__u8, event_data_flex); |
| 24 | }; |
Christopher Ferris | 9584fa4 | 2019-12-09 15:36:13 -0800 | [diff] [blame] | 25 | } __attribute__((aligned(sizeof(__u64)))); |
Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 26 | #endif |