xref: /netbsd-src/sys/arch/powerpc/fpu/fpu_extern.h (revision 1dc18a6de26c8ba1c9770080bd95d4b5278910e6)
1*1dc18a6dSrin /*	$NetBSD: fpu_extern.h,v 1.12 2022/09/05 00:27:16 rin Exp $	*/
218b2f7e6Ssimonb 
318b2f7e6Ssimonb /*-
418b2f7e6Ssimonb  * Copyright (c) 1995 The NetBSD Foundation, Inc.
518b2f7e6Ssimonb  * All rights reserved.
618b2f7e6Ssimonb  *
718b2f7e6Ssimonb  * This code is derived from software contributed to The NetBSD Foundation
818b2f7e6Ssimonb  * by Christos Zoulas.
918b2f7e6Ssimonb  *
1018b2f7e6Ssimonb  * Redistribution and use in source and binary forms, with or without
1118b2f7e6Ssimonb  * modification, are permitted provided that the following conditions
1218b2f7e6Ssimonb  * are met:
1318b2f7e6Ssimonb  * 1. Redistributions of source code must retain the above copyright
1418b2f7e6Ssimonb  *    notice, this list of conditions and the following disclaimer.
1518b2f7e6Ssimonb  * 2. Redistributions in binary form must reproduce the above copyright
1618b2f7e6Ssimonb  *    notice, this list of conditions and the following disclaimer in the
1718b2f7e6Ssimonb  *    documentation and/or other materials provided with the distribution.
1818b2f7e6Ssimonb  *
1918b2f7e6Ssimonb  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
2018b2f7e6Ssimonb  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2118b2f7e6Ssimonb  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2218b2f7e6Ssimonb  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
2318b2f7e6Ssimonb  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2418b2f7e6Ssimonb  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2518b2f7e6Ssimonb  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2618b2f7e6Ssimonb  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2718b2f7e6Ssimonb  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2818b2f7e6Ssimonb  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2918b2f7e6Ssimonb  * POSSIBILITY OF SUCH DAMAGE.
3018b2f7e6Ssimonb  */
3118b2f7e6Ssimonb 
324923f4a4Smatt #ifndef _POWERPC_FPU_FPU_EXTERN_H_
334923f4a4Smatt #define _POWERPC_FPU_FPU_EXTERN_H_
344923f4a4Smatt 
354923f4a4Smatt #include <sys/signal.h>
364923f4a4Smatt #include <sys/siginfo.h>
374923f4a4Smatt 
3818b2f7e6Ssimonb struct trapframe;
39*1dc18a6dSrin struct fpreg;
4018b2f7e6Ssimonb 
4118b2f7e6Ssimonb /* fpu.c */
424923f4a4Smatt bool fpu_emulate(struct trapframe *, struct fpreg *, ksiginfo_t *);
4318b2f7e6Ssimonb 
444923f4a4Smatt #endif /* _POWERPC_FPU_FPU_EXTERN_H_ */
45