Resync with broadcom drivers 5.100.138.20 and utilities.
[tomato.git] / release / src-rt / include / mips74k_core.h
blob5d9022609f648da72a220a91273531060efca305
1 /*
2 * MIPS 74k definitions
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.
18 * $Id: mips74k_core.h,v 13.2 2009-08-04 06:26:22 Exp $
21 #ifndef _mips74k_core_h_
22 #define _mips74k_core_h_
24 #include <mipsinc.h>
26 #ifndef _LANGUAGE_ASSEMBLY
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 */
35 typedef 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;
51 /* Core specific status flags */
52 #define SISF_CHG_CLK_OTF_PRESENT 0x0001
54 #endif /* _LANGUAGE_ASSEMBLY */
56 #endif /* _mips74k_core_h_ */