Tomato 1.28
[tomato.git] / release / src / include / sbsocram.h
blobd04dd9ee741aab3b0ea58708f0169de23ebe8be9
1 /*
2 * BCM47XX Sonics SiliconBackplane embedded ram core
4 * Copyright 2005, Broadcom Corporation
5 * All Rights Reserved.
6 *
7 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
8 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
9 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
10 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
12 * $Id: sbsocram.h,v 1.1.1.2 2005/03/07 07:31:12 kanki Exp $
15 #ifndef _SBSOCRAM_H
16 #define _SBSOCRAM_H
18 #define SOCRAM_MEMSIZE 0x00
19 #define SOCRAM_BISTSTAT 0x0c
22 #ifndef _LANGUAGE_ASSEMBLY
24 /* Memcsocram core registers */
25 typedef volatile struct sbsocramregs {
26 uint32 memsize;
27 uint32 biststat;
28 } sbsocramregs_t;
30 #endif
32 /* Them memory size is 2 to the power of the following
33 * base added to the contents of the memsize register.
35 #define SOCRAM_MEMSIZE_BASESHIFT 16
37 #endif /* _SBSOCRAM_H */