1*23347d39Smatt /* $NetBSD: sysconf.h,v 1.8 2011/02/20 07:59:50 matt Exp $ */ 2a8a801d6Sthorpej 3a8a801d6Sthorpej /* 4a8a801d6Sthorpej * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. 5a8a801d6Sthorpej * 6a8a801d6Sthorpej * Redistribution and use in source and binary forms, with or without 7a8a801d6Sthorpej * modification, are permitted provided that the following conditions 8a8a801d6Sthorpej * are met: 9a8a801d6Sthorpej * 1. Redistributions of source code must retain the above copyright 10a8a801d6Sthorpej * notice, this list of conditions and the following disclaimer. 11a8a801d6Sthorpej * 2. Redistributions in binary form must reproduce the above copyright 12a8a801d6Sthorpej * notice, this list of conditions and the following disclaimer in the 13a8a801d6Sthorpej * documentation and/or other materials provided with the distribution. 14a8a801d6Sthorpej * 3. All advertising materials mentioning features or use of this software 15a8a801d6Sthorpej * must display the following acknowledgement: 16a8a801d6Sthorpej * This product includes software developed by Christopher G. Demetriou 17a8a801d6Sthorpej * for the NetBSD Project. 18a8a801d6Sthorpej * 4. The name of the author may not be used to endorse or promote products 19a8a801d6Sthorpej * derived from this software without specific prior written permission 20a8a801d6Sthorpej * 21a8a801d6Sthorpej * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 22a8a801d6Sthorpej * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 23a8a801d6Sthorpej * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 24a8a801d6Sthorpej * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 25a8a801d6Sthorpej * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 26a8a801d6Sthorpej * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27a8a801d6Sthorpej * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28a8a801d6Sthorpej * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29a8a801d6Sthorpej * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30a8a801d6Sthorpej * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31a8a801d6Sthorpej */ 32a8a801d6Sthorpej 33a8a801d6Sthorpej /* 34a8a801d6Sthorpej * Additional reworking by Matthew Jacob for NASA/Ames Research Center. 35a8a801d6Sthorpej * Copyright (c) 1997 36a8a801d6Sthorpej */ 37a8a801d6Sthorpej 38a8a801d6Sthorpej /* 39a8a801d6Sthorpej * Copyright (c) 1998 Jonathan Stone. All rights reserved. 40a8a801d6Sthorpej * Additional reworking for pmaxes. 41a8a801d6Sthorpej * Since pmax mboard support different CPU daughterboards, 42a8a801d6Sthorpej * and others are mmultiprocessors, rename from cpu_* to sys_*. 43a8a801d6Sthorpej */ 44a8a801d6Sthorpej 45a8a801d6Sthorpej #ifndef _SGIMIPS_SYSCONF_H_ 46a8a801d6Sthorpej #define _SGIMIPS_SYSCONF_H_ 47a8a801d6Sthorpej 48a8a801d6Sthorpej #ifdef _KERNEL 49a8a801d6Sthorpej /* 50a8a801d6Sthorpej * Platform Specific Information and Function Hooks. 51a8a801d6Sthorpej * 52a8a801d6Sthorpej * The tag iobus describes the primary iobus for the platform, primarily 53a8a801d6Sthorpej * to give a hint as to where to start configuring. 54a8a801d6Sthorpej */ 55a8a801d6Sthorpej 56a8a801d6Sthorpej struct platform { 57a8a801d6Sthorpej /* 58a8a801d6Sthorpej * Platform Specific Function Hooks 591426ceedSrumble * bad_addr - badaddr, or workaround replacement 60a8a801d6Sthorpej * bus_reset - clear memory error condition 61a8a801d6Sthorpej * cons_init - console initialization 62a8a801d6Sthorpej * intr_establish - establish interrupt handler 63a8a801d6Sthorpej * clkread - interporate HZ with hi-resolution timer 6490ed8dc8Ssekiya * watchdog_reset - reset watchdog timer 6590ed8dc8Ssekiya * watchdog_disable- disable watchdog timer 6690ed8dc8Ssekiya * watchdog_enable - enable watchdog timer 6790ed8dc8Ssekiya * intr0-intr5 - CPU interrupt handler 68a8a801d6Sthorpej */ 69a8a801d6Sthorpej 701426ceedSrumble int (*badaddr)(void *, size_t); 71a8a801d6Sthorpej void (*bus_reset)(void); 72a8a801d6Sthorpej void (*cons_init)(void); 7390ed8dc8Ssekiya void *(*intr_establish)(int , int, int (*)(void *), void *); 7445983912Ssekiya unsigned long (*clkread) (void); 7545983912Ssekiya void (*watchdog_reset)(void); 7690ed8dc8Ssekiya void (*watchdog_disable)(void); 7790ed8dc8Ssekiya void (*watchdog_enable)(void); 78*23347d39Smatt void (*intr0)(vaddr_t, uint32_t, uint32_t); 79*23347d39Smatt void (*intr1)(vaddr_t, uint32_t, uint32_t); 80*23347d39Smatt void (*intr2)(vaddr_t, uint32_t, uint32_t); 81*23347d39Smatt void (*intr3)(vaddr_t, uint32_t, uint32_t); 82*23347d39Smatt void (*intr4)(vaddr_t, uint32_t, uint32_t); 83*23347d39Smatt void (*intr5)(vaddr_t, uint32_t, uint32_t); 84a8a801d6Sthorpej }; 85a8a801d6Sthorpej 863327706cSrafal extern struct platform platform; 873327706cSrafal 88a8a801d6Sthorpej #endif /* _KERNEL */ 89a8a801d6Sthorpej 90a8a801d6Sthorpej #endif /* !_SGIMIPS_SYSCONF_H_ */ 91