linux/include/linux/platform_data/cros_ec_chardev.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * ChromeOS EC device interface.
 *
 * Copyright (C) 2014 Google, Inc.
 */

#ifndef _UAPI_LINUX_CROS_EC_DEV_H_
#define _UAPI_LINUX_CROS_EC_DEV_H_

#include <linux/bits.h>
#include <linux/ioctl.h>
#include <linux/types.h>

#include <linux/platform_data/cros_ec_commands.h>

#define CROS_EC_DEV_VERSION

/**
 * struct cros_ec_readmem - Struct used to read mapped memory.
 * @offset: Within EC_LPC_ADDR_MEMMAP region.
 * @bytes: Number of bytes to read. Zero means "read a string" (including '\0')
 *         At most only EC_MEMMAP_SIZE bytes can be read.
 * @buffer: Where to store the result. The ioctl returns the number of bytes
 *         read or negative on error.
 */
struct cros_ec_readmem {};

#define CROS_EC_DEV_IOC
#define CROS_EC_DEV_IOCXCMD
#define CROS_EC_DEV_IOCRDMEM
#define CROS_EC_DEV_IOCEVENTMASK

#endif /* _CROS_EC_DEV_H_ */