use the soc family name, not specific chip name(s)
[AROS.git] / arch / arm-native / soc / broadcom / 2708 / sdcard / sdcard_intern.h
bloba37589e89a390d8d0c0930d9417065d3fedc7f85
1 #ifndef _SDCARDBCM283x_INTERN_H
2 #define _SDCARDBCM283x_INTERN_H
3 /*
4 Copyright © 2013-2015, The AROS Development Team. All rights reserved.
5 $Id$
6 */
8 #include <exec/execbase.h>
9 #include <exec/libraries.h>
10 #include <exec/ports.h>
11 #include <utility/utility.h>
12 #include <exec/io.h>
13 #include <exec/errors.h>
15 #include <devices/timer.h>
17 extern IPTR __arm_periiobase;
18 #define ARM_PERIIOBASE __arm_periiobase
19 #include <hardware/bcm283x.h>
21 #include "sdcard_base.h"
23 #define FNAME_BCMSDC(x) BCM283xSD__Device__ ## x
24 #define FNAME_BCMSDCBUS(x) BCM283xSD__SDBus__ ## x
26 #define TIMEOUT 30
28 #define BCM283xSDUNIT_MAX 1
29 #define BCM283xSDCLOCK_MIN 400000
31 #define VCMB_PROPCHAN 8
33 #define VCPOWER_SDHCI 0
34 #define VCPOWER_STATE_ON (1 << 0)
35 #define VCPOWER_STATE_WAIT (1 << 1)
36 #define VCCLOCK_SDHCI 1
38 void FNAME_BCMSDCBUS(BCMLEDCtrl)(int lvl);
40 UBYTE FNAME_BCMSDCBUS(BCMMMIOReadByte)(ULONG, struct sdcard_Bus *);
41 UWORD FNAME_BCMSDCBUS(BCMMMIOReadWord)(ULONG, struct sdcard_Bus *);
42 ULONG FNAME_BCMSDCBUS(BCMMMIOReadLong)(ULONG, struct sdcard_Bus *);
44 void FNAME_BCMSDCBUS(BCMMMIOWriteByte)(ULONG, UBYTE, struct sdcard_Bus *);
45 void FNAME_BCMSDCBUS(BCMMMIOWriteWord)(ULONG, UWORD, struct sdcard_Bus *);
46 void FNAME_BCMSDCBUS(BCMMMIOWriteLong)(ULONG, ULONG, struct sdcard_Bus *);
48 #endif // _SDCARDBCM283x_INTERN_H