OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [libfs/] [src/] [dosfs/] [msdos_init.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*
2
 *  Init routine for MSDOS
3
 *
4
 *  Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
5
 *  Author: Eugeny S. Mints <Eugeny.Mints@oktet.ru>
6
 *
7
 *  The license and distribution terms for this file may be
8
 *  found in the file LICENSE in this distribution or at
9
 *  http://www.OARcorp.com/rtems/license.html.
10
 *
11
 *  @(#) msdos_init.c,v 1.1 2002/02/28 20:43:50 joel Exp
12
 */
13
 
14
#if HAVE_CONFIG_H
15
#include "config.h"
16
#endif
17
 
18
#include <rtems/libio_.h>
19
#include "msdos.h"
20
 
21
rtems_filesystem_operations_table  msdos_ops = {
22
    msdos_eval_path,
23
    msdos_eval4make,
24
    NULL,                 /* msdos_link */
25
    msdos_file_rmnod,
26
    msdos_node_type,
27
    msdos_mknod,
28
    NULL,                 /* msdos_chown */
29
    msdos_free_node_info,
30
    NULL,
31
    msdos_initialize,
32
    NULL,
33
    msdos_shut_down,      /* msdos_shut_down */
34
    NULL,                 /* msdos_utime */
35
    NULL,
36
    NULL,
37
    NULL
38
};
39
 
40
/* msdos_initialize --
41
 *     MSDOS filesystem initialization
42
 *
43
 * PARAMETERS:
44
 *     temp_mt_entry - mount table entry
45
 *
46
 * RETURNS:
47
 *     RC_OK on success, or -1 if error occured (errno set apropriately).
48
 *
49
 */
50
int
51
msdos_initialize(rtems_filesystem_mount_table_entry_t *temp_mt_entry)
52
{
53
    int rc = RC_OK;
54
 
55
    rc = msdos_initialize_support(temp_mt_entry,
56
                                  &msdos_ops,
57
                                  &msdos_file_handlers,
58
                                  &msdos_dir_handlers);
59
    return rc;
60
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.