blob: dbc3c99c910e36c9ab0d9ffb656055df0da623bf [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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
Tao Baod7db5942015-01-28 10:07:51 -080025#define SCSI_NL_GRP_FC_EVENTS (1 << 2)
Ben Cheng655a7c02013-10-16 16:09:24 -070026#define SCSI_NL_GRP_CNT 3
27struct scsi_nl_hdr {
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 uint8_t version;
30 uint8_t transport;
31 uint16_t magic;
32 uint16_t msgtype;
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 uint16_t msglen;
Ben Cheng655a7c02013-10-16 16:09:24 -070035} __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 {
Tao Baod7db5942015-01-28 10:07:51 -080046 struct scsi_nl_hdr snlh;
47 uint64_t vendor_id;
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 uint16_t host_no;
50 uint16_t vmsg_datalen;
Ben Cheng655a7c02013-10-16 16:09:24 -070051} __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 */
Tao Baod7db5942015-01-28 10:07:51 -080054#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; }
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#endif