xref: /openbsd/sys/arch/alpha/pci/apecsvar.h (revision 9339f7ab)
1*9339f7abSmiod /*	$OpenBSD: apecsvar.h,v 1.10 2006/03/16 22:32:44 miod Exp $	*/
23a630e3fSniklas /*	$NetBSD: apecsvar.h,v 1.5 1996/11/25 03:49:36 cgd Exp $	*/
334fbf6deSderaadt 
434fbf6deSderaadt /*
5417eba8cSderaadt  * Copyright (c) 1995, 1996 Carnegie-Mellon University.
634fbf6deSderaadt  * All rights reserved.
734fbf6deSderaadt  *
834fbf6deSderaadt  * Author: Chris G. Demetriou
934fbf6deSderaadt  *
1034fbf6deSderaadt  * Permission to use, copy, modify and distribute this software and
1134fbf6deSderaadt  * its documentation is hereby granted, provided that both the copyright
1234fbf6deSderaadt  * notice and this permission notice appear in all copies of the
1334fbf6deSderaadt  * software, derivative works or modified versions, and any portions
1434fbf6deSderaadt  * thereof, and that both notices appear in supporting documentation.
1534fbf6deSderaadt  *
1634fbf6deSderaadt  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
1734fbf6deSderaadt  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
1834fbf6deSderaadt  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
1934fbf6deSderaadt  *
2034fbf6deSderaadt  * Carnegie Mellon requests users of this software to return to
2134fbf6deSderaadt  *
2234fbf6deSderaadt  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
2334fbf6deSderaadt  *  School of Computer Science
2434fbf6deSderaadt  *  Carnegie Mellon University
2534fbf6deSderaadt  *  Pittsburgh PA 15213-3890
2634fbf6deSderaadt  *
2734fbf6deSderaadt  * any improvements or extensions that they make and grant Carnegie the
2834fbf6deSderaadt  * rights to redistribute these changes.
2934fbf6deSderaadt  */
3034fbf6deSderaadt 
3134fbf6deSderaadt #include <dev/isa/isavar.h>
3234fbf6deSderaadt #include <dev/pci/pcivar.h>
3313a8f984Sjason #include <alpha/pci/pci_sgmap_pte64.h>
3434fbf6deSderaadt 
3534fbf6deSderaadt /*
3634fbf6deSderaadt  * An APECS chipset's configuration.
3734fbf6deSderaadt  *
3834fbf6deSderaadt  * All of the information that the chipset-specific functions need to
3934fbf6deSderaadt  * do their dirty work (and more!).
4034fbf6deSderaadt  */
4134fbf6deSderaadt struct apecs_config {
423a630e3fSniklas 	int	ac_initted;
433a630e3fSniklas 
4434fbf6deSderaadt 	int	ac_comanche_pass2;
4534fbf6deSderaadt 	int	ac_epic_pass2;
4634fbf6deSderaadt 	int	ac_memwidth;
4734fbf6deSderaadt 
4870048494Snate 	struct alpha_bus_space ac_iot, ac_memt;
49417eba8cSderaadt 	struct alpha_pci_chipset ac_pc;
503a630e3fSniklas 
5113a8f984Sjason 	struct alpha_bus_dma_tag ac_dmat_direct;
5213a8f984Sjason 	struct alpha_bus_dma_tag ac_dmat_sgmap;
5313a8f984Sjason 
5413a8f984Sjason 	struct alpha_sgmap ac_sgmap;
5513a8f984Sjason 
563a630e3fSniklas 	u_int32_t ac_haxr1, ac_haxr2;
573a630e3fSniklas 
583a630e3fSniklas 	struct extent *ac_io_ex, *ac_d_mem_ex, *ac_s_mem_ex;
593a630e3fSniklas 	int	ac_mallocsafe;
6034fbf6deSderaadt };
6134fbf6deSderaadt 
62c4071fd1Smillert void	apecs_init(struct apecs_config *, int);
63c4071fd1Smillert void	apecs_pci_init(pci_chipset_tag_t, void *);
64c4071fd1Smillert void	apecs_dma_init(struct apecs_config *);
65e464495eSniklas 
66c4071fd1Smillert void apecs_bus_io_init(bus_space_tag_t, void *);
67c4071fd1Smillert void apecs_bus_mem_init(bus_space_tag_t, void *);
68