blob: 09b0decd78c01a34d46193df4d8a44619ef211fa [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001/*
2* All Rights Reserved
3*
4* MARVELL CONFIDENTIAL
5* Copyright 2012 Marvell International Ltd All Rights Reserved.
6* The source code contained or described herein and all documents related to
7* the source code ("Material") are owned by Marvell International Ltd or its
8* suppliers or licensors. Title to the Material remains with Marvell International Ltd
9* or its suppliers and licensors. The Material contains trade secrets and
10* proprietary and confidential information of Marvell or its suppliers and
11* licensors. The Material is protected by worldwide copyright and trade secret
12* laws and treaty provisions. No part of the Material may be used, copied,
13* reproduced, modified, published, uploaded, posted, transmitted, distributed,
14* or disclosed in any way without Marvell's prior express written permission.
15*
16* No license under any patent, copyright, trade secret or other intellectual
17* property right is granted to or conferred upon you by disclosure or delivery
18* of the Materials, either expressly, by implication, inducement, estoppel or
19* otherwise. Any license under such intellectual property rights must be
20* express and approved by Marvell in writing.
21*
22*/
23
24#ifndef __H_ACM_USTICA__
25#define __H_ACM_USTICA__
26
27#include "acm_ach.h"
28
29#define NUM_OF_REGS (sizeof(reg_cache)/sizeof(reg_cache[0]))
30#define USTICA_ID_REG 0
31
32typedef struct {
33 unsigned char reg_index;
34 unsigned char reg_default;
35 unsigned char reg_value;
36// Field of reg_prior represent when will this register be reset;
37// 0x00 --- with this value, the register will not be reset,
38// 0x01~0xff --- with these values, the register will be reset with ascending sequence;
39// If someone would like to modify the resetting sequences in the table,
40// only need to modify this field in reg_cache.
41 unsigned char reg_prior;
42} Ustica_RegisterCache;
43
44static Ustica_RegisterCache reg_cache[] = {
45 {0x48, 0x00, 0x00, 0x01}, {0x49, 0x00, 0x00, 0x01}, {0x4A, 0x00, 0x00, 0x01}, {0x4B, 0x00, 0x00, 0x01}, {0x4C, 0x00, 0x00, 0x01}
46};
47
48unsigned char Ustica_GetRegNumId(unsigned char reg_index);
49
50#endif