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$
2582003Sjake */
2682003Sjake
2782003Sjake#ifndef	_MACHINE_CCR_H_
2882003Sjake#define	_MACHINE_CCR_H_
2982003Sjake
3088618Sjake#define	ICC_SHIFT	0
3188618Sjake#define	ICC_BITS	4
3288618Sjake#define	ICC_MASK	((1UL << ICC_BITS) - 1)
3388618Sjake#define	ICC_C		(1UL << 0)
3488618Sjake#define	ICC_V		(1UL << 1)
3588618Sjake#define	ICC_Z		(1UL << 2)
3688618Sjake#define	ICC_N		(1UL << 3)
3782003Sjake
3888618Sjake#define	XCC_SHIFT	4
3988618Sjake#define	XCC_BITS	4
4088618Sjake#define	XCC_MASK	(((1UL << XCC_BITS) - 1) << XCC_SHIFT)
4188618Sjake#define	XCC_C		(1UL << 4)
4288618Sjake#define	XCC_V		(1UL << 5)
4388618Sjake#define	XCC_Z		(1UL << 6)
4488618Sjake#define	XCC_N		(1UL << 7)
4582003Sjake
4682003Sjake#endif /* !_MACHINE_CCR_H_ */
47