Files
linux-rockchip/include/uapi/linux/spi_nor_misc.h
Jon Lin b7cf98650b mtd: spi-nor: core: Support misc devices
Calling ioctl PCIE_DMA_GET_FLASH_INFO to get spi nor id.

Change-Id: I1ecfdd527f18c0c323fba9673546c167032d1726
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2022-11-17 12:06:59 +08:00

21 lines
411 B
C

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
* Copyright (c) 2022 Rockchip Electronics Co., Ltd.
*/
#ifndef _UAPI__SPI_NOR_MISC_H__
#define _UAPI__SPI_NOR_MISC_H__
#include <linux/types.h>
#define SPI_NOR_MAX_ID_LEN 6
struct nor_flash_user_info {
__u8 id[SPI_NOR_MAX_ID_LEN];
};
#define NOR_BASE 'P'
#define NOR_GET_FLASH_INFO _IOR(NOR_BASE, 0, struct nor_flash_user_info)
#endif