summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-04-10 23:16:51 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-04-10 23:16:51 +0000
commit1ca794f2728207ce1320b07ed063aa54d2055dc7 (patch)
tree2aac9b4e40f0d975016bbe7080281808f1f3f31f /nuttx/include
parentebbd43a116d01629817101f854d80ac0597ba20d (diff)
downloadpx4-nuttx-1ca794f2728207ce1320b07ed063aa54d2055dc7.tar.gz
px4-nuttx-1ca794f2728207ce1320b07ed063aa54d2055dc7.tar.bz2
px4-nuttx-1ca794f2728207ce1320b07ed063aa54d2055dc7.zip
SAM3U needs block info
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2584 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rwxr-xr-xnuttx/include/nuttx/sdio.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/sdio.h b/nuttx/include/nuttx/sdio.h
index 15cb6a4a2..8d4861c24 100755
--- a/nuttx/include/nuttx/sdio.h
+++ b/nuttx/include/nuttx/sdio.h
@@ -422,6 +422,29 @@
#define SDIO_SENDCMD(dev,cmd,arg) ((dev)->sendcmd(dev,cmd,arg))
/****************************************************************************
+ * Name: SDIO_BLOCKLEN
+ *
+ * Description:
+ * Some hardward needs to be informed of the selected blocksize and the
+ * number of blocks. Others just work on the byte stream.
+ *
+ * Input Parameters:
+ * dev - An instance of the SDIO device interface
+ * blocklen - The selected block size.
+ * nblocks - The number of blocks to be transferred.
+ *
+ * Returned Value:
+ * None
+ *
+ ****************************************************************************/
+
+#ifdef CONFIG_SDIO_BLOCKSETUP
+# define SDIO_BLOCKSETUP(dev,blocklen,nblocks) ((dev)->blocksetup(dev,blocklen,nblocks))
+#else
+# define SDIO_BLOCKSETUP(dev,blocklen,nblocks)
+#endif
+
+/****************************************************************************
* Name: SDIO_RECVSETUP
*
* Description:
@@ -744,6 +767,7 @@ struct sdio_dev_s
/* Command/Status/Data Transfer */
void (*sendcmd)(FAR struct sdio_dev_s *dev, uint32_t cmd, uint32_t arg);
+ void (*blocksetup)(FAR struct sdio_dev_s *dev, unsigned int blocklen, unsigned int nblocks);
int (*recvsetup)(FAR struct sdio_dev_s *dev, FAR uint8_t *buffer,
size_t nbytes);
int (*sendsetup)(FAR struct sdio_dev_s *dev, FAR const uint8_t *buffer,