xref: /netbsd-src/sys/arch/rs6000/include/autoconf.h (revision f36002f244a49908fef9cba8789032bdbf48d572)
1*f36002f2Sthorpej /*	$NetBSD: autoconf.h,v 1.3 2024/03/05 14:15:35 thorpej Exp $	*/
268fe5b6fSgarbled 
368fe5b6fSgarbled /*-
468fe5b6fSgarbled  * Copyright (C) 1998	Internet Research Institute, Inc.
568fe5b6fSgarbled  * All rights reserved.
668fe5b6fSgarbled  *
768fe5b6fSgarbled  * Redistribution and use in source and binary forms, with or without
868fe5b6fSgarbled  * modification, are permitted provided that the following conditions
968fe5b6fSgarbled  * are met:
1068fe5b6fSgarbled  * 1. Redistributions of source code must retain the above copyright
1168fe5b6fSgarbled  *    notice, this list of conditions and the following disclaimer.
1268fe5b6fSgarbled  * 2. Redistributions in binary form must reproduce the above copyright
1368fe5b6fSgarbled  *    notice, this list of conditions and the following disclaimer in the
1468fe5b6fSgarbled  *    documentation and/or other materials provided with the distribution.
1568fe5b6fSgarbled  * 3. All advertising materials mentioning features or use of this software
1668fe5b6fSgarbled  *    must display the following acknowledgement:
1768fe5b6fSgarbled  *	This product includes software developed by
1868fe5b6fSgarbled  *	Internet Research Institute, Inc.
1968fe5b6fSgarbled  * 4. The name of the author may not be used to endorse or promote products
2068fe5b6fSgarbled  *    derived from this software without specific prior written permission.
2168fe5b6fSgarbled  *
2268fe5b6fSgarbled  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
2368fe5b6fSgarbled  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2468fe5b6fSgarbled  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2568fe5b6fSgarbled  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2668fe5b6fSgarbled  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2768fe5b6fSgarbled  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2868fe5b6fSgarbled  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2968fe5b6fSgarbled  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3068fe5b6fSgarbled  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3168fe5b6fSgarbled  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3268fe5b6fSgarbled  */
3368fe5b6fSgarbled 
3468fe5b6fSgarbled struct confargs {
3568fe5b6fSgarbled 	const char *ca_name;
3668fe5b6fSgarbled 	u_int ca_node;
3768fe5b6fSgarbled 	int ca_nreg;
3868fe5b6fSgarbled 	u_int *ca_reg;
3968fe5b6fSgarbled 	int ca_nintr;
4068fe5b6fSgarbled 	int *ca_intr;
4168fe5b6fSgarbled 
4268fe5b6fSgarbled 	u_int ca_baseaddr;
4368fe5b6fSgarbled 	/* bus_space_tag_t ca_tag; */
4468fe5b6fSgarbled };
4568fe5b6fSgarbled 
4668fe5b6fSgarbled #ifdef _KERNEL
474a40b014Smatt paddr_t kvtop(void *);
4868fe5b6fSgarbled #endif /* _KERNEL */
49