1*996804a5Smatt /* $NetBSD: sysconf.h,v 1.6 2011/02/20 07:56:16 matt Exp $ */ 23f55a7b9Swdk 33f55a7b9Swdk /* 43f55a7b9Swdk * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. 53f55a7b9Swdk * 63f55a7b9Swdk * Redistribution and use in source and binary forms, with or without 73f55a7b9Swdk * modification, are permitted provided that the following conditions 83f55a7b9Swdk * are met: 93f55a7b9Swdk * 1. Redistributions of source code must retain the above copyright 103f55a7b9Swdk * notice, this list of conditions and the following disclaimer. 113f55a7b9Swdk * 2. Redistributions in binary form must reproduce the above copyright 123f55a7b9Swdk * notice, this list of conditions and the following disclaimer in the 133f55a7b9Swdk * documentation and/or other materials provided with the distribution. 143f55a7b9Swdk * 3. All advertising materials mentioning features or use of this software 153f55a7b9Swdk * must display the following acknowledgement: 163f55a7b9Swdk * This product includes software developed by Christopher G. Demetriou 173f55a7b9Swdk * for the NetBSD Project. 183f55a7b9Swdk * 4. The name of the author may not be used to endorse or promote products 193f55a7b9Swdk * derived from this software without specific prior written permission 203f55a7b9Swdk * 213f55a7b9Swdk * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 223f55a7b9Swdk * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 233f55a7b9Swdk * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 243f55a7b9Swdk * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 253f55a7b9Swdk * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 263f55a7b9Swdk * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 273f55a7b9Swdk * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 283f55a7b9Swdk * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 293f55a7b9Swdk * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 303f55a7b9Swdk * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 313f55a7b9Swdk */ 323f55a7b9Swdk 333f55a7b9Swdk #ifndef _MIPSCO_SYSCONF_H_ 343f55a7b9Swdk #define _MIPSCO_SYSCONF_H_ 353f55a7b9Swdk 363f55a7b9Swdk #ifdef _KERNEL 373f55a7b9Swdk 383f55a7b9Swdk /* 393f55a7b9Swdk * Platform Specific Information and Function Hooks. 403f55a7b9Swdk */ 413f55a7b9Swdk 423f55a7b9Swdk struct clock_ymdhms; 433f55a7b9Swdk 443f55a7b9Swdk struct platform { 453f55a7b9Swdk const char *iobus; /* Primary iobus name */ 463f55a7b9Swdk 473f55a7b9Swdk /* 483f55a7b9Swdk * Platform Specific Function Hooks 493f55a7b9Swdk * cons_init - console initialization 503f55a7b9Swdk * iointr - I/O interrupt handler 513f55a7b9Swdk * memsize - Size external memory 523f55a7b9Swdk * read_todr - Read TOD registers 533f55a7b9Swdk * write_todr - Write TOD registers 5412fed6d0Sgdamore * clkinit - Initialize clocks 553f55a7b9Swdk */ 5602cdf4d2Sdsl void (*cons_init)(void); 57*996804a5Smatt void (*iointr)(uint32_t, vaddr_t, uint32_t); 5802cdf4d2Sdsl int (*memsize)(void *); 5902cdf4d2Sdsl void (*intr_establish)(int, int (*)(void *), void *); 6002cdf4d2Sdsl void (*clkinit)(void); 613f55a7b9Swdk }; 623f55a7b9Swdk 633f55a7b9Swdk extern struct platform platform; 643f55a7b9Swdk 653f55a7b9Swdk #endif /* _KERNEL */ 663f55a7b9Swdk 673f55a7b9Swdk #endif /* !_MIPSCO_SYSCONF_H_ */ 68