| /******************************************************************************** |
| * Marvell GPL License Option |
| * |
| * If you received this File from Marvell, you may opt to use, redistribute and/or |
| * modify this File in accordance with the terms and conditions of the General |
| * Public License Version 2, June 1991 (the "GPL License"), a copy of which is |
| * available along with the File in the license.txt file or by writing to the Free |
| * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 or |
| * on the worldwide web at http://www.gnu.org/licenses/gpl.txt. |
| * |
| * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE IMPLIED |
| * WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY |
| * DISCLAIMED. The GPL License provides additional details about this warranty |
| * disclaimer. |
| ******************************************************************************/ |
| |
| ////// |
| /// don't edit! auto-generated by docc: apbPerif.h |
| //////////////////////////////////////////////////////////// |
| #ifndef apbPerif_h |
| #define apbPerif_h (){} |
| |
| |
| #include "ctypes.h" |
| |
| #pragma pack(1) |
| #ifdef __cplusplus |
| extern "C" { |
| #endif |
| |
| #ifndef _DOCC_H_BITOPS_ |
| #define _DOCC_H_BITOPS_ (){} |
| |
| #define _bSETMASK_(b) ((b)<32 ? (1<<((b)&31)) : 0) |
| #define _NSETMASK_(msb,lsb) (_bSETMASK_((msb)+1)-_bSETMASK_(lsb)) |
| #define _bCLRMASK_(b) (~_bSETMASK_(b)) |
| #define _NCLRMASK_(msb,lsb) (~_NSETMASK_(msb,lsb)) |
| #define _BFGET_(r,msb,lsb) (_NSETMASK_((msb)-(lsb),0)&((r)>>(lsb))) |
| #define _BFSET_(r,msb,lsb,v) do{ (r)&=_NCLRMASK_(msb,lsb); (r)|=_NSETMASK_(msb,lsb)&((v)<<(lsb)); }while(0) |
| |
| #endif |
| |
| |
| |
| ////// |
| /// |
| /// $INTERFACE SPIMAP (4,4) |
| /// # # ---------------------------------------------------------- |
| /// @ 0x00000 (W-) |
| /// # # Stuffing bytes... |
| /// %% 524256 |
| /// @ 0x0FFFC ADRLAST (P) |
| /// %unsigned 32 Entry |
| /// # # ---------------------------------------------------------- |
| /// $ENDOFINTERFACE # size: 65536B, bits: 32b, padding: 0B |
| //////////////////////////////////////////////////////////// |
| #ifndef h_SPIMAP |
| #define h_SPIMAP (){} |
| |
| #define RA_SPIMAP_ADRLAST 0xFFFC |
| |
| #define BA_SPIMAP_ADRLAST_Entry 0xFFFC |
| #define B16SPIMAP_ADRLAST_Entry 0xFFFC |
| #define LSb32SPIMAP_ADRLAST_Entry 0 |
| #define LSb16SPIMAP_ADRLAST_Entry 0 |
| #define bSPIMAP_ADRLAST_Entry 32 |
| #define MSK32SPIMAP_ADRLAST_Entry 0xFFFFFFFF |
| /////////////////////////////////////////////////////////// |
| |
| typedef struct SIE_SPIMAP { |
| /////////////////////////////////////////////////////////// |
| UNSG8 RSVDx0 [65532]; |
| /////////////////////////////////////////////////////////// |
| #define GET32SPIMAP_ADRLAST_Entry(r32) _BFGET_(r32,31, 0) |
| #define SET32SPIMAP_ADRLAST_Entry(r32,v) _BFSET_(r32,31, 0,v) |
| |
| #define w32SPIMAP_ADRLAST {\ |
| UNSG32 uADRLAST_Entry : 32;\ |
| } |
| union { UNSG32 u32SPIMAP_ADRLAST; |
| struct w32SPIMAP_ADRLAST; |
| }; |
| /////////////////////////////////////////////////////////// |
| } SIE_SPIMAP; |
| |
| typedef union T32SPIMAP_ADRLAST |
| { UNSG32 u32; |
| struct w32SPIMAP_ADRLAST; |
| } T32SPIMAP_ADRLAST; |
| /////////////////////////////////////////////////////////// |
| |
| typedef union TSPIMAP_ADRLAST |
| { UNSG32 u32[1]; |
| struct { |
| struct w32SPIMAP_ADRLAST; |
| }; |
| } TSPIMAP_ADRLAST; |
| |
| /////////////////////////////////////////////////////////// |
| SIGN32 SPIMAP_drvrd(SIE_SPIMAP *p, UNSG32 base, SIGN32 mem, SIGN32 tst); |
| SIGN32 SPIMAP_drvwr(SIE_SPIMAP *p, UNSG32 base, SIGN32 mem, SIGN32 tst, UNSG32 *pcmd); |
| void SPIMAP_reset(SIE_SPIMAP *p); |
| SIGN32 SPIMAP_cmp (SIE_SPIMAP *p, SIE_SPIMAP *pie, char *pfx, void *hLOG, SIGN32 mem, SIGN32 tst); |
| #define SPIMAP_check(p,pie,pfx,hLOG) SPIMAP_cmp(p,pie,pfx,(void*)(hLOG),0,0) |
| #define SPIMAP_print(p, pfx,hLOG) SPIMAP_cmp(p,0, pfx,(void*)(hLOG),0,0) |
| |
| #endif |
| ////// |
| /// ENDOFINTERFACE: SPIMAP |
| //////////////////////////////////////////////////////////// |
| |
| ////// |
| /// |
| /// $INTERFACE AHB2SPI biu (4,4) |
| /// ### |
| /// * Register specification of interface semaphore response array |
| /// ### |
| /// # # ---------------------------------------------------------- |
| /// @ 0x00000 FLASH (P) |
| /// # 0x00000 SPI |
| /// $SPIMAP SPI MEM |
| /// ### |
| /// * 16b access addres: see below |
| /// ### |
| /// # # ---------------------------------------------------------- |
| /// $ENDOFINTERFACE # size: 65536B, bits: 32b, padding: 0B |
| //////////////////////////////////////////////////////////// |
| #ifndef h_AHB2SPI |
| #define h_AHB2SPI (){} |
| |
| #define RA_AHB2SPI_FLASH 0x0000 |
| #define RA_AHB2SPI_SPI 0x0000 |
| /////////////////////////////////////////////////////////// |
| |
| typedef struct SIE_AHB2SPI { |
| /////////////////////////////////////////////////////////// |
| SIE_SPIMAP ie_SPI; |
| /////////////////////////////////////////////////////////// |
| } SIE_AHB2SPI; |
| |
| /////////////////////////////////////////////////////////// |
| SIGN32 AHB2SPI_drvrd(SIE_AHB2SPI *p, UNSG32 base, SIGN32 mem, SIGN32 tst); |
| SIGN32 AHB2SPI_drvwr(SIE_AHB2SPI *p, UNSG32 base, SIGN32 mem, SIGN32 tst, UNSG32 *pcmd); |
| void AHB2SPI_reset(SIE_AHB2SPI *p); |
| SIGN32 AHB2SPI_cmp (SIE_AHB2SPI *p, SIE_AHB2SPI *pie, char *pfx, void *hLOG, SIGN32 mem, SIGN32 tst); |
| #define AHB2SPI_check(p,pie,pfx,hLOG) AHB2SPI_cmp(p,pie,pfx,(void*)(hLOG),0,0) |
| #define AHB2SPI_print(p, pfx,hLOG) AHB2SPI_cmp(p,0, pfx,(void*)(hLOG),0,0) |
| |
| #endif |
| ////// |
| /// ENDOFINTERFACE: AHB2SPI |
| //////////////////////////////////////////////////////////// |
| |
| |
| |
| #ifdef __cplusplus |
| } |
| #endif |
| #pragma pack() |
| |
| #endif |
| ////// |
| /// ENDOFFILE: apbPerif.h |
| //////////////////////////////////////////////////////////// |
| |