1 /* $NetBSD: p_ms_jazz.c,v 1.1 2001/06/13 15:28:23 soda Exp $ */ 2 /* $OpenBSD: picabus.c,v 1.11 1999/01/11 05:11:10 millert Exp $ */ 3 4 /* 5 * Copyright (c) 1994, 1995 Carnegie-Mellon University. 6 * All rights reserved. 7 * 8 * Author: Chris G. Demetriou 9 * Author: Per Fogelstrom. (Mips R4x00) 10 * 11 * Permission to use, copy, modify and distribute this software and 12 * its documentation is hereby granted, provided that both the copyright 13 * notice and this permission notice appear in all copies of the 14 * software, derivative works or modified versions, and any portions 15 * thereof, and that both notices appear in supporting documentation. 16 * 17 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 18 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND 19 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 20 * 21 * Carnegie Mellon requests users of this software to return to 22 * 23 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 24 * School of Computer Science 25 * Carnegie Mellon University 26 * Pittsburgh PA 15213-3890 27 * 28 * any improvements or extensions that they make and grant Carnegie the 29 * rights to redistribute these changes. 30 */ 31 32 #include <sys/param.h> 33 34 #include <machine/autoconf.h> 35 #include <machine/platform.h> 36 37 #include <arc/jazz/pica.h> 38 #include <arc/jazz/jazziovar.h> 39 40 #include "com.h" 41 42 #include "asc.h" 43 #if NASC > 0 44 #include <arc/jazz/ascreg.h> 45 #include <arc/jazz/ascvar.h> 46 #endif 47 48 /* MAGNUM. NEC goes here too. */ 49 50 #ifndef COM_FREQ_MAGNUM 51 #if 0 52 #define COM_FREQ_MAGNUM 4233600 /* 4.2336MHz - ARC? */ 53 #else 54 #define COM_FREQ_MAGNUM 8192000 /* 8.192 MHz - NEC RISCstation M402 */ 55 #endif 56 #endif /* COM_FREQ_MAGNUM */ 57 58 #if NASC > 0 59 struct asc_config asc_ms_jazz_conf = { 60 &asc_timing_40mhz, 61 62 /* only if EPL is FE (Feature Enable bit for 53CF94) */ 63 ASC_CNFG3_FCLK, /* clock 40MHz */ 64 }; 65 #endif 66 67 void p_ms_jazz_init __P((void)); 68 69 struct platform platform_microsoft_jazz = { 70 "Microsoft-Jazz", 71 "MIPS MAG", 72 "", 73 "Magnum", 74 "MIPS", 75 150, /* MHz */ 76 c_jazz_eisa_mainbusdevs, 77 platform_generic_match, 78 p_ms_jazz_init, 79 c_jazz_eisa_cons_init, 80 jazzio_reset, 81 c_magnum_set_intr, 82 }; 83 84 /* 85 * jazzio bus configuration 86 */ 87 88 struct pica_dev mips_magnum_r4000_cpu[] = { 89 {{ "timer", -1, 0, }, (void *)R4030_SYS_IT_VALUE, }, 90 {{ "dallas_rtc", -1, 0, }, (void *)PICA_SYS_CLOCK, }, 91 {{ "lpt", 0, 0, }, (void *)PICA_SYS_PAR1, }, 92 {{ "fdc", 1, 0, }, (void *)PICA_SYS_FLOPPY, }, 93 {{ "MAGNUM", 2, 0, }, (void *)PICA_SYS_SOUND,}, 94 {{ "VXL", 3, 0, }, (void *)PICA_V_LOCAL_VIDEO, }, 95 {{ "sonic", 4, 0, }, (void *)PICA_SYS_SONIC, }, 96 {{ "asc", 5, 0, }, (void *)PICA_SYS_SCSI, }, 97 {{ "pckbd", 6, 0, }, (void *)PICA_SYS_KBD, }, 98 {{ "pms", 7, 0, }, (void *)PICA_SYS_KBD, }, 99 {{ "com", 8, 0, }, (void *)PICA_SYS_COM1, }, 100 {{ "com", 9, 0, }, (void *)PICA_SYS_COM2, }, 101 {{ NULL, -1, 0, }, (void *)NULL, }, 102 }; 103 104 /* 105 * critial i/o space, interrupt, and other chipset related initialization. 106 */ 107 void 108 p_ms_jazz_init() 109 { 110 c_magnum_init(); 111 112 /* jazzio bus configuration */ 113 jazzio_devconfig = mips_magnum_r4000_cpu; 114 115 #if NASC > 0 116 asc_conf = &asc_ms_jazz_conf; 117 #endif 118 119 #if NCOM > 0 120 com_freq = COM_FREQ_MAGNUM; 121 #endif 122 } 123