summaryrefslogtreecommitdiff
path: root/include/linux/device-id/mei_cl.h
blob: aeeb95da4b292ba8be4553f807b7b08a80449cb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef LINUX_DEVICE_ID_MEI_CL_H
#define LINUX_DEVICE_ID_MEI_CL_H

#ifdef __KERNEL__
#include <linux/types.h>
#include <linux/mei_uuid.h>
typedef unsigned long kernel_ulong_t;
#endif

#define MEI_CL_MODULE_PREFIX "mei:"
#define MEI_CL_NAME_SIZE 32
#define MEI_CL_VERSION_ANY 0xff

/**
 * struct mei_cl_device_id - MEI client device identifier
 * @name: helper name
 * @uuid: client uuid
 * @version: client protocol version
 * @driver_info: information used by the driver.
 *
 * identifies mei client device by uuid and name
 */
struct mei_cl_device_id {
	char name[MEI_CL_NAME_SIZE];
	uuid_le uuid;
	__u8 version;
	kernel_ulong_t driver_info;
};

#endif /* ifndef LINUX_DEVICE_ID_MEI_CL_H */