1188860Snwhitehorn/*-
2188860Snwhitehorn * Copyright (c) 2008 Nathan Whitehorn
3188860Snwhitehorn * All rights reserved
4188860Snwhitehorn *
5188860Snwhitehorn * Redistribution and use in source and binary forms, with or without
6188860Snwhitehorn * modification, are permitted provided that the following conditions
7188860Snwhitehorn * are met:
8188860Snwhitehorn * 1. Redistributions of source code must retain the above copyright
9188860Snwhitehorn *    notice, this list of conditions and the following disclaimer.
10188860Snwhitehorn * 2. Redistributions in binary form must reproduce the above copyright
11188860Snwhitehorn *    notice, this list of conditions and the following disclaimer in the
12188860Snwhitehorn *    documentation and/or other materials provided with the distribution.
13188860Snwhitehorn *
14188860Snwhitehorn * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15188860Snwhitehorn * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16188860Snwhitehorn * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17188860Snwhitehorn * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18188860Snwhitehorn * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19188860Snwhitehorn * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20188860Snwhitehorn * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21188860Snwhitehorn * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22188860Snwhitehorn * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23188860Snwhitehorn * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24188860Snwhitehorn * SUCH DAMAGE.
25188860Snwhitehorn *
26188860Snwhitehorn * $FreeBSD$
27188860Snwhitehorn */
28188860Snwhitehorn
29188860Snwhitehorn#ifndef	_MACHINE_ALTIVEC_H_
30188860Snwhitehorn#define	_MACHINE_ALTIVEC_H_
31188860Snwhitehorn
32213456Snwhitehorn#define ALTIVEC_VSCR_NJ		0x00010000	/* Enable non-Java mode */
33213456Snwhitehorn#define ALTIVEC_VSCR_SAT	0x00000001	/* Saturation status bit */
34213456Snwhitehorn
35188860Snwhitehornvoid    enable_vec(struct thread *);
36188860Snwhitehornvoid    save_vec(struct thread *);
37188860Snwhitehorn
38188860Snwhitehorn#endif	/* _MACHINE_ALTIVEC_H_ */
39188860Snwhitehorn
40