xref: /netbsd/sys/arch/arc/arc/p_nec_jc94.c (revision bf9ec67e)
1 /*	$NetBSD: p_nec_jc94.c,v 1.1 2001/06/13 15:30:38 soda Exp $	*/
2 
3 /*
4  * Copyright (c) 2001 Izumi Tsutsui.  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 OF
26  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  */
28 
29 #include <sys/param.h>
30 
31 #include <machine/autoconf.h>
32 #include <machine/platform.h>
33 
34 #include <arc/jazz/rd94.h>
35 #include <arc/jazz/jazziovar.h>
36 
37 void p_nec_jc94_init __P((void));
38 
39 struct platform platform_nec_jc94 = {
40 	"NEC-JC94",
41 	"NEC W&S",
42 	" R4400 PCI",
43 	"Express 5800/230",
44 	"NEC",
45 	150, /* MHz ?? */
46 	c_nec_pci_mainbusdevs,
47 	platform_generic_match,
48 	p_nec_jc94_init,
49 	c_nec_pci_cons_init,
50 	jazzio_reset,
51 	c_nec_jazz_set_intr,
52 };
53 
54 /*
55  * jazzio bus configuration
56  */
57 
58 struct pica_dev nec_jc94_cpu[] = {
59 	{{ "timer",	-1, 0, },	(void *)RD94_SYS_IT_VALUE, },
60 	{{ "dallas_rtc", -1, 0, },	(void *)RD94_SYS_CLOCK, },
61 	{{ "lpt",	0, 0, },	(void *)RD94_SYS_PAR1, },
62 	{{ "fdc",	1, 0, },	(void *)RD94_SYS_FLOPPY, },
63 	{{ "AD1848",	2, 0, },	(void *)RD94_SYS_SOUND,},
64 	{{ "sonic",	3, 0, },	(void *)RD94_SYS_SONIC, },
65 	{{ "osiop",	5, 0, },	(void *)RD94_SYS_SCSI1, }, /*scsi(0)*/
66 	{{ "osiop",	4, 0, },	(void *)RD94_SYS_SCSI0, }, /*scsi(1)*/
67 	{{ "pckbd",	6, 0, },	(void *)RD94_SYS_KBD, },
68 	{{ "pms",	7, 0, },	(void *)RD94_SYS_KBD, },
69 	{{ "com",	8, 0, },	(void *)RD94_SYS_COM1, },
70 	{{ "com",	9, 0, },	(void *)RD94_SYS_COM2, },
71 	{{ NULL,	-1, 0, },	(void *)NULL, },
72 };
73 
74 /*
75  * critial i/o space, interrupt, and other chipset related initialization.
76  */
77 void
78 p_nec_jc94_init()
79 {
80 	c_nec_pci_init();
81 
82 	/* chipset-dependent jazzio bus configuration */
83 	jazzio_devconfig = nec_jc94_cpu;
84 }
85