1*cffb5808Scgd /* $NetBSD: tc_3maxplus.c,v 1.6 2000/06/04 19:14:56 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_3maxplus.c,v 1.6 2000/06/04 19:14:56 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/kn03.h> 429caaf188Sjonathan 439caaf188Sjonathan /* 44f0771e6bSnisimura * 3MAX+ has 4 TC option slot address space starting at 0x1e00.0000. 45f0771e6bSnisimura * TC slot size is 8MB. Three option slots are available. IOASIC, 46f0771e6bSnisimura * which governs various baseboard devices like keyboard/mouse, RTC, 47f0771e6bSnisimura * DMA assisted ASC SCSI, LANCE Ether, forms a system base. IOASIC 48f0771e6bSnisimura * is designed as a TC device and sits in slot #3 space. 499caaf188Sjonathan */ 509caaf188Sjonathan static struct tc_slotdesc tc_kn03_slots [4] = { 51d93aaefbSnisimura { KV(KN03_PHYS_TC_0_START), C(SYS_DEV_OPT0), }, /* 0 - opt slot 0 */ 52d93aaefbSnisimura { KV(KN03_PHYS_TC_1_START), C(SYS_DEV_OPT1), }, /* 1 - opt slot 1 */ 53d93aaefbSnisimura { KV(KN03_PHYS_TC_2_START), C(SYS_DEV_OPT2), }, /* 2 - opt slot 2 */ 54d93aaefbSnisimura { KV(KN03_PHYS_TC_3_START), C(SYS_DEV_BOGUS), }, /* 3 - IOASIC */ 559caaf188Sjonathan }; 569caaf188Sjonathan 57f0771e6bSnisimura const struct tc_builtin tc_kn03_builtins[] = { 58d93aaefbSnisimura { "IOCTL ", 3, 0x0, C(3), } 59f0771e6bSnisimura }; 609caaf188Sjonathan 610310fa65Snisimura struct tcbus_attach_args kn03_tc_desc = { 62f0771e6bSnisimura NULL, 0, 639caaf188Sjonathan TC_SPEED_25_MHZ, 649caaf188Sjonathan KN03_TC_NSLOTS, tc_kn03_slots, 659caaf188Sjonathan 1, tc_kn03_builtins, 66*cffb5808Scgd NULL, NULL, NULL, 670310fa65Snisimura NULL, 689caaf188Sjonathan }; 69