compat.h

来自「mstar 776 开发的车载dvd」· C头文件 代码 · 共 63 行

H
63
字号
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2006-2007 MStar Semiconductor, Inc.
// All rights reserved.
//
// Unless otherwise stipulated in writing, any and all information contained
// herein regardless in any format shall remain the sole proprietary of
// MStar Semiconductor Inc. and be kept in strict confidence
// (¨MStar Confidential Information〃) by the recipient.
// Any unauthorized act including without limitation unauthorized disclosure,
// copying, use, reproduction, sale, distribution, modification, disassembling,
// reverse engineering and compiling of the contents of MStar Confidential
// Information is unlawful and strictly prohibited. MStar hereby reserves the
// rights to any and all damages, losses, costs and expenses resulting therefrom.
//
////////////////////////////////////////////////////////////////////////////////

#ifndef _CHIP_COMPAT_H_
#define _CHIP_COMPAT_H_

// For source level compatibility

#include "datatype.h"
//#include "bond.h"
#include "board.h"  // kevin 071023_3
#include "hwreg.h"

#define DEVICE_ID_MAJOR             XBYTE[REG_DEVICE_ID_MAJOR]
#define DEVICE_ID_MINOR             XBYTE[REG_DEVICE_ID_MINOR]
#define CHIP_VERSION                XBYTE[REG_CHIP_VERSION]
#define CHIP_REVISION               XBYTE[REG_CHIP_REVISION]

//----------------------------------------------------------------------------
// DMA CRC16
//----------------------------------------------------------------------------
#define CHIP_HAS_DMA_CRC16      0

//----------------------------------------------------------------------------
// Scalar line buffer size
//----------------------------------------------------------------------------
    #define SC_LINE_BUFFER_SIZE 1440UL

//----------------------------------------------------------------------------
// Scalar DNR write limit type
//----------------------------------------------------------------------------

#define SC_W_LIMIT_NONE         0
#define SC_W_LIMIT_UNIT_16BYTE  1   // unit: 16byte
#define SC_W_LIMIT_UNIT_64BYTE  2   // unit: 64byte and one unit overrun

#define SC_W_LIMIT_TYPE     SC_W_LIMIT_UNIT_64BYTE

//----------------------------------------------------------------------------
// Scalar VOP gamma table (LUT RAM) bits
//----------------------------------------------------------------------------

#define SC_GAMMA_LUT_10BIT      0
#define SC_GAMMA_LUT_12BIT      1

#define SC_GAMMA_LUT_TYPE   SC_GAMMA_LUT_10BIT

#endif /* _CHIP_COMPAT_H_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?