lcavar.h revision 1.6
1/*	$OpenBSD: lcavar.h,v 1.6 1997/01/24 19:57:46 niklas Exp $	*/
2/*	$NetBSD: lcavar.h,v 1.5 1996/11/25 03:49:38 cgd Exp $	*/
3
4/*
5 * Copyright (c) 1995, 1996 Carnegie-Mellon University.
6 * All rights reserved.
7 *
8 * Author: Jeffrey Hsu
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 * LCA chipset's configuration.
36 *
37 * All of the information that the chipset-specific functions need to
38 * do their dirty work (and more!).
39 */
40struct lca_config {
41	int	lc_initted;
42
43	bus_space_tag_t lc_iot, lc_memt;
44	struct alpha_pci_chipset lc_pc;
45
46	bus_addr_t lc_s_mem_w2_masked_base;
47
48	struct extent *lc_io_ex, *lc_d_mem_ex, *lc_s_mem_ex;
49	int	lc_mallocsafe;
50};
51
52struct lca_softc {
53	struct	device sc_dev;
54
55	struct	lca_config *sc_lcp;
56};
57
58void	lca_init __P((struct lca_config *, int));
59void	lca_pci_init __P((pci_chipset_tag_t, void *));
60
61bus_space_tag_t lca_bus_io_init __P((void *));
62bus_space_tag_t lca_bus_mem_init __P((void *));
63