Home | History | Annotate | Line # | Download | only in arc
      1 /*	$NetBSD: p_nec_r94.c,v 1.7 2005/12/11 12:16:37 christos Exp $	*/
      2 
      3 /*-
      4  * Copyright (C) 2000 Shuichiro URATA.  All rights reserved.
      5  *
      6  * Redistribution and use in source and binary forms, with or without
      7  * modification, are permitted provided that the following conditions
      8  * are met:
      9  * 1. Redistributions of source code must retain the above copyright
     10  *    notice, this list of conditions and the following disclaimer.
     11  * 2. Redistributions in binary form must reproduce the above copyright
     12  *    notice, this list of conditions and the following disclaimer in the
     13  *    documentation and/or other materials provided with the distribution.
     14  * 3. The name of the author may not be used to endorse or promote products
     15  *    derived from this software without specific prior written permission.
     16  *
     17  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     18  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     19  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     20  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     21  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     22  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     23  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     24  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     26  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     27  */
     28 
     29 #include <sys/cdefs.h>
     30 __KERNEL_RCSID(0, "$NetBSD: p_nec_r94.c,v 1.7 2005/12/11 12:16:37 christos Exp $");
     31 
     32 #include <sys/param.h>
     33 
     34 #include <machine/autoconf.h>
     35 #include <machine/platform.h>
     36 
     37 #include <arc/jazz/rd94.h>
     38 #include <arc/jazz/jazziovar.h>
     39 
     40 void p_nec_r94_init(void);
     41 
     42 struct platform platform_nec_r94 = {
     43 	"NEC-R94",
     44 	"NEC W&S",
     45 	" (R94)",
     46 	"RISCstation 2200",
     47 	"NEC",
     48 	200, /* MHz ?? */
     49 	c_jazz_eisa_mainbusdevs,
     50 	platform_generic_match,
     51 	p_nec_r94_init,
     52 	c_jazz_eisa_cons_init,
     53 	jazzio_reset,
     54 	c_nec_jazz_set_intr,
     55 };
     56 
     57 /*
     58  * jazzio bus configuration
     59  */
     60 struct pica_dev nec_r94_cpu[] = {
     61 	{{ "timer",	-1, 0, },	(void *)RD94_SYS_IT_VALUE, },
     62 	{{ "dallas_rtc", -1, 0, },	(void *)RD94_SYS_CLOCK, },
     63 	{{ "LPT1",	0, 0, },	(void *)RD94_SYS_PAR1, },
     64 	{{ "I82077",	1, 0, },	(void *)RD94_SYS_FLOPPY, },
     65 	{{ "AD1848",	2, 0, },	(void *)RD94_SYS_SOUND,},
     66 	{{ "SONIC",	3, 0, },	(void *)RD94_SYS_SONIC, },
     67 	{{ "NCRC700",	4, 0, },	(void *)RD94_SYS_SCSI0, },
     68 	{{ "I8742",	6, 0, },	(void *)RD94_SYS_KBD, },
     69 	{{ "pms",	7, 0, },	(void *)RD94_SYS_KBD, }, /* XXX */
     70 	{{ "COM1",	8, 0, },	(void *)RD94_SYS_COM1, },
     71 	{{ "COM2",	9, 0, },	(void *)RD94_SYS_COM2, },
     72 	{{ NULL,	-1, 0, },	NULL, },
     73 };
     74 
     75 /*
     76  * critical i/o space, interrupt, and other chipset related initialization.
     77  */
     78 void
     79 p_nec_r94_init(void)
     80 {
     81 
     82 	c_nec_eisa_init();
     83 
     84 	/* chipset-dependent jazzio bus configuration */
     85 	jazzio_devconfig = nec_r94_cpu;
     86 }
     87