3 * Copyright 2018, Dirk Eibach, Guntermann & Drunck GmbH <dirk.eibach@gdsys.cc>
5 * SPDX-License-Identifier: GPL-2.0-or-later
8 #ifndef DPAUXMON_USER_H_
9 #define DPAUXMON_USER_H_
11 #include <linux/types.h>
14 * Generic Netlink Interface for DisplayPort AUX channel monitoring
18 * enum dpauxmon_cmd - supported dpauxmon netlink commands
20 * @__DPAUXMON_CMD_UNSPEC: unspecified command to catch errors
22 * @DPAUXMON_CMD_START: start monitoring on %DPAUXMON_ATTR_IFINDEX
23 * @DPAUXMON_CMD_STOP: stop monitoring on %DPAUXMON_ATTR_IFINDEX
24 * @DPAUXMON_CMD_DATA: captured data from %DPAUXMON_ATTR_IFINDEX
27 __DPAUXMON_CMD_UNSPEC
,
34 DPAUXMON_CMD_MAX
= __DPAUXMON_CMD_MAX
- 1,
38 * enum dpauxmon_attr - dpauxmon netlink attributes
40 * @__DPAUXMON_ATTR_UNSPEC: unspecified attribute to catch errors
42 * @DPAUXMON_ATTR_IFINDEX: index of dpauxmon unit to operate on
43 * @DPAUXMON_ATTR_DATA: dpauxmon data payload
44 * @DPAUXMON_ATTR_FROM_SOURCE: data payload is sent from source
45 * @DPAUXMON_ATTR_TIMESTAMP: data payload is sent from source
48 __DPAUXMON_ATTR_UNSPEC
,
49 DPAUXMON_ATTR_IFINDEX
, /* NLA_U32 */
50 DPAUXMON_ATTR_DATA
, /* NLA_BINARY */
51 DPAUXMON_ATTR_FROM_SOURCE
, /* NLA_FLAG */
52 DPAUXMON_ATTR_TIMESTAMP
, /* NLA_MSECS */
55 __DPAUXMON_ATTR_AFTER_LAST
,
56 DPAUXMON_ATTR_MAX
= __DPAUXMON_ATTR_AFTER_LAST
- 1