lsu.h revision 82003
182003Sjake/*-
282003Sjake * Copyright 2001 by Thomas Moestl <tmm@FreeBSD.org>.  All rights reserved.
382003Sjake *
482003Sjake * Redistribution and use in source and binary forms, with or without
582003Sjake * modification, are permitted provided that the following conditions
682003Sjake * are met:
782003Sjake * 1. Redistributions of source code must retain the above copyright
882003Sjake *    notice, this list of conditions and the following disclaimer.
982003Sjake * 2. Redistributions in binary form must reproduce the above copyright
1082003Sjake *    notice, this list of conditions and the following disclaimer in the
1182003Sjake *    documentation and/or other materials provided with the distribution.
1282003Sjake *
1382003Sjake * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1482003Sjake * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1582003Sjake * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
1682003Sjake * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
1782003Sjake * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1882003Sjake * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1982003Sjake * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
2082003Sjake * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
2182003Sjake * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
2282003Sjake * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2382003Sjake *
2482003Sjake * $FreeBSD: head/sys/sparc64/include/lsu.h 82003 2001-08-20 23:34:46Z jake $
2582003Sjake */
2682003Sjake
2782003Sjake#ifndef	_MACHINE_LSU_H_
2882003Sjake#define	_MACHINE_LSU_H_
2982003Sjake
3082003Sjake#define	LSU_IC		(1UL << 0)
3182003Sjake#define	LSU_DC		(1UL << 1)
3282003Sjake#define	LSU_IM		(1UL << 2)
3382003Sjake#define	LSU_DM		(1UL << 3)
3482003Sjake
3582003Sjake#define	LSU_FM_SHIFT	4
3682003Sjake#define	LSU_FM_BITS	16
3782003Sjake#define	LSU_FM_MASK	(((1UL << LSU_FM_BITS) - 1) << LSU_FM_SHIFT)
3882003Sjake
3982003Sjake#define LSU_VM_SHIFT	25
4082003Sjake#define	LSU_VM_BITS	8
4182003Sjake#define	LSU_VM_MASK	(((1UL << LSU_VM_BITS) - 1) << LSU_VM_SHIFT)
4282003Sjake
4382003Sjake#define	LSU_PM_SHIFT	33
4482003Sjake#define	LSU_PM_BITS	8
4582003Sjake#define	LSU_PM_MASK	(((1UL << LSU_PM_BITS) - 1) << LSU_PM_SHIFT)
4682003Sjake
4782003Sjake#define	LSU_VW		(1UL << 21)
4882003Sjake#define	LSU_VR		(1UL << 22)
4982003Sjake#define	LSU_PW		(1UL << 23)
5082003Sjake#define	LSU_PR		(1UL << 24)
5182003Sjake
5282003Sjake#endif	/* _MACHINE_LSU_H_ */
53