1 #ifndef _SDCARDBCM2708_INTERN_H
2 #define _SDCARDBCM2708_INTERN_H
4 Copyright © 2013-2015, The AROS Development Team. All rights reserved.
8 #include <exec/execbase.h>
9 #include <exec/libraries.h>
10 #include <exec/ports.h>
11 #include <utility/utility.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/bcm2708.h>
21 #include "sdcard_base.h"
23 #define FNAME_BCMSDC(x) BCM2708SD__Device__ ## x
24 #define FNAME_BCMSDCBUS(x) BCM2708SD__SDBus__ ## x
28 #define BCM2708SDUNIT_MAX 1
29 #define BCM2708SDCLOCK_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 // _SDCARDBCM2708_INTERN_H