/*
 *
 */

/****************************************************************************
*****************************************************************************
** Scf Device                                                              **
**  sc16550 Driver                                                         **
** ===============                                                         **
**                                                                         **
**  System Level Default Field Definitions                                 **
**  --------------------------------------                                 **
**  The system level description files (for example, scf.des) include      **
**  default values that will be used for sc16550 device descriptor fields  **
**  unless sc16550 device level defaults or module specific overrides for  **
**  these fields are defined.  The two ways to supply values for these     **
**  fields are as follows.                                                 **
**                                                                         **
**  sc16550 Device Level Defaults                                          **
**  ----------------------------                                           **
**  These values apply to all sc16550 device descriptors.  They take       **
**  precedence over the system level defaults mentioned above, and will    **
**  apply unless module specific overrides are supplied.                   **
**                                                                         **
**       Usage:   #define <field>   <value>                                **
**                                                                         **
**  Module Specific Overrides                                              **
**  -------------------------                                              **
**  These values apply to a specific sc16550 device descriptor, determined **
**  by which '#if defined' descriptor section the defines are located in.  **
**  Override values take precedence over both the system and sc16550 device**
**  level defaults discussed above.                                        **
**                                                                         **
**       Usage:   #if defined (MODULE_OF_CHOICE)                           **
**                ...                                                      **
**                #define <field>_OVERRIDE   <value>                       **
**                ...                                                      **
**                #endif                                                   **
**                                                                         **
**  Available <field> macros                                               **
**  ------------------------                                               **
**  Module header macros:                                                  **
**  MH_ACCESS       MH_ATTREV       MH_EDIT         MH_GROUP               **
**  MH_NAME         MH_TYLAN        MH_USER                                **
**                                                                         **
**  Device descriptor common macros:                                       **
**  CLASS           DRVR_NAME       FMGR_NAME       LUN                    **
**  MODE            PD_SIZE         PORTADDR        TYPE                   **
**                                                                         **
**  Scf macros: (<xx> denotes index value)                                 **
**  AUTOECHO        AUTOLF          BAUDRATE        BELLCH                 **
**  BSB             BSPCH           EOFCH           EOLNULLS               **
**  EORCH           FUNC0x<xx>      INPUT_TYPE      INSERTMODE             **
**  INSIZE          IRQLEVEL        IRQ_MASK        KYBDINTR               **
**  KYBDPAUSE       KYBDQUIT        LINEDEL         LUN                    **
**  LUPARITY        MAXBUFF         OUTDEVNAME      OUTPUT_TYPE            **
**  OUTSIZE         PAGEPAUSE       PAGESIZE        PRIORITY               **
**  RTSSTATE        SIZE0x<xx>      STOPBITS        STRING0x<xx>           **
**  TABCH           TABSIZE         TYPE0x<xx>      UPC_LOCK               **
**  VECTOR          WORDSIZE        XOFF            XON                    **
**                                                                         **
**  Sc16550 macros:                                                        **
**  DS_DGI_PORTADDR1    DS_DGI_PORTADDR2   DS_DGI_PORTADDR3                **
**  DS_DGI_PORTADDR4    DS_DGI_PORTADDR5   DS_DGI_PORTADDR6                **
**  DS_DGI_PORTADDR7    DS_DGI_PORTADDR8   DS_PORTADDR                     **
**                                                                         **
**  Notes                                                                  **
**  -----                                                                  **
**  Refer to the OS-9000 Configuration Reference for a complete list of    **
**  field descriptions, default values, and possible value ranges.         **
**                                                                         **
*****************************************************************************
****************************************************************************/

/****************************************************************************
 *                                                                          *
 * DESC/makefile predefinitions                                             *
 * ----------------------------                                             *
 * To assist in automation and readability, the default/override sections   *
 * which follow below may rely on predefined macro values within the        *
 * DESC/makefile for some/all of the field values which remain constant for *
 * a given descriptor configuration.                                        *
 *                                                                          *
 * As all descriptor configurations generated by the DESC/makefile rely on  *
 * this one file for default/override field values, user-defines may need   *
 * to be conditionalized to ensure they are applied correctly.              *
 *                                                                          *
 ***************************************************************************/

#if !defined(_CONFIG_DES)
#define _CONFIG_DES

/****************************************************************************
 * dio7224 Device Desc. Default Definitions (All associated descriptors)    *
 ***************************************************************************/
/* Module header */
/* Device descriptor common macros */
#define DRVR_NAME   "dio7224"
#define LUN         0

/* All 'constant' overrides are predefined in DESC/makefile.  */

/* Card one  */
#define PORTADDR_OVERRIDE   0x00000000
#define VECTOR_OVERRIDE     0
#define IRQLEVEL_OVERRIDE   5
#define PRIORITY_OVERRIDE   5
#define DS_PORTADDR_OVERRIDE        PORTADDR_OVERRIDE 
#define DS_PCI_VEN_ID 		0x144A
#define DS_PCI_DEV_ID 		0x7248
#define DS_IRQ_SHARED		0

/****************************************************************************
 * End of (PCI LAVA) sc16550 Device Descriptor Override Definitions           *
 ***************************************************************************/

/* Module header */
#define MH_NAME_OVERRIDE    "dlmsboard"

#define TYPE0x7f PASSTHRU
#define FUNC0x7f 0
#define SIZE0x7f 0

#define TYPE0x01 PASSTHRU
#define FUNC0x01 0
#define SIZE0x01 0

#define TYPE0x02 PASSTHRU
#define FUNC0x02 0
#define SIZE0x02 0

#define TYPE0x03 PASSTHRU
#define FUNC0x03 0
#define SIZE0x03 0

#define TYPE0x04 PASSTHRU
#define FUNC0x04 0
#define SIZE0x04 0

#define TYPE0x05 PASSTHRU
#define FUNC0x05 0
#define SIZE0x05 0

#define TYPE0x06 PASSTHRU
#define FUNC0x06 0
#define SIZE0x06 0

#define TYPE0x07 PASSTHRU
#define FUNC0x07 0
#define SIZE0x07 0

#define TYPE0x08 PASSTHRU
#define FUNC0x08 0
#define SIZE0x08 0

#define TYPE0x09 PASSTHRU
#define FUNC0x09 0
#define SIZE0x09 0

#define TYPE0x0a PASSTHRU
#define FUNC0x0a 0
#define SIZE0x0a 0

#define TYPE0x0b PASSTHRU
#define FUNC0x0b 0
#define SIZE0x0b 0

#define TYPE0x0c PASSTHRU
#define FUNC0x0c 0
#define SIZE0x0c 0

#define TYPE0x0d PASSTHRU
#define FUNC0x0d 0
#define SIZE0x0d 0

#define TYPE0x0e PASSTHRU
#define FUNC0x0e 0
#define SIZE0x0e 0

#define TYPE0x0f PASSTHRU
#define FUNC0x0f 0
#define SIZE0x0f 0

#define TYPE0x10 PASSTHRU
#define FUNC0x10 0
#define SIZE0x10 0

#define TYPE0x11 PASSTHRU
#define FUNC0x11 0
#define SIZE0x11 0

#define TYPE0x12 PASSTHRU
#define FUNC0x12 0
#define SIZE0x12 0

#define TYPE0x13 PASSTHRU
#define FUNC0x13 0
#define SIZE0x13 0

#define TYPE0x14 PASSTHRU
#define FUNC0x14 0
#define SIZE0x14 0

#define TYPE0x15 PASSTHRU
#define FUNC0x15 0
#define SIZE0x15 0

#define TYPE0x16 PASSTHRU
#define FUNC0x16 0
#define SIZE0x16 0


#define TYPE0x17 PASSTHRU
#define FUNC0x17 0
#define SIZE0x17 0

#define TYPE0x18 PASSTHRU
#define FUNC0x18 0
#define SIZE0x18 0

#define TYPE0x19 PASSTHRU
#define FUNC0x19 0
#define SIZE0x19 0

#define TYPE0x1a PASSTHRU
#define FUNC0x1a 0
#define SIZE0x1a 0

#define TYPE0x1b PASSTHRU
#define FUNC0x1b 0
#define SIZE0x1b 0

#define TYPE0x1c PASSTHRU
#define FUNC0x1c 0
#define SIZE0x1c 0

#define TYPE0x1d PASSTHRU
#define FUNC0x1d 0
#define SIZE0x1d 0

#define TYPE0x1e PASSTHRU
#define FUNC0x1e 0
#define SIZE0x1e 0

#define TYPE0x1f PASSTHRU
#define FUNC0x1f 0
#define SIZE0x1f 0

/****************************************************************************
 * End of m0 sc16550 Device Descriptor Override Definitions                 *
 ***************************************************************************/


/****************************************************************************
*****************************************************************************
**                                                                         **
**       You should not need to modify anything below this point!          **
**                                                                         **
*****************************************************************************
****************************************************************************/

#cinclude <systype.h>
#include <module.des>
#include <io.des>
#include "dio7224.des"   /* sc16550 driver description file */
#cinclude "dio7224.h"

/* device_specific_des */
init device_specific_des {
#if defined DS_PORTADDR_OVERRIDE
    v_port = DS_PORTADDR_OVERRIDE;
#elif defined DS_PORTADDR
    v_port = DS_PORTADDR;
#endif

#if defined DS_PCI_VEN_ID
	v_pci_ven_id = DS_PCI_VEN_ID;
#else
	v_pci_ven_id = 0;
#endif
#if defined DS_PCI_DEV_ID
	v_pci_dev_id = DS_PCI_DEV_ID;
#else
	v_pci_dev_id = 0;
#endif

#if defined DS_PLX_BASE
	v_plx_base = DS_PLX_BASE;
#else
	v_plx_base = 0;
#endif

#if defined DS_IRQ_BIT
	v_irq_bit = DS_IRQ_BIT;
#else
	v_irq_bit = 0;
#endif

#if defined DS_IRQ_MASK
	v_irq_mask = DS_IRQ_MASK;
#else
	v_irq_mask = 0;
#endif

#if defined DS_IRQ_SHARED
	v_irq_shared = DS_IRQ_SHARED;
#else
#if defined SHARED_VECTOR
	v_irq_shared = 1;
#else
	v_irq_shared = 0;
#endif
#endif

};
/* End device_specific_des */

#endif /* config.des */

