1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef SCSI_NETLINK_H
20#define SCSI_NETLINK_H
21#include <linux/netlink.h>
22#include <linux/types.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define SCSI_TRANSPORT_MSG NLMSG_MIN_TYPE + 1
25#define SCSI_NL_GRP_FC_EVENTS (1 << 2)
26#define SCSI_NL_GRP_CNT 3
27struct scsi_nl_hdr {
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29  uint8_t version;
30  uint8_t transport;
31  uint16_t magic;
32  uint16_t msgtype;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34  uint16_t msglen;
35} __attribute__((aligned(sizeof(uint64_t))));
36#define SCSI_NL_VERSION 1
37#define SCSI_NL_MAGIC 0xA1B2
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define SCSI_NL_TRANSPORT 0
40#define SCSI_NL_TRANSPORT_FC 1
41#define SCSI_NL_MAX_TRANSPORTS 2
42#define SCSI_NL_SHOST_VENDOR 0x0001
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define SCSI_NL_MSGALIGN(len) (((len) + 7) & ~7)
45struct scsi_nl_host_vendor_msg {
46  struct scsi_nl_hdr snlh;
47  uint64_t vendor_id;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49  uint16_t host_no;
50  uint16_t vmsg_datalen;
51} __attribute__((aligned(sizeof(uint64_t))));
52#define SCSI_NL_VID_TYPE_SHIFT 56
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define SCSI_NL_VID_TYPE_MASK ((__u64) 0xFF << SCSI_NL_VID_TYPE_SHIFT)
55#define SCSI_NL_VID_TYPE_PCI ((__u64) 0x01 << SCSI_NL_VID_TYPE_SHIFT)
56#define SCSI_NL_VID_ID_MASK (~SCSI_NL_VID_TYPE_MASK)
57#define INIT_SCSI_NL_HDR(hdr,t,mtype,mlen) { (hdr)->version = SCSI_NL_VERSION; (hdr)->transport = t; (hdr)->magic = SCSI_NL_MAGIC; (hdr)->msgtype = mtype; (hdr)->msglen = mlen; }
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#endif
60