/* Modified: 2000 AlansFixes */

#include "ngspice/config.h"

#include "ngspice/devdefs.h"

#include "cswitf.h"
#include "cswext.h"
#include "cswinit.h"


SPICEdev CSWinfo = {
    {
	"CSwitch",
        "Current controlled ideal switch",

        &CSWnSize,
        &CSWnSize,
        CSWnames,

        &CSWpTSize,
        CSWpTable,

        &CSWmPTSize,
        CSWmPTable,

#ifdef XSPICE
/*----  Fixed by SDB 5.2.2003 to enable XSPICE/tclspice integration  -----*/
        NULL,  /* This is a SPICE device, it has no MIF info data */

        0,     /* This is a SPICE device, it has no MIF info data */
        NULL,  /* This is a SPICE device, it has no MIF info data */

        0,     /* This is a SPICE device, it has no MIF info data */
        NULL,  /* This is a SPICE device, it has no MIF info data */

        0,     /* This is a SPICE device, it has no MIF info data */
        NULL,  /* This is a SPICE device, it has no MIF info data */
/*---------------------------  End of SDB fix   -------------------------*/
#endif

	0
    },

 /* DEVparam      */ CSWparam,
 /* DEVmodParam   */ CSWmParam,
 /* DEVload       */ CSWload,
 /* DEVsetup      */ CSWsetup,
 /* DEVunsetup    */ NULL,
 /* DEVpzSetup    */ CSWsetup,
 /* DEVtemperature*/ NULL,
 /* DEVtrunc      */ CSWtrunc,
 /* DEVfindBranch */ NULL,
 /* DEVacLoad     */ CSWacLoad,
 /* DEVaccept     */ NULL,
 /* DEVdestroy    */ CSWdestroy,
 /* DEVmodDelete  */ CSWmDelete,
 /* DEVdelete     */ CSWdelete,
 /* DEVsetic      */ NULL,
 /* DEVask        */ CSWask,
 /* DEVmodAsk     */ CSWmAsk,
 /* DEVpzLoad     */ CSWpzLoad,
 /* DEVconvTest   */ NULL,
 /* DEVsenSetup   */ NULL,
 /* DEVsenLoad    */ NULL,
 /* DEVsenUpdate  */ NULL,
 /* DEVsenAcLoad  */ NULL,
 /* DEVsenPrint   */ NULL,
 /* DEVsenTrunc   */ NULL,
 /* DEVdisto      */ NULL,	/* DISTO */
 /* DEVnoise      */ CSWnoise,
 /* DEVsoaCheck   */ NULL,
#ifdef CIDER
 /* DEVdump       */ NULL,
 /* DEVacct       */ NULL,
#endif
 /* DEVinstSize   */ &CSWiSize,
 /* DEVmodSize    */ &CSWmSize

};


SPICEdev *
get_csw_info(void)
{
    return &CSWinfo;
}
