xref: /openbsd-src/sys/arch/m88k/include/reg.h (revision 434a78bab1fa1ce24a0737bf338a1eca2654a7b4)
1*434a78baSmiod /*	$OpenBSD: reg.h,v 1.3 2013/07/17 19:19:30 miod Exp $ */
23180e169Smiod /*
33180e169Smiod  * Copyright (c) 1999 Steve Murphree, Jr.
43180e169Smiod  * Copyright (c) 1996 Nivas Madhur
53180e169Smiod  * All rights reserved.
63180e169Smiod  *
73180e169Smiod  * Redistribution and use in source and binary forms, with or without
83180e169Smiod  * modification, are permitted provided that the following conditions
93180e169Smiod  * are met:
103180e169Smiod  * 1. Redistributions of source code must retain the above copyright
113180e169Smiod  *    notice, this list of conditions and the following disclaimer.
123180e169Smiod  * 2. Redistributions in binary form must reproduce the above copyright
133180e169Smiod  *    notice, this list of conditions and the following disclaimer in the
143180e169Smiod  *    documentation and/or other materials provided with the distribution.
153180e169Smiod  * 3. All advertising materials mentioning features or use of this software
163180e169Smiod  *    must display the following acknowledgement:
173180e169Smiod  *      This product includes software developed by Nivas Madhur.
183180e169Smiod  * 4. The name of the author may not be used to endorse or promote products
193180e169Smiod  *    derived from this software without specific prior written permission
203180e169Smiod  *
213180e169Smiod  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
223180e169Smiod  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
233180e169Smiod  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
243180e169Smiod  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
253180e169Smiod  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
263180e169Smiod  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
273180e169Smiod  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
283180e169Smiod  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
293180e169Smiod  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
303180e169Smiod  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
313180e169Smiod  *
323180e169Smiod  */
333180e169Smiod 
343180e169Smiod #ifndef _M88K_REG_H_
353180e169Smiod #define _M88K_REG_H_
363180e169Smiod 
373180e169Smiod struct reg {
38*434a78baSmiod 	unsigned long	r[32];
39*434a78baSmiod 	unsigned long	epsr;
40*434a78baSmiod 	unsigned long	fpsr;
41*434a78baSmiod 	unsigned long	fpcr;
42*434a78baSmiod 	unsigned long	sxip;
433180e169Smiod #define exip sxip	/* mc88110 */
44*434a78baSmiod 	unsigned long	snip;
453180e169Smiod #define enip snip	/* mc88110 */
46*434a78baSmiod 	unsigned long	sfip;
47*434a78baSmiod 	unsigned long	ssbr;
483180e169Smiod #define duap ssbr	/* mc88110 */
49*434a78baSmiod 	unsigned long	dmt0;
503180e169Smiod #define dsr dmt0	/* mc88110 */
51*434a78baSmiod 	unsigned long	dmd0;
523180e169Smiod #define dlar dmd0	/* mc88110 */
53*434a78baSmiod 	unsigned long	dma0;
543180e169Smiod #define dpar dma0	/* mc88110 */
55*434a78baSmiod 	unsigned long	dmt1;
563180e169Smiod #define isr dmt1	/* mc88110 */
57*434a78baSmiod 	unsigned long	dmd1;
583180e169Smiod #define ilar dmd1	/* mc88110 */
59*434a78baSmiod 	unsigned long	dma1;
603180e169Smiod #define ipar dma1	/* mc88110 */
61*434a78baSmiod 	unsigned long	dmt2;
623180e169Smiod #define isap dmt2	/* mc88110 */
63*434a78baSmiod 	unsigned long	dmd2;
643180e169Smiod #define dsap dmd2	/* mc88110 */
65*434a78baSmiod 	unsigned long	dma2;
663180e169Smiod #define iuap dma2	/* mc88110 */
67*434a78baSmiod 	unsigned long	fpecr;
68*434a78baSmiod 	unsigned long	fphs1;
69*434a78baSmiod 	unsigned long	fpls1;
70*434a78baSmiod 	unsigned long	fphs2;
71*434a78baSmiod 	unsigned long	fpls2;
72*434a78baSmiod 	unsigned long	fppt;
73*434a78baSmiod 	unsigned long	fprh;
74*434a78baSmiod 	unsigned long	fprl;
75*434a78baSmiod 	unsigned long	fpit;
763180e169Smiod };
773180e169Smiod 
783180e169Smiod #endif /* _M88K_REG_H_ */
79