Path: blob/master/drivers/isdn/hardware/eicon/helpers.h
15115 views
1/*2*3Copyright (c) Eicon Networks, 2002.4*5This source file is supplied for the use with6Eicon Networks range of DIVA Server Adapters.7*8Eicon File Revision : 2.19*10This program is free software; you can redistribute it and/or modify11it under the terms of the GNU General Public License as published by12the Free Software Foundation; either version 2, or (at your option)13any later version.14*15This program is distributed in the hope that it will be useful,16but WITHOUT ANY WARRANTY OF ANY KIND WHATSOEVER INCLUDING ANY17implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.18See the GNU General Public License for more details.19*20You should have received a copy of the GNU General Public License21along with this program; if not, write to the Free Software22Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.23*24*/25#ifndef __DIVA_XDI_CARD_CONFIG_HELPERS_INC__26#define __DIVA_XDI_CARD_CONFIG_HELPERS_INC__27dword diva_get_protocol_file_features (byte* File,28int offset,29char *IdStringBuffer,30dword IdBufferSize);31void diva_configure_protocol (PISDN_ADAPTER IoAdapter);32/*33Low level file access system abstraction34*/35/* -------------------------------------------------------------------------36Access to single file37Return pointer to the image of the requested file,38write image length to 'FileLength'39------------------------------------------------------------------------- */40void *xdiLoadFile (char *FileName, dword *FileLength, unsigned long MaxLoadSize) ;41/* -------------------------------------------------------------------------42Dependent on the protocol settings does read return pointer43to the image of appropriate protocol file44------------------------------------------------------------------------- */45void *xdiLoadArchive (PISDN_ADAPTER IoAdapter, dword *FileLength, unsigned long MaxLoadSize) ;46/* --------------------------------------------------------------------------47Free all system resources accessed by xdiLoadFile and xdiLoadArchive48-------------------------------------------------------------------------- */49void xdiFreeFile (void* handle);50#endif515253