hc
2023-02-18 84d1d1bed0120e0921c876885ca9006fb9ddf42e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * Copyright (c) 2016, Fuzhou Rockchip Electronics Co., Ltd
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 */
 
#ifndef __PLAT_RK_VENDOR_STORAGE_H
#define __PLAT_RK_VENDOR_STORAGE_H
 
#define RSV_ID                0
#define SN_ID                1
#define WIFI_MAC_ID            2
#define LAN_MAC_ID            3
#define BT_MAC_ID            4
#define HDCP_14_HDMI_ID            5
#define HDCP_14_DP_ID            6
#define HDCP_2X_ID            7
#define DRM_KEY_ID            8
#define PLAYREADY_CERT_ID        9
#define ATTENTION_KEY_ID        10
#define PLAYREADY_ROOT_KEY_0_ID        11
#define PLAYREADY_ROOT_KEY_1_ID        12
#define HDCP_14_HDMIRX_ID        13
#define SENSOR_CALIBRATION_ID        14
#define IMEI_ID                15
#define LAN_RGMII_DL_ID            16
#define EINK_VCOM_ID            17
 
int rk_vendor_read(u32 id, void *pbuf, u32 size);
int rk_vendor_write(u32 id, void *pbuf, u32 size);
int rk_vendor_register(void *read, void *write);
bool is_rk_vendor_ready(void);
 
#endif