1 /* -*- linux-c -*- */
2 /*
3  * sp502.h - chip definitions for the
4  *	Sipex SP502 Multi-Mode Serial Transceiver
5  *
6  * Bjoren Davis, Aurora Technologies, 21. January, 1995.
7  *
8  * COPYRIGHT (c) 1995-1999 BY AURORA TECHNOLOGIES, INC., WALTHAM, MA.
9  *
10  * Copyright (C) 2001 By Joachim Martillo, Telford Tools, Inc.
11  *
12  * This program is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public License
14  * as published by the Free Software Foundation; either version
15  * 2 of the License, or (at your option) any later version.
16  *
17  *	file: sp502.h
18  *	author: bkd
19  *	created: 1/21/95
20  *	revision info: $Id: sp502.h,v 1.3 2002/02/10 22:17:26 martillo Exp $
21  *	ripped off from: Header: /vol/sources.cvs/dev/acs/include/sp502.h,v 1.4 1996/11/07 21:35:10 bkd Exp
22  *	Used without modification in the multichannel server portion of the Linux driver by Joachim Martillo
23  */
24 
25 #ifndef _SP502_H
26 #define _SP502_H
27 
28 #ifdef sun
29 #   pragma ident "@(#)$Header: /usr/local/cvs/linux-2.4.6/drivers/net/wan/8253x/sp502.h,v 1.3 2002/02/10 22:17:26 martillo Exp $"
30 #endif
31 
32 /*
33  * These following nibble values are from the SP502 Data Sheet, which
34  *  is in the Sipex Interface Products Catalog, 1994 Edition, pages
35  *  168 and 170.
36  */
37 
38 /* same order as the modes in 8253xioc.h and as the names in 8253xtty.c and as the progbytes in 8253xmcs.c*/
39 
40 #define SP502_OFF	((unsigned char) 0x00)
41 #define SP502_RS232	((unsigned char) 0x02)
42 #define SP502_RS422	((unsigned char) 0x04)
43 #define SP502_RS485	((unsigned char) 0x05)
44 #define SP502_RS449	((unsigned char) 0x0c)
45 #define SP502_EIA530	((unsigned char) 0x0d)
46 #define SP502_V35	((unsigned char) 0x0e)
47 
48 #endif		/* !_SP502_H */
49