diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-12-26 08:15:59 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-12-26 08:15:59 -0600 |
commit | 9040b330023403db3f2f613b3bbede7906954d72 (patch) | |
tree | 3e8510b7f936c1c9ad318b4957166d2208b1f616 /nuttx/include/nuttx | |
parent | 9994c5c0d97a54ac4c068524c722bee735f00331 (diff) | |
download | nuttx-9040b330023403db3f2f613b3bbede7906954d72.tar.gz nuttx-9040b330023403db3f2f613b3bbede7906954d72.tar.bz2 nuttx-9040b330023403db3f2f613b3bbede7906954d72.zip |
More RAMTRON related fixes from David Sidrane
Diffstat (limited to 'nuttx/include/nuttx')
-rw-r--r-- | nuttx/include/nuttx/fs/ioctl.h | 10 | ||||
-rw-r--r-- | nuttx/include/nuttx/mtd/mtd.h | 14 |
2 files changed, 19 insertions, 5 deletions
diff --git a/nuttx/include/nuttx/fs/ioctl.h b/nuttx/include/nuttx/fs/ioctl.h index 43a88c673..fc904495f 100644 --- a/nuttx/include/nuttx/fs/ioctl.h +++ b/nuttx/include/nuttx/fs/ioctl.h @@ -47,7 +47,7 @@ ****************************************************************************/ /* General ioctl definitions ************************************************/ /* Each NuttX ioctl commands are uint16_t's consisting of an 8-bit type - * identifier and an 8-bit command number. All comman type identifiers are + * identifier and an 8-bit command number. All command type identifiers are * defined below: */ @@ -102,7 +102,7 @@ #define _FIOC(nr) _IOC(_FIOCBASE,nr) #define FIOC_MMAP _FIOC(0x0001) /* IN: Location to return address (void **) - * OUT: If media is directly acccesible, + * OUT: If media is directly accessible, * return (void*) base address * of file */ @@ -152,7 +152,7 @@ #define BIOC_XIPBASE _BIOC(0x0001) /* Perform mapping to random access memory. * IN: Pointer to pointer to void in * which to received the XIP base. - * OUT: If media is directly acccesible, + * OUT: If media is directly accessible, * return (void*) base address * of device memory */ #define BIOC_PROBE _BIOC(0x0002) /* Re-probe and interface; check for media @@ -189,7 +189,7 @@ * OUT: Number of bytes read or error */ #define BIOC_WRITESECT _BIOC(0x0009) /* Write to data to a logical sector * IN: Pointer to sector write data (the - * logical secor number and write + * logical sector number and write * buffer address * OUT: None (ioctl return value provides * success/failure indication). */ @@ -219,7 +219,7 @@ * with data for the MTD */ #define MTDIOC_XIPBASE _MTDIOC(0x0002) /* IN: Pointer to pointer to void in * which to received the XIP base. - * OUT: If media is directly acccesible, + * OUT: If media is directly accessible, * return (void*) base address * of device memory */ #define MTDIOC_BULKERASE _MTDIOC(0x0003) /* IN: None diff --git a/nuttx/include/nuttx/mtd/mtd.h b/nuttx/include/nuttx/mtd/mtd.h index eeb6013c2..4db86a057 100644 --- a/nuttx/include/nuttx/mtd/mtd.h +++ b/nuttx/include/nuttx/mtd/mtd.h @@ -370,6 +370,20 @@ FAR struct mtd_dev_s *m25p_initialize(FAR struct spi_dev_s *dev); FAR struct mtd_dev_s *rammtd_initialize(FAR uint8_t *start, size_t size); /**************************************************************************** + * Name: ramtron_initialize + * + * Description: + * Create and initialize a Ramtron MTD device instance. + * + * Input Parameters: + * start - Address of the beginning of the allocated RAM regions. + * size - The size in bytes of the allocated RAM region. + * + ****************************************************************************/ + +FAR struct mtd_dev_s *ramtron_initialize(FAR struct spi_dev_s *dev); + +/**************************************************************************** * Name: sst25_initialize * * Description: |