1 /* $OpenBSD: lcavar.h,v 1.11 2006/03/16 22:32:44 miod Exp $ */ 2 /* $NetBSD: lcavar.h,v 1.7 1997/06/06 23:54:32 thorpej 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 #include <alpha/pci/pci_sgmap_pte64.h> 34 35 /* 36 * LCA chipset's configuration. 37 * 38 * All of the information that the chipset-specific functions need to 39 * do their dirty work (and more!). 40 */ 41 struct lca_config { 42 int lc_initted; 43 44 struct alpha_bus_space lc_iot, lc_memt; 45 struct alpha_pci_chipset lc_pc; 46 47 struct alpha_bus_dma_tag lc_dmat_direct; 48 struct alpha_bus_dma_tag lc_dmat_sgmap; 49 50 struct alpha_sgmap lc_sgmap; 51 52 bus_addr_t lc_s_mem_w2_masked_base; 53 54 struct extent *lc_io_ex, *lc_d_mem_ex, *lc_s_mem_ex; 55 int lc_mallocsafe; 56 }; 57 58 void lca_init(struct lca_config *, int); 59 void lca_pci_init(pci_chipset_tag_t, void *); 60 void lca_dma_init(struct lca_config *); 61 62 void lca_bus_io_init(bus_space_tag_t, void *); 63 void lca_bus_mem_init(bus_space_tag_t, void *); 64