Changeset 14fc3a7 in rtems


Ignore:
Timestamp:
Jun 9, 2010, 9:38:10 AM (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
c69b6fe
Parents:
74fbb7f3
Message:

2010-06-09 Sebastian Huber <sebastian.huber@…>

  • libcsupport/include/rtems/libio.h, sapi/include/confdefs.h: Added and use defines for file system types.
Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r74fbb7f3 r14fc3a7  
     12010-06-09      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * libcsupport/include/rtems/libio.h, sapi/include/confdefs.h: Added
     4        and use defines for file system types.
     5
    162010-06-09      Sebastian Huber <sebastian.huber@embedded-brains.de>
    27
  • cpukit/libcsupport/include/rtems/libio.h

    r74fbb7f3 r14fc3a7  
    5757
    5858/**
    59  * @name File system node types.
     59 * @name File System Node Types
    6060 *
    6161 * @{
     
    670670 (~ ((~RTEMS_LIBIO_PERMS_RWX) & _perm ))
    671671
     672/**
     673 * @name File System Types
     674 *
     675 * @{
     676 */
     677
     678#define RTEMS_FILESYSTEM_TYPE_IMFS "imfs"
     679#define RTEMS_FILESYSTEM_TYPE_MINIIMFS "mimfs"
     680#define RTEMS_FILESYSTEM_TYPE_DEVFS "devfs"
     681#define RTEMS_FILESYSTEM_TYPE_FTPFS "ftpfs"
     682#define RTEMS_FILESYSTEM_TYPE_TFTPFS "tftpfs"
     683#define RTEMS_FILESYSTEM_TYPE_NFS "nfs"
     684#define RTEMS_FILESYSTEM_TYPE_DOSFS "dosfs"
     685#define RTEMS_FILESYSTEM_TYPE_RFS "rfs"
     686
     687/** @} */
     688
    672689/*
    673690 *  Prototypes for filesystem
  • cpukit/sapi/include/confdefs.h

    r74fbb7f3 r14fc3a7  
    286286#if !defined(CONFIGURE_FILESYSTEM_ENTRY_miniIMFS) && \
    287287    defined(CONFIGURE_FILESYSTEM_miniIMFS)
    288 #define CONFIGURE_FILESYSTEM_ENTRY_miniIMFS { "mimfs", miniIMFS_initialize }
     288  #define CONFIGURE_FILESYSTEM_ENTRY_miniIMFS \
     289    { RTEMS_FILESYSTEM_TYPE_MINIIMFS, miniIMFS_initialize }
    289290#endif
    290291
     
    295296    defined(CONFIGURE_FILESYSTEM_IMFS)
    296297  #if defined(CONFIGURE_PIPES_ENABLED)
    297     #define CONFIGURE_FILESYSTEM_ENTRY_IMFS { "imfs", fifoIMFS_initialize }
    298   #else
    299     #define CONFIGURE_FILESYSTEM_ENTRY_IMFS { "imfs", IMFS_initialize }
     298    #define CONFIGURE_FILESYSTEM_ENTRY_IMFS \
     299      { RTEMS_FILESYSTEM_TYPE_IMFS, fifoIMFS_initialize }
     300  #else
     301    #define CONFIGURE_FILESYSTEM_ENTRY_IMFS \
     302      { RTEMS_FILESYSTEM_TYPE_IMFS, IMFS_initialize }
    300303  #endif
    301304#endif
     
    307310    defined(CONFIGURE_FILESYSTEM_DEVFS)
    308311#include <rtems/devfs.h>
    309 #define CONFIGURE_FILESYSTEM_ENTRY_DEVFS { "devfs", devFS_initialize }
     312  #define CONFIGURE_FILESYSTEM_ENTRY_DEVFS \
     313    { RTEMS_FILESYSTEM_TYPE_DEVFS, devFS_initialize }
    310314#endif
    311315
     
    317321      defined(CONFIGURE_FILESYSTEM_FTPFS)
    318322    #include <rtems/ftpfs.h>
    319     #define CONFIGURE_FILESYSTEM_ENTRY_FTPFS { "ftpfs", rtems_ftpfs_initialize }
     323    #define CONFIGURE_FILESYSTEM_ENTRY_FTPFS \
     324      { RTEMS_FILESYSTEM_TYPE_FTPFS, rtems_ftpfs_initialize }
    320325  #endif
    321326
     
    326331      defined(CONFIGURE_FILESYSTEM_TFTPFS)
    327332    #include <rtems/tftp.h>
    328     #define CONFIGURE_FILESYSTEM_ENTRY_TFTPFS { "tftpfs", rtems_tftpfs_initialize }
     333    #define CONFIGURE_FILESYSTEM_ENTRY_TFTPFS \
     334      { RTEMS_FILESYSTEM_TYPE_TFTPFS, rtems_tftpfs_initialize }
    329335  #endif
    330336
     
    335341      defined(CONFIGURE_FILESYSTEM_NFSFS)
    336342    #include <librtemsNfs.h>
    337     #define CONFIGURE_FILESYSTEM_ENTRY_NFSFS { "nfs", rtems_nfsfs_initialize }
     343    #define CONFIGURE_FILESYSTEM_ENTRY_NFSFS \
     344      { RTEMS_FILESYSTEM_TYPE_NFS, rtems_nfsfs_initialize }
    338345  #endif
    339346#endif
     
    345352    defined(CONFIGURE_FILESYSTEM_DOSFS)
    346353  #include <rtems/dosfs.h>
    347   #define CONFIGURE_FILESYSTEM_ENTRY_DOSFS { "dosfs", rtems_dosfs_initialize }
     354  #define CONFIGURE_FILESYSTEM_ENTRY_DOSFS \
     355    { RTEMS_FILESYSTEM_TYPE_DOSFS, rtems_dosfs_initialize }
    348356#endif
    349357
     
    354362    defined(CONFIGURE_FILESYSTEM_RFS)
    355363  #include <rtems/rtems-rfs.h>
    356   #define CONFIGURE_FILESYSTEM_ENTRY_RFS { "rfs", rtems_rfs_rtems_initialise }
     364  #define CONFIGURE_FILESYSTEM_ENTRY_RFS \
     365    { RTEMS_FILESYSTEM_TYPE_RFS, rtems_rfs_rtems_initialise }
    357366#endif
    358367
     
    436445    const rtems_filesystem_mount_table_t configuration_mount_table = {
    437446      #if defined(CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM)
    438         "devfs",
     447        RTEMS_FILESYSTEM_TYPE_DEVFS,
    439448      #elif defined(CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM)
    440         "mimfs",
     449        RTEMS_FILESYSTEM_TYPE_MINIIMFS,
    441450      #else  /* using IMFS as base filesystem */
    442         "imfs",
     451        RTEMS_FILESYSTEM_TYPE_IMFS,
    443452      #endif
    444453      RTEMS_FILESYSTEM_READ_WRITE,
Note: See TracChangeset for help on using the changeset viewer.