xref: /netbsd-src/sys/arch/playstation2/include/intr.h (revision ccc024ec21c2fe372ecfe5cb93ebc81b36e2931d)
1*ccc024ecSmartin /*	$NetBSD: intr.h,v 1.12 2014/03/31 11:41:01 martin Exp $	*/
2aad6ef8bSmartin 
3aad6ef8bSmartin /*-
4aad6ef8bSmartin  * Copyright (c) 2001 The NetBSD Foundation, Inc.
5aad6ef8bSmartin  * All rights reserved.
6aad6ef8bSmartin  *
7aad6ef8bSmartin  * This code is derived from software contributed to The NetBSD Foundation
8aad6ef8bSmartin  * by Jason R. Thorpe, UCHIYAMA Yasushi.
9aad6ef8bSmartin  *
10aad6ef8bSmartin  * Redistribution and use in source and binary forms, with or without
11aad6ef8bSmartin  * modification, are permitted provided that the following conditions
12aad6ef8bSmartin  * are met:
13aad6ef8bSmartin  * 1. Redistributions of source code must retain the above copyright
14aad6ef8bSmartin  *    notice, this list of conditions and the following disclaimer.
15aad6ef8bSmartin  * 2. Redistributions in binary form must reproduce the above copyright
16aad6ef8bSmartin  *    notice, this list of conditions and the following disclaimer in the
17aad6ef8bSmartin  *    documentation and/or other materials provided with the distribution.
18aad6ef8bSmartin  *
19aad6ef8bSmartin  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20aad6ef8bSmartin  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21aad6ef8bSmartin  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22aad6ef8bSmartin  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23aad6ef8bSmartin  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24aad6ef8bSmartin  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25aad6ef8bSmartin  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26aad6ef8bSmartin  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27aad6ef8bSmartin  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28aad6ef8bSmartin  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29aad6ef8bSmartin  * POSSIBILITY OF SUCH DAMAGE.
30aad6ef8bSmartin  */
31aad6ef8bSmartin 
32aad6ef8bSmartin #ifndef _PLAYSTATION2_INTR_H_
33aad6ef8bSmartin #define _PLAYSTATION2_INTR_H_
34aad6ef8bSmartin #ifdef _KERNEL
35aad6ef8bSmartin 
36*ccc024ecSmartin #include <mips/intr.h>
37aad6ef8bSmartin 
38aad6ef8bSmartin /* R5900 EI/DI instruction */
39aad6ef8bSmartin int _intr_suspend(void);
40aad6ef8bSmartin void _intr_resume(int);
41aad6ef8bSmartin 
42aad6ef8bSmartin #endif /* _KERNEL */
43aad6ef8bSmartin #endif /* _PLAYSTATION2_INTR_H_ */
44