11da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 21da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/* 31da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * 4475be4d85a274d0961593db41cf85689db1d583cJoe Perches Copyright (c) Eicon Networks, 2002. 51da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * 6475be4d85a274d0961593db41cf85689db1d583cJoe Perches This source file is supplied for the use with 7475be4d85a274d0961593db41cf85689db1d583cJoe Perches Eicon Networks range of DIVA Server Adapters. 81da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * 9475be4d85a274d0961593db41cf85689db1d583cJoe Perches Eicon File Revision : 2.1 101da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * 11475be4d85a274d0961593db41cf85689db1d583cJoe Perches This program is free software; you can redistribute it and/or modify 12475be4d85a274d0961593db41cf85689db1d583cJoe Perches it under the terms of the GNU General Public License as published by 13475be4d85a274d0961593db41cf85689db1d583cJoe Perches the Free Software Foundation; either version 2, or (at your option) 14475be4d85a274d0961593db41cf85689db1d583cJoe Perches any later version. 151da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * 16475be4d85a274d0961593db41cf85689db1d583cJoe Perches This program is distributed in the hope that it will be useful, 17475be4d85a274d0961593db41cf85689db1d583cJoe Perches but WITHOUT ANY WARRANTY OF ANY KIND WHATSOEVER INCLUDING ANY 18475be4d85a274d0961593db41cf85689db1d583cJoe Perches implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 19475be4d85a274d0961593db41cf85689db1d583cJoe Perches See the GNU General Public License for more details. 201da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * 21475be4d85a274d0961593db41cf85689db1d583cJoe Perches You should have received a copy of the GNU General Public License 22475be4d85a274d0961593db41cf85689db1d583cJoe Perches along with this program; if not, write to the Free Software 23475be4d85a274d0961593db41cf85689db1d583cJoe Perches Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 241da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * 251da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */ 261da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifndef __DIVA_XDI_CARD_CONFIG_HELPERS_INC__ 271da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define __DIVA_XDI_CARD_CONFIG_HELPERS_INC__ 28475be4d85a274d0961593db41cf85689db1d583cJoe Perchesdword diva_get_protocol_file_features(byte *File, 29475be4d85a274d0961593db41cf85689db1d583cJoe Perches int offset, 30475be4d85a274d0961593db41cf85689db1d583cJoe Perches char *IdStringBuffer, 31475be4d85a274d0961593db41cf85689db1d583cJoe Perches dword IdBufferSize); 32475be4d85a274d0961593db41cf85689db1d583cJoe Perchesvoid diva_configure_protocol(PISDN_ADAPTER IoAdapter); 331da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/* 34475be4d85a274d0961593db41cf85689db1d583cJoe Perches Low level file access system abstraction 35475be4d85a274d0961593db41cf85689db1d583cJoe Perches*/ 361da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/* ------------------------------------------------------------------------- 37475be4d85a274d0961593db41cf85689db1d583cJoe Perches Access to single file 38475be4d85a274d0961593db41cf85689db1d583cJoe Perches Return pointer to the image of the requested file, 39475be4d85a274d0961593db41cf85689db1d583cJoe Perches write image length to 'FileLength' 40475be4d85a274d0961593db41cf85689db1d583cJoe Perches ------------------------------------------------------------------------- */ 41475be4d85a274d0961593db41cf85689db1d583cJoe Perchesvoid *xdiLoadFile(char *FileName, dword *FileLength, unsigned long MaxLoadSize); 421da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/* ------------------------------------------------------------------------- 43475be4d85a274d0961593db41cf85689db1d583cJoe Perches Dependent on the protocol settings does read return pointer 44475be4d85a274d0961593db41cf85689db1d583cJoe Perches to the image of appropriate protocol file 45475be4d85a274d0961593db41cf85689db1d583cJoe Perches ------------------------------------------------------------------------- */ 46475be4d85a274d0961593db41cf85689db1d583cJoe Perchesvoid *xdiLoadArchive(PISDN_ADAPTER IoAdapter, dword *FileLength, unsigned long MaxLoadSize); 471da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/* -------------------------------------------------------------------------- 48475be4d85a274d0961593db41cf85689db1d583cJoe Perches Free all system resources accessed by xdiLoadFile and xdiLoadArchive 49475be4d85a274d0961593db41cf85689db1d583cJoe Perches -------------------------------------------------------------------------- */ 50475be4d85a274d0961593db41cf85689db1d583cJoe Perchesvoid xdiFreeFile(void *handle); 511da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif 52