📄 zfscfg.h
字号:
/*
* File : zfscfg.h
* Description: This file contains the configuration information for ZiLOG File System
* Author :
* Created on : 30-APR-2004
*
* Copyright 2004 ZiLOG Inc. ALL RIGHTS RESERVED.
*
* This file contains unpublished confidential and proprietary information
* of ZiLOG, Inc.
* NO PART OF THIS WORK MAY BE DUPLICATED, STORED, PUBLISHED OR DISCLOSED
* IN ANY FORM WITHOUT THE PRIOR WRITTEN CONSENT OF ZiLOG, INC.
* This is not a license and no use of any kind of this work is authorized
* in the absence of a written license granted by ZiLOG, Inc. in ZiLOG's
* sole discretion
*/
#ifndef _ZFSCFG_H_
#define _ZFSCFG_H_
#include "zfstypes.h"
#include "zsysgen.h"
// maximum volume name len
#define ZFS_MAX_VOL_NAME_LEN ( 16 )
///////////////////////////////////////////////////////
///////////////////////////////////////////////////////
// Configuration structure for volume configuration for
// File System
///////////////////////////////////////////////////////
// driver related functions
typedef INT (*DRV_INIT)( void *paddr, UINT32 num_bytes ) ;
typedef INT32 (*DRV_READ)( void *paddr, void *pbuf, UINT num_bytes ) ;
typedef INT32 (*DRV_WRITE)( void *paddr, void *pbuf, UINT num_bytes ) ;
typedef INT (*DRV_ERASE)( void *paddr, UINT32 num_bytes ) ;
typedef INT (*DRV_CLOSE)( void ) ;
// user configurable structure
typedef struct {
INT8 vol_name[ ZFS_MAX_VOL_NAME_LEN + 1] ;
UINT8 vol_type ; // ZFS_VOL_RAM, ZFS_VOL_INTFLASH, ZFS_VOL_EXTFLASH
UINT8* vol_addr ; // starting address of volume.
UINT32 vol_size ; // in bytes
UINT vol_blks ; // number of blocks present in the volume. (for RAM it will be 1, for flash related to the erasable units
UINT vol_secs ; // number of sectors
// function pointers for all driver entries and other routines that require the different search algorithm
// function pointers for all devices
DRV_INIT pfn_drv_init ;
DRV_READ pfn_drv_read ;
DRV_WRITE pfn_drv_write ;
DRV_ERASE pfn_drv_erase ;
DRV_CLOSE pfn_drv_close ;
// function pointers for ZFS routines
} ZFS_CONFIG_t, *PZFS_CONFIG_t ;
extern ZFS_CONFIG_t g_zfs_cfg[ ] ;
///////////////////////////////////////////////////////
#endif //_ZFSCFG_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -