Home | History | Annotate | Line # | Download | only in include
platform.h revision 1.1.2.1
      1  1.1.2.1  nathanw /*	$NetBSD: platform.h,v 1.1.2.1 2001/06/21 19:18:27 nathanw Exp $	*/
      2      1.1     soda /*	NetBSD: cpuconf.h,v 1.12 2000/06/08 03:10:06 thorpej Exp 	*/
      3      1.1     soda 
      4      1.1     soda /*
      5      1.1     soda  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
      6      1.1     soda  *
      7      1.1     soda  * Redistribution and use in source and binary forms, with or without
      8      1.1     soda  * modification, are permitted provided that the following conditions
      9      1.1     soda  * are met:
     10      1.1     soda  * 1. Redistributions of source code must retain the above copyright
     11      1.1     soda  *    notice, this list of conditions and the following disclaimer.
     12      1.1     soda  * 2. Redistributions in binary form must reproduce the above copyright
     13      1.1     soda  *    notice, this list of conditions and the following disclaimer in the
     14      1.1     soda  *    documentation and/or other materials provided with the distribution.
     15      1.1     soda  * 3. All advertising materials mentioning features or use of this software
     16      1.1     soda  *    must display the following acknowledgement:
     17      1.1     soda  *      This product includes software developed by Christopher G. Demetriou
     18      1.1     soda  *	for the NetBSD Project.
     19      1.1     soda  * 4. The name of the author may not be used to endorse or promote products
     20      1.1     soda  *    derived from this software without specific prior written permission
     21      1.1     soda  *
     22      1.1     soda  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     23      1.1     soda  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     24      1.1     soda  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     25      1.1     soda  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     26      1.1     soda  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     27      1.1     soda  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     28      1.1     soda  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     29      1.1     soda  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     30      1.1     soda  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     31      1.1     soda  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     32      1.1     soda  */
     33      1.1     soda 
     34      1.1     soda struct platform {
     35      1.1     soda 	/*
     36      1.1     soda 	 * Platform Information.
     37      1.1     soda 	 */
     38      1.1     soda 	const char	*system_id;	/* from root of configuration tree */
     39      1.1     soda 	const char	*vendor_id;	/* vendor id from GetSystemId() */
     40      1.1     soda 	const char	*variant;	/* Variant Name */
     41      1.1     soda 	const char	*model;		/* Model Name */
     42      1.1     soda 	const char	*vendor;	/* Vendor Name */
     43      1.1     soda 	int		clock;		/* CPU clock [MHz] */
     44      1.1     soda 
     45      1.1     soda 	char	**mainbusdevs;
     46      1.1     soda 
     47      1.1     soda 	/*
     48      1.1     soda 	 * Platform Specific Function Hooks
     49      1.1     soda 	 */
     50      1.1     soda 	int	(*match) __P((struct platform *));
     51      1.1     soda 	void	(*init) __P((void));
     52      1.1     soda 	void	(*cons_init) __P((void));
     53      1.1     soda 	void	(*reset) __P((void));
     54      1.1     soda 	void	(*set_intr) __P((int,
     55      1.1     soda 		    int (*) __P((u_int, struct clockframe *)), int));
     56      1.1     soda };
     57      1.1     soda 
     58      1.1     soda int ident_platform __P((void));
     59      1.1     soda int platform_generic_match __P((struct platform *));
     60      1.1     soda void platform_nop __P((void));
     61      1.1     soda 
     62      1.1     soda extern struct platform *platform;
     63      1.1     soda 
     64      1.1     soda extern struct platform *const plattab[];
     65      1.1     soda extern const int nplattab;
     66      1.1     soda 
     67      1.1     soda /*
     68      1.1     soda  * supported platforms, sorted by alphabetic order of p_*.c filename.
     69      1.1     soda  */
     70      1.1     soda extern struct platform platform_acer_pica_61;
     71      1.1     soda extern struct platform platform_desktech_arcstation_i;
     72      1.1     soda extern struct platform platform_desktech_tyne;
     73      1.1     soda extern struct platform platform_microsoft_jazz;
     74      1.1     soda extern struct platform platform_nec_jc94;
     75      1.1     soda extern struct platform platform_nec_r94;
     76      1.1     soda extern struct platform platform_nec_r96;
     77      1.1     soda extern struct platform platform_nec_riscserver_2200;
     78      1.1     soda extern struct platform platform_nec_rax94;
     79      1.1     soda extern struct platform platform_nec_rd94;
     80      1.1     soda extern struct platform platform_sni_rm200pci;
     81      1.1     soda 
     82      1.1     soda void c_isa_init __P((void));
     83      1.1     soda void c_isa_cons_init __P((void));
     84      1.1     soda 
     85      1.1     soda extern char *c_jazz_eisa_mainbusdevs[];
     86      1.1     soda void c_jazz_eisa_init __P((void));
     87      1.1     soda void c_jazz_eisa_cons_init __P((void));
     88      1.1     soda 
     89      1.1     soda void c_magnum_set_intr __P((int, int (*) __P((u_int, struct clockframe *)),
     90      1.1     soda     int));
     91      1.1     soda void c_magnum_init __P((void));
     92      1.1     soda 
     93      1.1     soda void c_nec_eisa_init __P((void));
     94      1.1     soda 
     95      1.1     soda void c_nec_jazz_set_intr __P((int, int (*) __P((u_int, struct clockframe *)),
     96      1.1     soda     int));
     97      1.1     soda void c_nec_jazz_init __P((void));
     98      1.1     soda 
     99      1.1     soda extern char *c_nec_pci_mainbusdevs[];
    100      1.1     soda void c_nec_pci_init __P((void));
    101      1.1     soda void c_nec_pci_cons_init __P((void));
    102      1.1     soda 
    103      1.1     soda 
    104