xref: /dragonfly/sys/platform/pc64/icu/icu_var.h (revision f1c74e6b)
11b505979SSepherosa Ziehau /*-
21b505979SSepherosa Ziehau  * Copyright (c) 1991 The Regents of the University of California.
31b505979SSepherosa Ziehau  * All rights reserved.
41b505979SSepherosa Ziehau  *
51b505979SSepherosa Ziehau  * Redistribution and use in source and binary forms, with or without
61b505979SSepherosa Ziehau  * modification, are permitted provided that the following conditions
71b505979SSepherosa Ziehau  * are met:
81b505979SSepherosa Ziehau  * 1. Redistributions of source code must retain the above copyright
91b505979SSepherosa Ziehau  *    notice, this list of conditions and the following disclaimer.
101b505979SSepherosa Ziehau  * 2. Redistributions in binary form must reproduce the above copyright
111b505979SSepherosa Ziehau  *    notice, this list of conditions and the following disclaimer in the
121b505979SSepherosa Ziehau  *    documentation and/or other materials provided with the distribution.
132c64e990Szrj  * 3. Neither the name of the University nor the names of its contributors
141b505979SSepherosa Ziehau  *    may be used to endorse or promote products derived from this software
151b505979SSepherosa Ziehau  *    without specific prior written permission.
161b505979SSepherosa Ziehau  *
171b505979SSepherosa Ziehau  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
181b505979SSepherosa Ziehau  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
191b505979SSepherosa Ziehau  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
201b505979SSepherosa Ziehau  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
211b505979SSepherosa Ziehau  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
221b505979SSepherosa Ziehau  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
231b505979SSepherosa Ziehau  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
241b505979SSepherosa Ziehau  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
251b505979SSepherosa Ziehau  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
261b505979SSepherosa Ziehau  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
271b505979SSepherosa Ziehau  * SUCH DAMAGE.
281b505979SSepherosa Ziehau  */
291b505979SSepherosa Ziehau 
301b505979SSepherosa Ziehau #ifndef _ARCH_ICU_ICU_VAR_H_
311b505979SSepherosa Ziehau #define	_ARCH_ICU_ICU_VAR_H_
321b505979SSepherosa Ziehau 
33*f1c74e6bSzrj #include <machine/stdint.h>
34*f1c74e6bSzrj 
35*f1c74e6bSzrj /* Same as in bus/isa/isavar.h */
36*f1c74e6bSzrj #ifndef _INTRMASK_T_DECLARED
37*f1c74e6bSzrj #define _INTRMASK_T_DECLARED
38*f1c74e6bSzrj typedef __uint32_t	intrmask_t; /* Interrupt mask (spl, xxx_imask, etc) */
391b505979SSepherosa Ziehau #endif
401b505979SSepherosa Ziehau 
411b505979SSepherosa Ziehau void		icu_definit(void);
421b505979SSepherosa Ziehau void		icu_reinit(void);
433566408bSSepherosa Ziehau void		icu_reinit_noioapic(void);
441b505979SSepherosa Ziehau 
451b505979SSepherosa Ziehau intrmask_t	icu_irq_pending(void);
461b505979SSepherosa Ziehau 
476b809ec7SSepherosa Ziehau int		icu_ioapic_extint(int, int);
486b809ec7SSepherosa Ziehau 
491b505979SSepherosa Ziehau #endif /* !_ARCH_ICU_ICU_VAR_H_ */
50