libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / include / sbhndmips.h
blob3fc442ee2b2b8e051ff99ef6c61a523f99339487
1 /*
2 * Broadcom SiliconBackplane MIPS definitions
4 * SB MIPS cores are custom MIPS32 processors with SiliconBackplane
5 * OCP interfaces. The CP0 processor ID is 0x00024000, where bits
6 * 23:16 mean Broadcom and bits 15:8 mean a MIPS core with an OCP
7 * interface. The core revision is stored in the SB ID register in SB
8 * configuration space.
10 * Copyright 2007, Broadcom Corporation
11 * All Rights Reserved.
13 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
14 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
15 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
16 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
18 * $Id$
21 #ifndef _sbhndmips_h_
22 #define _sbhndmips_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 PAD[2];
38 uint32 biststatus;
39 uint32 PAD[4];
40 uint32 intstatus;
41 uint32 intmask;
42 uint32 timer;
43 } mipsregs_t;
45 #endif /* _LANGUAGE_ASSEMBLY */
47 #endif /* _sbhndmips_h_ */