1 1.19 simonb /* $NetBSD: reg.h,v 1.19 2020/07/26 08:08:41 simonb Exp $ */ 2 1.4 cgd 3 1.1 deraadt /* 4 1.14 rmind * Copyright (c) 1988 University of Utah. 5 1.2 glass * Copyright (c) 1992, 1993 6 1.2 glass * The Regents of the University of California. All rights reserved. 7 1.11 agc * 8 1.11 agc * This code is derived from software contributed to Berkeley by 9 1.11 agc * the Systems Programming Group of the University of Utah Computer 10 1.11 agc * Science Department and Ralph Campbell. 11 1.11 agc * 12 1.11 agc * Redistribution and use in source and binary forms, with or without 13 1.11 agc * modification, are permitted provided that the following conditions 14 1.11 agc * are met: 15 1.11 agc * 1. Redistributions of source code must retain the above copyright 16 1.11 agc * notice, this list of conditions and the following disclaimer. 17 1.11 agc * 2. Redistributions in binary form must reproduce the above copyright 18 1.11 agc * notice, this list of conditions and the following disclaimer in the 19 1.11 agc * documentation and/or other materials provided with the distribution. 20 1.11 agc * 3. Neither the name of the University nor the names of its contributors 21 1.11 agc * may be used to endorse or promote products derived from this software 22 1.11 agc * without specific prior written permission. 23 1.11 agc * 24 1.11 agc * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 25 1.11 agc * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 26 1.11 agc * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 27 1.11 agc * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 28 1.11 agc * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 1.11 agc * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 1.11 agc * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 1.11 agc * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 1.11 agc * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 1.11 agc * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 1.11 agc * SUCH DAMAGE. 35 1.11 agc * 36 1.11 agc * from: Utah Hdr: reg.h 1.1 90/07/09 37 1.11 agc * 38 1.11 agc * @(#)reg.h 8.2 (Berkeley) 1/11/94 39 1.11 agc */ 40 1.1 deraadt 41 1.10 simonb #ifndef _MIPS_REG_H_ 42 1.19 simonb #define _MIPS_REG_H_ 43 1.2 glass 44 1.9 castor 45 1.2 glass struct reg { 46 1.16 christos __register_t r_regs[38]; 47 1.2 glass }; 48 1.7 mhitch 49 1.17 christos struct reg32 { 50 1.17 christos __register32_t r_regs[38]; 51 1.17 christos }; 52 1.17 christos 53 1.17 christos struct reg64 { 54 1.17 christos __register64_t r_regs[38]; 55 1.17 christos }; 56 1.17 christos 57 1.7 mhitch struct fpreg { 58 1.16 christos __fpregister_t r_regs[33]; 59 1.7 mhitch }; 60 1.7 mhitch 61 1.17 christos struct fpreg32 { 62 1.17 christos __fpregister32_t r_regs[33]; 63 1.17 christos }; 64 1.17 christos 65 1.17 christos struct fpreg64 { 66 1.17 christos __fpregister64_t r_regs[33]; 67 1.17 christos }; 68 1.17 christos 69 1.15 matt struct dspreg { 70 1.16 christos __register_t r_regs[8]; 71 1.15 matt }; 72 1.15 matt 73 1.17 christos struct dspreg32 { 74 1.17 christos __register32_t r_regs[8]; 75 1.17 christos }; 76 1.17 christos 77 1.17 christos struct dspreg64 { 78 1.17 christos __register64_t r_regs[8]; 79 1.17 christos }; 80 1.17 christos 81 1.13 matt struct fpreg_oabi { 82 1.13 matt int32_t r_regs[33]; 83 1.13 matt }; 84 1.13 matt 85 1.10 simonb #endif /*_MIPS_REG_H_*/ 86