1281494Sandrew/*- 2281494Sandrew * Copyright (c) 2015 The FreeBSD Foundation 3281494Sandrew * All rights reserved. 4281494Sandrew * 5281494Sandrew * This software was developed by Andrew Turner under 6281494Sandrew * sponsorship from the FreeBSD Foundation. 7281494Sandrew * 8281494Sandrew * Redistribution and use in source and binary forms, with or without 9281494Sandrew * modification, are permitted provided that the following conditions 10281494Sandrew * are met: 11281494Sandrew * 1. Redistributions of source code must retain the above copyright 12281494Sandrew * notice, this list of conditions and the following disclaimer. 13281494Sandrew * 2. Redistributions in binary form must reproduce the above copyright 14281494Sandrew * notice, this list of conditions and the following disclaimer in the 15281494Sandrew * documentation and/or other materials provided with the distribution. 16281494Sandrew * 17281494Sandrew * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18281494Sandrew * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19281494Sandrew * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20281494Sandrew * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 21281494Sandrew * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22281494Sandrew * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23281494Sandrew * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24281494Sandrew * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25281494Sandrew * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26281494Sandrew * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27281494Sandrew * SUCH DAMAGE. 28281494Sandrew * 29281494Sandrew * $FreeBSD: releng/11.0/sys/arm64/include/vfp.h 286225 2015-08-03 11:05:02Z andrew $ 30281494Sandrew */ 31281494Sandrew 32281494Sandrew#ifndef _MACHINE_VFP_H_ 33281494Sandrew#define _MACHINE_VFP_H_ 34281494Sandrew 35281494Sandrew#ifdef _KERNEL 36281494Sandrew 37281494Sandrew#ifndef LOCORE 38281494Sandrewvoid vfp_init(void); 39281494Sandrewvoid vfp_discard(struct thread *); 40281494Sandrewvoid vfp_restore_state(void); 41286225Sandrewvoid vfp_save_state(struct thread *, struct pcb *); 42281494Sandrew#endif 43281494Sandrew 44281494Sandrew#endif 45281494Sandrew 46281494Sandrew#endif /* !_MACHINE_VFP_H_ */ 47