SCLLMGR.H
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:3k
- /****************************************************************************************
- * Copyright (c) 2002 ZORAN Corporation, All Rights Reserved
- * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
- *
- * File: $Workfile: SCLLMGR.H $
- *
- * Description:
- * ============
- *
- *
- * Log:
- * ====
- * $Revision: 5 $
- * Last Modified by $Author: Eyalr $ at $Modtime: 11/20/03 14:26 $
- ****************************************************************************************
- * Updates:
- ****************************************************************************************
- * $Log: /I76/I76_Common/I76_Reference/Playcore/ScPad/SCLLMGR.H $
- *
- * 5 11/20/03 18:51 Eyalr
- *
- * 4 11/18/03 11:19a Aidenl
- * DVD Audio Testing Memory Mapping, change SC_BASE_ADDR
- *
- * 3 03-01-09 4:46 Leslie
- * Code cleanup
- *
- * 7 23/05/02 14:09 Ettim
- * Adding support for an absolute 32 bit address on the scratch pad.
- *
- * 6 4/24/02 5:33a Dingming
- * 32K/24K scratchpad support
- *
- * 5 23/04/02 9:36 Nirm
- * - Added dependency in "Config.h".
- *
- * 4 3/03/02 15:01 Nirm
- * - Code cleanup;
- * - Enhanced efficiency.
- *
- * 3 1/18/02 5:58a Tomasp
- * Fixed warning (bug) SC_SDRAM_SZ const overflow
- *
- * 2 9/01/02 16:53 Nirm
- * Corrected Include-Paths.
- ****************************************************************************************/
- #include "Config.h" // Global Configuration - do not remove!
- #ifndef __SCMLLGR_H_
- #define __SCMLLGR_H_
- /////////////////////////////////////////////////////////////////////////////
- // Constants
- // Absolute Scratch Pad Base Address (In the SDRAM), Addressing by WORD
- // Size of the SDRAM allocated for Scratch Pad (DWORD units)
- #ifdef NEW_2X16M_MAPPING
- #define SC_SDRAM_SZ 0x2000L // 32KB
- #else
- #define SC_SDRAM_SZ 0xDA00L // 218KB
- #endif
- #ifdef DVD_VR_SUPPORT
- #define SC_CLUSTERS_CNT 512//256 // Must be a value of 2^n
- #else
- #define SC_CLUSTERS_CNT 256 // Must be a value of 2^n
- #endif
- #define CLUSTERS_POOL_REG_SZ(iClustersCnt) ((iClustersCnt + 7) / 8)
- /////////////////////////////////////////////////////////////////////////////
- // Public Services
- BOOL sc_ll_Init(UINT16 i_uInitValue);
- UINT16 sc_ll_Read(WORD i_hAddress, UINT16 i_uDWORDsCnt, DWORD *o_pDestBuff);
- UINT16 sc_ll_Write(WORD i_hAddress, UINT16 i_uDWORDsCnt, const DWORD *i_pSrcBuff);
- UINT16 sc_ll_Read32(UINT32 i_hAddress, UINT16 i_uDWORDsCnt, DWORD *o_pDestBuff);
- UINT16 sc_ll_Write32(UINT32 i_hAddress, UINT16 i_uDWORDsCnt, const DWORD *i_pSrcBuff);
- #ifdef _DEBUG
- extern WORD g_wTrackAddr;
- #endif //_DEBUG
- extern CONST DWORD dwSC_BASE_ADDR;
- extern CONST WORD wSC_SDRAM_SZ;
- extern CONST WORD wSC_CLUSTERS_CNT;
- //extern BYTE g_aMemClustersRegistry[];
- extern CONST BYTE bSizeof_MemClustersRegistry;
- #endif //__SCMLLGR_H_