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

📄 i2api-vtrak15300.h

📁 RAID卡的测试程序
💻 H
字号:
/*******************************************************************************
 * Filename    : i2api-vtrak15300.h
 * Description : I2 API plug-in for VTrak15300 sepcific header file
 *               It defines the data structures and APIs specific to VTrak15300
 *               plug-in.
 * Created on  : 02/18/2004
 * CVS Version : $Id: i2api-vtrak15300.h,v 1.1 2004/03/24 03:24:12 weny Exp $
 *
 * Copyright (C) 2004-2004 Promise Technology Inc.
 * All Rights Reserved
 ******************************************************************************/

#ifndef I2_API_VTRAK15300_H
#define I2_API_VTRAK15300_H

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

/* --- internal header files ------------------------------------------------ */
#include "pibasic.h"
#include "errcode.h"
#include "i2types.h"
#include "autoconfig.h"

/* --- constants & data structures ------------------------------------------ */

typedef struct
{
    u32 ivsp_u32BufferSize;
    u8 ivsp_u8MinLines;
    u8 ivsp_u8MaxLines;
    u8 ivsp_u8padding1[10];
#ifdef EMBEDDED
    char * ivsp_pstrMsgQueuePath; 
#ifndef PLATFORM_64BIT
    void * ivsp_pPadding2;
#endif /* ifdef 64BIT */
    u32 ivsp_u32MsgQueueChannel;
    u32 ivsp_u32NotificationSignal;
#else
    u32 ivsp_u32MaxSubsystems;
    u32 ivsp_u32MaxPathPerSubsys;
    u8 ivsp_u8Padding4[8];
#endif /* ifdef EMBEDDED */
    u8 ivsp_u8Reserved1[96];
} i2plugin_vtrak15300_specific_param_t;

/*
 * the plugin specific parameter should be passed in 
 * i2api_param_t.ip_u8PluginParam during i2_initialize with 
 * i2api_param_t.ip_bPluginParamValid set to TRUE.
 * if i2api_param_t.ip_bPluginParamValid is set to FALSE, the default plug-in
 * specific parameters will be used.
 *
 * ivsp_u8MinLines - min number of threads that can talk thru the plugin 
 *      simutaneously. The default is 1.
 * ivsp_u8MaxLines - max number of threads that can talk thru the plugin 
 *      simutaneously. The default is 1.
 * ivsp_u32BufferSize - the buffer size in number of bytes. It specifies the
 *      max data transfer size. The default is MAX_DATA_TRANSFER_SIZE.
 *
 * the following 3 parameters are specific to embedded
 *
 * ivsp_pstrMsgQueuePath - the message queue path, used in I2 IPC. The default
 *      is DEFAULT_I2IPC_MSGQ_PATH
 * ivsp_u32MsgQueueChannel - the message queue channel, used in I2 IPC. The
 *      default is DEFAULT_I2IPC_MSGQ_CHANNEL
 * ivsp_u32NotificationSignal - the event notification signal, used in I2 IPC.
 *      The default is DEFAULT_I2IPC_NOTIFY_SIGNAL
 *
 * the following 2 parameters are specific to non-embedded
 * 
 * ivsp_u32MaxSubsystems - the max number of subsystems the plug-in should
 *      discover. The default is 16.
 * ivsp_u32MaxPathPerSubsys - the max number of paths that should be discovered
 *      for one subsystem. The default is 4.
 */

/* --- functional routines ------------------------------------------------- */

u32 i2_arrayConfigParam(device_id_t di, session_id_t si, 
    array_config_param_t * pacp);
u32 i2_configArray(device_id_t di, session_id_t si, 
    u8 * pu8Buffer);

#ifdef EMBEDDED
/* TBD - Web server/CIMOM/Email Server/SSL settings */
u32 i2_getAllDaemonsInfo(device_id_t di, session_id_t si,
        req_swmgt_daemon_info_t *pData);
u32 i2_setDaemonStartupType(device_id_t di, session_id_t si,
        u8 * pDaemonName, u8 daemonStartupType);
u32 i2_startStopDaemon(device_id_t di, session_id_t si,
        u8 * pDaemonName, u8 daemonStatus);

u32 i2_testEmail(device_id_t di, session_id_t si,
    req_param_user_name_t * pData, u32 u32DataSize);

u32 i2_export(device_id_t di, session_id_t si,
    req_export_t * pData);
u32 i2_importTransfer(device_id_t di, session_id_t si,
    req_import_param_t * pParam);
u32 i2_importGetInfo(device_id_t di, session_id_t si,
    req_import_data_t * pData);
u32 i2_importAbort(device_id_t di, session_id_t si);
u32 i2_importApply(device_id_t di, session_id_t si);

u32 i2_subscribeEventNotification(device_id_t di, 
    req_param_event_subscribe_t * pParam);
u32 i2_unsubscribeEventNotification(device_id_t di);
u32 i2_waitForSubscribedEvent(device_id_t di, u32 u32Timeout);
#endif

#endif /* I2_API_VTRAK15300_H */

/******************************************************************************
 * Change Log
 *
 * $Log: i2api-vtrak15300.h,v $
 * Revision 1.1  2004/03/24 03:24:12  weny
 * I2 API porting
 *
 *
 *****************************************************************************/

⌨️ 快捷键说明

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