blob: ab1e8db95e36f209dab2564edd23908d3352e138 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Christopher Ferris525ce912017-07-26 13:12:53 -07007#ifndef _UAPI_LINUX_ASPEED_LPC_CTRL_H
8#define _UAPI_LINUX_ASPEED_LPC_CTRL_H
Christopher Ferris82d75042015-01-26 10:57:07 -08009#include <linux/ioctl.h>
10#include <linux/types.h>
Christopher Ferris525ce912017-07-26 13:12:53 -070011#define ASPEED_LPC_CTRL_WINDOW_FLASH 1
12#define ASPEED_LPC_CTRL_WINDOW_MEMORY 2
13struct aspeed_lpc_ctrl_mapping {
14 __u8 window_type;
15 __u8 window_id;
16 __u16 flags;
17 __u32 addr;
18 __u32 offset;
19 __u32 size;
Christopher Ferris82d75042015-01-26 10:57:07 -080020};
Christopher Ferris525ce912017-07-26 13:12:53 -070021#define __ASPEED_LPC_CTRL_IOCTL_MAGIC 0xb2
22#define ASPEED_LPC_CTRL_IOCTL_GET_SIZE _IOWR(__ASPEED_LPC_CTRL_IOCTL_MAGIC, 0x00, struct aspeed_lpc_ctrl_mapping)
23#define ASPEED_LPC_CTRL_IOCTL_MAP _IOW(__ASPEED_LPC_CTRL_IOCTL_MAGIC, 0x01, struct aspeed_lpc_ctrl_mapping)
Christopher Ferris82d75042015-01-26 10:57:07 -080024#endif