/*--------------------------------------------------------------------------+
|                                                                           |
| RadiSys Confidential                                                      |
| OS-9                                                                      |
| (C) Copyright RadiSys Corporation 1989, 2006                              |
| All Rights Reserved                                                       |
| Reproduce Under License                                                   |
|                                                                           |
| The source code for this program is not published or otherwise divested   |
| of its trade secrets, irrespective of what has been deposited with the    |
| U.S. Copyright Office.                                                    |
|                                                                           |
|---------------------------------------------------------------------------|
|                                                                           |
| 16450 serial driver main (declare driver static storage structure).		|
|																			|
| Edition History:                                                          |
| #   Date     Comments                                                By   |
| --- -------- ------------------------------------------------------- ---  |
|  01 89/07/03 Created / snarfed from sc8251							srw	|
|  02 90/07/24 Prepared for V1.1 release.								afh |
|			   			--- OS-9000 V1.1 Release ---						|
|						--- OS-9000 V1.2 Release ---						|
|  03 91/07/19 Corrected baud rate table above 19200 baud				MJL |
|  04 91/09/12 Added SS_ENRTS,SS_DSRTS									MJL |
|  05 91/10/16 Added SS_DCDON,SS_DCDOFF									MJL |
|  06 93/06/09 Moved global variable declarations into "init.c".		afh |
|  07 ??/??/?? edition #6 numbered incorrectly                          ??? |
|  08 94/09/07 Adapted to 16550. Improved portability.                  ats |
|  09 95/03/17 Added "_m_share" label to define the driver's shared			|
|			   statics.													afh |
|  10 95/09/15 Updated usage of modem status register definitions.      ats |
|  11 95/11/10 Removed SERIALIZE_M macros (now handled by inc/outc).        |
|              Changed inc/outc to IN/OUT.                              gdb |
|  12 96/01/11 Make use of pic library functions.                       gdb |
|              ---- OS9000/PPC V2.0 Release ----                            |
|  13 96/05/08 Enable FIFO mode if available.                           cdg |
|              Added support for 57.6Kbps and 115.2Kbps.                    |
|  14 96/06/26 Added conditional "PIC_CISR" around EOI command for x86. cdg |
|              ---- OS-9000/x86 V2.1 Released ----                          |
|  15 96/10/18 Added "NEVERME" conditional macro for hanging interrupt ats  |
|              on ticker vector.                                            |
|              ---- OS-9000/PPC V2.1.1 Released ----                        |
|              ---- OS-9000/ARMv3 V2.2 Released ----                        |
|              ---- OS-9000/ARMv3 V2.2.1 Released ----                      |
|  16 97/12/05 added a SHARED_VECTOR define that removes the                |
|              _pic_disable call to allow the vector to be shared.      gdw |
|  17 98/01/29 Eliminate compiler warnings.                             ats |
|              ---- MBX_BSP Released ----                                   |
|  18 98/02/16 Eliminate compiler warnings. Digiboard specific.         GbG |
|              ---- OS-9000/SPARC V2.2.7 Released ----                      |
|              ---- OS-9000 SCF v1.1 Released ----                          |
|              ---- OS-9000 SCF V1.1.1 Released ----                        |
|  19 99/02/12 Fixed ISR enable problem for 16554"d" versions.          rkw |
|  20 99/04/06 Added set_polarity() to set extra irq parameters.		rkw |
|  21 99/05/21 Added another level of parantheses for OUT() macros.		dwj	|
|  22 99/09/03 Added WT_INPUT check, to aviod false wake on xmit sleep  rkw |
|  23 01/04/26 Added PCI support for LAVA PCI serial card.                  |
|              [LavaPort-Quad] http://www.lavalink.com/                GbG  |
|  24 01/06/13 Mask IRQ around entxirq() in irq.c                      KeiT |
|  25 01/10/04 Fixed DIGIBOARD descriptor issue with use of PORTADDR.  GbG  |
|  26 03/04/10 CF14104 - fixing to not clear v_err, instead OR with it rry  |
|  27 03/04/20 Corrected recv buffer overflow handling                 KeiT |
|  28 03/05/29 CF15480 - doesn't use static storage correctly		   rry  |
|  29 03/10/22 Code clean-up										   rry  |
|              Added ability to specify register width						|
|			   Added support for "enhanced" 16550 chips						|
|  30 04/06/24 Fixing illegal usage of offsetof macro				   rry  |
|  31 05/06/27 Added generic support for PCI cards via Descriptor      KeiT |
|  32 06/04/27 Shut down the chip correctly. Disable RTS/DTR/FIFO      KeiT |
|  33 06/05/18 Update the v_dcdstate during Interrupt                  KeiT |
`--------------------------------------------------------------------------*/

#define EDITION		10

_asm("_sysedit: equ %0", __obj_constant(EDITION));

#include "defsfile"

error_code
	init(),			/* addr of driver's "init" function */
	read(),			/* address of driver's "read" function */
	write(),		/* address of driver's "write" function */
	getstat(),		/* addr of driver's "get_status" function */
	setstat(),		/* addr of driver's "put_status" function */
	terminate(),	/* addr of driver's "terminate" function */
	entxirq(),		/* addr of driver's "entxirq" function */
	irqsort();		/* addr of driver's IRQ service routine	*/

/* Driver static storage structure declaration and initialization. */
_asm("_m_share: equ drvrstatic");

scf_drvr_stat drvrstatic = {
	init,	
	read,
	write,
 	getstat,
	setstat,
	terminate,
	entxirq,
	NULL,			/* device table entry (filled in by SCF) */
	0,				/* v_attached */
	0,0,0,0,0,0,0,	/* reserved */
	0				/* no IRQ routines that SCF no longer installs anyway */
};

int main (int argc, char**argv)
{
return 0;
}
