1*cffb5808Scgd /* $NetBSD: tc_3max.c,v 1.7 2000/06/04 19:14:55 cgd Exp $ */ 29caaf188Sjonathan 39caaf188Sjonathan /* 49caaf188Sjonathan * Copyright (c) 1998 Jonathan Stone. All rights reserved. 59caaf188Sjonathan * 69caaf188Sjonathan * Redistribution and use in source and binary forms, with or without 79caaf188Sjonathan * modification, are permitted provided that the following conditions 89caaf188Sjonathan * are met: 99caaf188Sjonathan * 1. Redistributions of source code must retain the above copyright 109caaf188Sjonathan * notice, this list of conditions and the following disclaimer. 119caaf188Sjonathan * 2. Redistributions in binary form must reproduce the above copyright 129caaf188Sjonathan * notice, this list of conditions and the following disclaimer in the 139caaf188Sjonathan * documentation and/or other materials provided with the distribution. 149caaf188Sjonathan * 3. All advertising materials mentioning features or use of this software 159caaf188Sjonathan * must display the following acknowledgement: 169caaf188Sjonathan * This product includes software developed by Jonathan Stone for 179caaf188Sjonathan * the NetBSD Project. 189caaf188Sjonathan * 4. The name of the author may not be used to endorse or promote products 199caaf188Sjonathan * derived from this software without specific prior written permission. 209caaf188Sjonathan * 219caaf188Sjonathan * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 229caaf188Sjonathan * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 239caaf188Sjonathan * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 249caaf188Sjonathan * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 259caaf188Sjonathan * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 269caaf188Sjonathan * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 279caaf188Sjonathan * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 289caaf188Sjonathan * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 299caaf188Sjonathan * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 309caaf188Sjonathan * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 319caaf188Sjonathan */ 329caaf188Sjonathan 339caaf188Sjonathan #include <sys/cdefs.h> /* RCS ID & Copyright macro defns */ 34*cffb5808Scgd __KERNEL_RCSID(0, "$NetBSD: tc_3max.c,v 1.7 2000/06/04 19:14:55 cgd Exp $ "); 359caaf188Sjonathan 360310fa65Snisimura #include <sys/param.h> 370310fa65Snisimura #include <sys/systm.h> 389caaf188Sjonathan #include <sys/device.h> 399caaf188Sjonathan 400310fa65Snisimura #include <dev/tc/tcvar.h> 419caaf188Sjonathan #include <pmax/pmax/kn02.h> 429caaf188Sjonathan 43f0771e6bSnisimura /* 44f0771e6bSnisimura * 3MAX has 8 TC slot address space starting at 0x1e00.0000 with 4MB 45f0771e6bSnisimura * range for each. Three option slots are available as #0,1,2. Two 46f0771e6bSnisimura * devices on baseboard, ASC SCSI and LANCE Ether, are designed as TC 47f0771e6bSnisimura * option cards and populated in distinct slots. Slot #7, which 48f0771e6bSnisimura * contains RTC and serial chip, forms 3MAX system base. 49f0771e6bSnisimura */ 50f0771e6bSnisimura static struct tc_slotdesc tc_kn02_slots [8] = { 51d93aaefbSnisimura { KV(KN02_PHYS_TC_0_START), C(SYS_DEV_OPT0), }, /* 0 - opt slot 0 */ 52d93aaefbSnisimura { KV(KN02_PHYS_TC_1_START), C(SYS_DEV_OPT1), }, /* 1 - opt slot 1 */ 53d93aaefbSnisimura { KV(KN02_PHYS_TC_2_START), C(SYS_DEV_OPT2), }, /* 2 - opt slot 2 */ 54d93aaefbSnisimura { KV(KN02_PHYS_TC_3_START), C(SYS_DEV_BOGUS), }, /* 3 - unused */ 55d93aaefbSnisimura { KV(KN02_PHYS_TC_4_START), C(SYS_DEV_BOGUS), }, /* 4 - unused */ 56d93aaefbSnisimura { KV(KN02_PHYS_TC_5_START), C(SYS_DEV_SCSI), }, /* 5 - b`board SCSI */ 57d93aaefbSnisimura { KV(KN02_PHYS_TC_6_START), C(SYS_DEV_LANCE), }, /* 6 - b`board LANCE */ 58d93aaefbSnisimura { KV(KN02_PHYS_TC_7_START), C(SYS_DEV_BOGUS), }, /* 7 - system CSRs */ 599caaf188Sjonathan }; 609caaf188Sjonathan 619caaf188Sjonathan const struct tc_builtin tc_kn02_builtins[] = { 62d93aaefbSnisimura { "KN02SYS ", 7, 0x0, C(SYS_DEV_BOGUS), }, 63d93aaefbSnisimura { "PMAD-AA ", 6, 0x0, C(SYS_DEV_LANCE), }, 64d93aaefbSnisimura { "PMAZ-AA ", 5, 0x0, C(SYS_DEV_SCSI), }, 659caaf188Sjonathan }; 669caaf188Sjonathan 670310fa65Snisimura struct tcbus_attach_args kn02_tc_desc = { 68f0771e6bSnisimura NULL, 0, 699caaf188Sjonathan TC_SPEED_25_MHZ, 70f0771e6bSnisimura KN02_TC_NSLOTS, tc_kn02_slots, 71f0771e6bSnisimura 3, tc_kn02_builtins, 72*cffb5808Scgd NULL, NULL, NULL, 730310fa65Snisimura NULL, 749caaf188Sjonathan }; 75