xref: /OK3568_Linux_fs/kernel/include/uapi/linux/spi_nor_misc.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 /*
3  * Copyright (c) 2022 Rockchip Electronics Co., Ltd.
4  */
5 
6 #ifndef _UAPI__SPI_NOR_MISC_H__
7 #define _UAPI__SPI_NOR_MISC_H__
8 
9 #include <linux/types.h>
10 
11 #define SPI_NOR_MAX_ID_LEN	6
12 
13 struct nor_flash_user_info {
14 	__u8	id[SPI_NOR_MAX_ID_LEN];
15 };
16 
17 #define NOR_BASE	'P'
18 #define NOR_GET_FLASH_INFO		_IOR(NOR_BASE, 0, struct nor_flash_user_info)
19 
20 #endif
21