⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 autoconfig.h

📁 RAID卡的测试程序
💻 H
字号:
/*******************************************************************************
 * Filename    : autoconfig.h
 * Description : configuration automation header file
 * Created on  : 07/21/03
 * CVS Version : $Id: autoconfig.h,v 1.3 2003/09/12 16:33:24 zhengj Exp $
 *
 * (C) Copyright Promise Technology Inc., 2003
 * All Rights Reserved
 ******************************************************************************/

#ifndef __PI_AUTOCONFIG_H__
#define __PI_AUTOCONFIG_H__

/* --- standard C lib header files ----------------------------------------- */

/* --- internal header files ----------------------------------------------- */
#include "pibasic.h"
#include "reqdata.h"

/* --- constant definitions ------------------------------------------------ */

#define APP_FILE_SERVER         1
#define APP_VIDEO_STREAM        2
#define APP_TRANSACTION_DATA    3
#define APP_TRANSACTION_LOG     4
#define APP_OTHER               5

#define INVALID_LOGDRV_NUM      0xFFFF

/* --- data structures ----------------------------------------------------- */

typedef struct pd_list
{
    u16 pl_u16NumFreePD;
    u32 pl_u32PdIdList[MAX_PHYSICAL_DRIVES];
    u64 pl_u64PdSizeList[MAX_PHYSICAL_DRIVES];
} pd_list_t;

typedef struct config_data
{
    req_param_spare_add_t cd_rpsa;
    u32 cd_u32NumOfArrays;
    req_param_array_add_t cd_rpaa[1];
} config_data_t;

typedef struct array_config_param
{
    u16 acp_u16NumFreePD;
    u16 acp_u16NumExistDA;
    u16 acp_u16NumExistLD;
    u32 acp_u32PdIdList[MAX_PHYSICAL_DRIVES];
    u64 acp_u64PdSizeList[MAX_PHYSICAL_DRIVES];
} array_config_param_t;

typedef struct array_auto_param
{
    u8 aap_u8Action;
    boolean_t aap_bRedundancy;
    boolean_t aap_bPerformance;
    boolean_t aap_bCapacity;
    boolean_t aap_bSpare;
    boolean_t aap_bReserved[1];
    u16 aap_u16Application;
    u16 aap_u16NumConfigLD;
} array_auto_param_t;

/* --- function declarations ---------------------------------------------- */

/******************************************************************************
 * Function Name: setDefaultParamArrayAutomation
 * Description: set the default parameters for array configuration automation
 *
 * Parameters:
 * 	[in] paap, pointer to array_auto_param_t
 * Return: NONE
 * Remarks: NONE
 * ***************************************************************************/
void setDefaultParamArrayAutomation(array_auto_param_t * paap);
/******************************************************************************
 * Function Name: expr_configArray
 * Description: array configuration automation: express option
 *
 * Parameters:
 * 	[in] pacp, pointer to array_config_param_t
 * 	[in] paap, pointer to array_auto_param_t
 * 	[in] pDataBuf, pointer to software buffer
 * 	[in] u32BufLen, software buffer length
 * Return: Error Code
 * Remarks: The caller should provide pDataBuf with sufficient length
 * ***************************************************************************/
u32 expr_configArray(array_config_param_t * pacp, 
		     array_auto_param_t * paap,
                     u8 * pDataBuf,
                     u32 u32BufLen);
/******************************************************************************
 * Function Name: auto_configArray
 * Description: array configuration automation: automatic option
 *
 * Parameters:
 * 	[in] pacp, pointer to array_config_param_t
 * 	[in] pDataBuf, pointer to software buffer
 * 	[in] u32BufLen, software buffer length
 * Return: Error Code
 * Remarks: The caller should provide pDataBuf with sufficient length
 * ***************************************************************************/
u32 auto_configArray(array_config_param_t * pacp, 
                     u8 * pDataBuf,
                     u32 u32BufLen);

#endif
/*******************************************************************************
 * Change Log
 *
 * $Log: autoconfig.h,v $
 * Revision 1.3  2003/09/12 16:33:24  zhengj
 * added data structure for config data buffer
 *
 * Revision 1.2  2003/08/08 22:41:41  zhengj
 * added support for array setting and info and others ..
 *
 * Revision 1.1  2003/07/31 18:32:22  zhengj
 * initial revision for autoconfig.h
 *
 ******************************************************************************/

⌨️ 快捷键说明

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