/*
 *            Copyright (c) 1998-2000 by NETsilicon Inc.
 *
 *  This software is copyrighted by and is the sole property of 
 *  NETsilicon.  All rights, title, ownership, or other interests
 *  in the software remain the property of NETsilicon.  This
 *  software may only be used in accordance with the corresponding
 *  license agreement.  Any unauthorized use, duplication, transmission,  
 *  distribution, or disclosure of this software is expressly forbidden.
 *
 *  This Copyright notice may not be removed or modified without prior
 *  written consent of NETsilicon.
 *
 *  NETsilicon, reserves the right to modify this software
 *  without notice.
 *
 *  NETsilicon
 *  411 Waverley Oaks Road                  USA 781.647.1234
 *  Suite 227                               http://www.netsilicon.com
 *  Waltham, MA 02452                       AmericaSales@netsilicon.com
 *
 *************************************************************************
 *
 *     Module Name: serlDev.h
 *         Version: 1.00
 *   Original Date: 09/20/99	
 *          Author: Charles Gordon
 *        Language: Ansi C
 * Compile Options: 
 * Compile defines: 
 *       Libraries: 
 *    Link Options: 
 *
 *    Entry Points: 
 *
 * Description.
 * =======================================================================
 * This header file contains declarations for the serial device.
 *                                                                        
 *                                                                        
 * Edit Date/Ver   Edit Description
 * ==============  ===================================================
 *
 *
 */

#ifndef serlDev_h

#define serlDev_h
#ifdef __cplusplus
extern "C"
{
#endif
    
#define   COM1             "/com/0"
#define   COM2             "/com/1"


/* dev driver call back function prototypes */
extern int netos_serlenter (int channel);
extern int netos_serlinit (int channel);
extern int netos_serlopen (int channel, unsigned flags);
extern int netos_serlclose (int channel);
extern int netos_serlread (int channel, void * buffer, int length, int *bytesRead);
extern int netos_serlwrite (int channel, void * buffer, int length, int *bytesWritten);
extern int netos_serlioctl (int channel, int request, char *args);
extern int oldapi_serlioctl (int channel, int request, char *args);
    extern int oldapi_serlread (int channel, void *buffer, int length, int *bytesRead);

#ifdef __cplusplus
}
#endif

#endif

