xref: /openbsd/sys/arch/alpha/pci/apecsvar.h (revision 3a630e3f)
1 /*	$OpenBSD: apecsvar.h,v 1.6 1997/01/24 19:57:35 niklas Exp $	*/
2 /*	$NetBSD: apecsvar.h,v 1.5 1996/11/25 03:49:36 cgd Exp $	*/
3 
4 /*
5  * Copyright (c) 1995, 1996 Carnegie-Mellon University.
6  * All rights reserved.
7  *
8  * Author: Chris G. Demetriou
9  *
10  * Permission to use, copy, modify and distribute this software and
11  * its documentation is hereby granted, provided that both the copyright
12  * notice and this permission notice appear in all copies of the
13  * software, derivative works or modified versions, and any portions
14  * thereof, and that both notices appear in supporting documentation.
15  *
16  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
17  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
18  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
19  *
20  * Carnegie Mellon requests users of this software to return to
21  *
22  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
23  *  School of Computer Science
24  *  Carnegie Mellon University
25  *  Pittsburgh PA 15213-3890
26  *
27  * any improvements or extensions that they make and grant Carnegie the
28  * rights to redistribute these changes.
29  */
30 
31 #include <dev/isa/isavar.h>
32 #include <dev/pci/pcivar.h>
33 
34 /*
35  * An APECS chipset's configuration.
36  *
37  * All of the information that the chipset-specific functions need to
38  * do their dirty work (and more!).
39  */
40 struct apecs_config {
41 	int	ac_initted;
42 
43 	int	ac_comanche_pass2;
44 	int	ac_epic_pass2;
45 	int	ac_memwidth;
46 
47 	bus_space_tag_t ac_iot, ac_memt;
48 	struct alpha_pci_chipset ac_pc;
49 
50 	u_int32_t ac_haxr1, ac_haxr2;
51 
52 	struct extent *ac_io_ex, *ac_d_mem_ex, *ac_s_mem_ex;
53 	int	ac_mallocsafe;
54 };
55 
56 struct apecs_softc {
57 	struct	device sc_dev;
58 
59 	struct	apecs_config *sc_acp;
60 };
61 
62 void	apecs_init __P((struct apecs_config *, int));
63 void	apecs_pci_init __P((pci_chipset_tag_t, void *));
64 
65 bus_space_tag_t apecs_bus_io_init __P((void *));
66 bus_space_tag_t apecs_bus_mem_init __P((void *));
67