xref: /openbsd/sys/arch/i386/pci/piixvar.h (revision d874cce4)
1*d874cce4Sray /*	$OpenBSD: piixvar.h,v 1.6 2008/06/26 05:42:11 ray Exp $	*/
28c563d9cSmickey /*	$NetBSD: piixvar.h,v 1.1 1999/11/17 01:21:21 thorpej Exp $	*/
36661564bSmickey 
46661564bSmickey /*-
56661564bSmickey  * Copyright (c) 1999 The NetBSD Foundation, Inc.
66661564bSmickey  * All rights reserved.
76661564bSmickey  *
86661564bSmickey  * This code is derived from software contributed to The NetBSD Foundation
96661564bSmickey  * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
106661564bSmickey  * NASA Ames Research Center.
116661564bSmickey  *
126661564bSmickey  * Redistribution and use in source and binary forms, with or without
136661564bSmickey  * modification, are permitted provided that the following conditions
146661564bSmickey  * are met:
156661564bSmickey  * 1. Redistributions of source code must retain the above copyright
166661564bSmickey  *    notice, this list of conditions and the following disclaimer.
176661564bSmickey  * 2. Redistributions in binary form must reproduce the above copyright
186661564bSmickey  *    notice, this list of conditions and the following disclaimer in the
196661564bSmickey  *    documentation and/or other materials provided with the distribution.
206661564bSmickey  *
216661564bSmickey  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
226661564bSmickey  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
236661564bSmickey  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
246661564bSmickey  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
256661564bSmickey  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
266661564bSmickey  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
276661564bSmickey  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
286661564bSmickey  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
296661564bSmickey  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
306661564bSmickey  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
316661564bSmickey  * POSSIBILITY OF SUCH DAMAGE.
326661564bSmickey  */
336661564bSmickey 
346661564bSmickey /*
356661564bSmickey  * Copyright (c) 1999, by UCHIYAMA Yasushi
366661564bSmickey  * All rights reserved.
376661564bSmickey  *
386661564bSmickey  * Redistribution and use in source and binary forms, with or without
396661564bSmickey  * modification, are permitted provided that the following conditions
406661564bSmickey  * are met:
416661564bSmickey  * 1. Redistributions of source code must retain the above copyright
426661564bSmickey  *    notice, this list of conditions and the following disclaimer.
436661564bSmickey  * 2. The name of the developer may NOT be used to endorse or promote products
446661564bSmickey  *    derived from this software without specific prior written permission.
456661564bSmickey  *
466661564bSmickey  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
476661564bSmickey  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
486661564bSmickey  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
496661564bSmickey  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
506661564bSmickey  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
516661564bSmickey  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
526661564bSmickey  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
536661564bSmickey  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
546661564bSmickey  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
556661564bSmickey  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
566661564bSmickey  * SUCH DAMAGE.
576661564bSmickey  */
586661564bSmickey 
596661564bSmickey /*
606661564bSmickey  * Support for the Intel PIIX PCI-ISA bridge interrupt controller.
616661564bSmickey  */
626661564bSmickey 
63c4071fd1Smillert int	piix_get_trigger(pciintr_icu_handle_t, int, int *);
64c4071fd1Smillert int	piix_set_trigger(pciintr_icu_handle_t, int, int);
656661564bSmickey 
666661564bSmickey struct piix_handle {
676661564bSmickey 	bus_space_tag_t ph_iot;
686661564bSmickey 	bus_space_handle_t ph_elcr_ioh;
696661564bSmickey 	pci_chipset_tag_t ph_pc;
706661564bSmickey 	pcitag_t ph_tag;
716661564bSmickey };
72