diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
commit | 718c552901d703c502ccbefdfc3c9028d608b947 (patch) | |
tree | 46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /contrib/libs/linux-headers/linux/stm.h | |
parent | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff) | |
download | ydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/linux-headers/linux/stm.h')
-rw-r--r-- | contrib/libs/linux-headers/linux/stm.h | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/contrib/libs/linux-headers/linux/stm.h b/contrib/libs/linux-headers/linux/stm.h index 8daeae4131..950dbc037d 100644 --- a/contrib/libs/linux-headers/linux/stm.h +++ b/contrib/libs/linux-headers/linux/stm.h @@ -1,46 +1,46 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * System Trace Module (STM) userspace interfaces - * Copyright (c) 2014, Intel Corporation. - * - * STM class implements generic infrastructure for System Trace Module devices - * as defined in MIPI STPv2 specification. - */ - -#ifndef _LINUX_STM_H -#define _LINUX_STM_H - -#include <linux/types.h> - -/* Maximum allowed master and channel values */ -#define STP_MASTER_MAX 0xffff -#define STP_CHANNEL_MAX 0xffff - -/** - * struct stp_policy_id - identification for the STP policy - * @size: size of the structure including real id[] length - * @master: assigned master - * @channel: first assigned channel - * @width: number of requested channels - * @id: identification string - * - * User must calculate the total size of the structure and put it into - * @size field, fill out the @id and desired @width. In return, kernel - * fills out @master, @channel and @width. - */ -struct stp_policy_id { - __u32 size; - __u16 master; - __u16 channel; - __u16 width; - /* padding */ - __u16 __reserved_0; - __u32 __reserved_1; - char id[0]; -}; - -#define STP_POLICY_ID_SET _IOWR('%', 0, struct stp_policy_id) -#define STP_POLICY_ID_GET _IOR('%', 1, struct stp_policy_id) -#define STP_SET_OPTIONS _IOW('%', 2, __u64) - -#endif /* _LINUX_STM_H */ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +/* + * System Trace Module (STM) userspace interfaces + * Copyright (c) 2014, Intel Corporation. + * + * STM class implements generic infrastructure for System Trace Module devices + * as defined in MIPI STPv2 specification. + */ + +#ifndef _LINUX_STM_H +#define _LINUX_STM_H + +#include <linux/types.h> + +/* Maximum allowed master and channel values */ +#define STP_MASTER_MAX 0xffff +#define STP_CHANNEL_MAX 0xffff + +/** + * struct stp_policy_id - identification for the STP policy + * @size: size of the structure including real id[] length + * @master: assigned master + * @channel: first assigned channel + * @width: number of requested channels + * @id: identification string + * + * User must calculate the total size of the structure and put it into + * @size field, fill out the @id and desired @width. In return, kernel + * fills out @master, @channel and @width. + */ +struct stp_policy_id { + __u32 size; + __u16 master; + __u16 channel; + __u16 width; + /* padding */ + __u16 __reserved_0; + __u32 __reserved_1; + char id[0]; +}; + +#define STP_POLICY_ID_SET _IOWR('%', 0, struct stp_policy_id) +#define STP_POLICY_ID_GET _IOR('%', 1, struct stp_policy_id) +#define STP_SET_OPTIONS _IOW('%', 2, __u64) + +#endif /* _LINUX_STM_H */ |