source: svn/newcon3bcm2_21bu/dst/dmw/src/System/dmw_nvram_priv.h

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 1006 bytes
Line 
1/*
2        dmw_nvram_priv.h
3
4        nvram specific private routines.
5
6        These are not part of public API..
7        Only for M/W internals.
8*/
9
10#ifndef __DMW_NVRAM_PRIV_H__
11#define __DMW_NVRAM_PRIV_H__
12
13
14typedef struct PartMapRange_t
15{
16        UINT32 addr;
17        UINT32 size;
18       
19} PartMapRange;
20
21
22#define DMW_NVM_ID_EEPROM 0
23#define DMW_NVM_ID_FLASH  1
24
25
26
27extern void   NvRamInit(void);
28extern UINT32 NvRamGetAvailableSize(int device);
29extern STATUS NvRamCheckValid(void);
30
31extern STATUS NvRamRead(UINT32 address, UINT32 size, UINT8 *buf);
32extern STATUS NvRamWrite(UINT32 address, UINT32 size, UINT8 *buf);
33extern STATUS NvRamSync(UINT32 addr, PartMapRange *pPartMapList);
34extern STATUS NvRamFormat(void);
35
36
37extern BOOL NvRamIsSyncEnd(void);
38extern void NvRamWaitForSyncEnd(void);
39extern void NvRamInvalidateCache(void);
40
41extern void NvRamRegisterDebugSymbol(void);
42
43void _dump_eeprom(int start, int size);
44void _dump_flash(UINT32 start, UINT32 size);
45
46
47
48
49#endif /* __DMW_NVRAM_PRIV_H__*/
50
Note: See TracBrowser for help on using the repository browser.