Annotation of sys/arch/alpha/pci/apecsvar.h, Revision 1.1.1.1
1.1 nbrk 1: /* $OpenBSD: apecsvar.h,v 1.10 2006/03/16 22:32:44 miod 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: #include <alpha/pci/pci_sgmap_pte64.h>
34:
35: /*
36: * An APECS 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 apecs_config {
42: int ac_initted;
43:
44: int ac_comanche_pass2;
45: int ac_epic_pass2;
46: int ac_memwidth;
47:
48: struct alpha_bus_space ac_iot, ac_memt;
49: struct alpha_pci_chipset ac_pc;
50:
51: struct alpha_bus_dma_tag ac_dmat_direct;
52: struct alpha_bus_dma_tag ac_dmat_sgmap;
53:
54: struct alpha_sgmap ac_sgmap;
55:
56: u_int32_t ac_haxr1, ac_haxr2;
57:
58: struct extent *ac_io_ex, *ac_d_mem_ex, *ac_s_mem_ex;
59: int ac_mallocsafe;
60: };
61:
62: void apecs_init(struct apecs_config *, int);
63: void apecs_pci_init(pci_chipset_tag_t, void *);
64: void apecs_dma_init(struct apecs_config *);
65:
66: void apecs_bus_io_init(bus_space_tag_t, void *);
67: void apecs_bus_mem_init(bus_space_tag_t, void *);
CVSweb