diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-11-10 18:32:51 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-11-10 18:32:51 +0000 |
commit | 02ca7fb7418873d29a9440668ab07c8733d8a82a (patch) | |
tree | 4c3c0f1dbee4d9a2e2cc7fdced2d0bd58178663b /nuttx/drivers | |
parent | e42cb3f3873bce85d42faf8828ae4d0441cf6bc7 (diff) | |
download | px4-nuttx-02ca7fb7418873d29a9440668ab07c8733d8a82a.tar.gz px4-nuttx-02ca7fb7418873d29a9440668ab07c8733d8a82a.tar.bz2 px4-nuttx-02ca7fb7418873d29a9440668ab07c8733d8a82a.zip |
Separate SDIO interface from MMCSD
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2241 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers')
-rw-r--r-- | nuttx/drivers/mmcsd/mmcsd.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/nuttx/drivers/mmcsd/mmcsd.c b/nuttx/drivers/mmcsd/mmcsd.c index bb97168cd..348c46321 100644 --- a/nuttx/drivers/mmcsd/mmcsd.c +++ b/nuttx/drivers/mmcsd/mmcsd.c @@ -49,6 +49,7 @@ #include <nuttx/fs.h> #include <nuttx/rwbuffer.h> +#include <nuttx/sdio.h> #include <nuttx/mmcsd.h> /**************************************************************************** @@ -66,14 +67,14 @@ struct mmcsd_state_s { - struct mmcsd_dev_s *dev; /* The MMCSD device bound to this instance */ + struct sdio_dev_s *dev; /* The MMCSD device bound to this instance */ ubyte crefs; /* Open references on the driver */ /* Status flags */ ubyte widebus:1; /* TRUE: Wide 4-bit bus selected */ ubyte mediachange:1; /* TRUE: Media changed since last check */ -#ifdef CONFIG_MMCSD_DMA +#ifdef CONFIG_SDIO_DMA ubyte dma:1; /* TRUE: hardware supports DMA */ #endif @@ -349,7 +350,7 @@ static int mmcsd_hwinitialize(struct mmcsd_state_s *priv) static inline void mmcsd_hwuninitialize(struct mmcsd_state_s *priv) { - MMCSD_RESET(priv->dev); + SDIO_RESET(priv->dev); } /**************************************************************************** @@ -373,7 +374,7 @@ static inline void mmcsd_hwuninitialize(struct mmcsd_state_s *priv) * ****************************************************************************/ -int mmcsd_slotinitialize(int minor, int slotno, FAR struct mmcsd_dev_s *dev) +int mmcsd_slotinitialize(int minor, int slotno, FAR struct sdio_dev_s *dev) { struct mmcsd_state_s *priv; char devname[16]; |