1/* 2 * MIPS 74k definitions 3 * 4 * Copyright (C) 2010, Broadcom Corporation. All Rights Reserved. 5 * 6 * Permission to use, copy, modify, and/or distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 13 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 15 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 16 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 * 18 * $Id: mips74k_core.h,v 13.2 2009/08/04 06:26:22 Exp $ 19 */ 20 21#ifndef _mips74k_core_h_ 22#define _mips74k_core_h_ 23 24#include <mipsinc.h> 25 26#ifndef _LANGUAGE_ASSEMBLY 27 28/* cpp contortions to concatenate w/arg prescan */ 29#ifndef PAD 30#define _PADLINE(line) pad ## line 31#define _XSTR(line) _PADLINE(line) 32#define PAD _XSTR(__LINE__) 33#endif /* PAD */ 34 35typedef volatile struct { 36 uint32 corecontrol; 37 uint32 exceptionbase; 38 uint32 PAD[1]; 39 uint32 biststatus; 40 uint32 intstatus; 41 uint32 intmask[6]; 42 uint32 nmimask; 43 uint32 PAD[4]; 44 uint32 gpioselect; 45 uint32 gpiooutput; 46 uint32 gpioenable; 47 uint32 PAD[101]; 48 uint32 clkcontrolstatus; 49} mips74kregs_t; 50 51/* Core specific status flags */ 52#define SISF_CHG_CLK_OTF_PRESENT 0x0001 53 54#endif /* _LANGUAGE_ASSEMBLY */ 55 56#endif /* _mips74k_core_h_ */ 57