hc
2024-08-19 a51341d8c7882adfad4f167bc7c3ca616908b53d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* 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