Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
53 lines
1.7 KiB
C
53 lines
1.7 KiB
C
/*
|
|
* Copyright (C) 2017 MediaTek Inc.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef __DEVFINO_H__
|
|
#define __DEVFINO_H__
|
|
|
|
/*****************************************************************************
|
|
* MODULE DEFINITION
|
|
*****************************************************************************/
|
|
#define MODULE_NAME "[devinfo]"
|
|
#define DEV_NAME "devmap"
|
|
#define MAJOR_DEV_NUM 196
|
|
#define DEVINFO_SEGCODE_INDEX 30
|
|
|
|
/*****************************************************************************
|
|
* IOCTL DEFINITION
|
|
*****************************************************************************/
|
|
#define DEV_IOC_MAGIC 'd'
|
|
#define READ_DEV_DATA _IOR(DEV_IOC_MAGIC, 1, unsigned int)
|
|
#define DEV_IOC_MAXNR (10)
|
|
|
|
/*****************************************************************************
|
|
* HRID DEFINITION
|
|
*****************************************************************************/
|
|
#define HRID_SIZE_MAGIC_NUM 0x56AB0000
|
|
#define HRID_SIZE_INDEX 10
|
|
#define HRID_DEFAULT_SIZE 2
|
|
#define HRID_MIN_ALLOWED_SIZE 2
|
|
#define HRID_MAX_ALLOWED_SIZE 8
|
|
|
|
#ifdef CONFIG_OF
|
|
/*device information data*/
|
|
struct devinfo_tag {
|
|
/* device information size */
|
|
u32 data_size;
|
|
/* device information (dynamically allocate in v2 driver) */
|
|
u32 data[0];
|
|
};
|
|
#endif
|
|
|
|
#endif /* end of __DEVFINO_H__ */
|
|
|