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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [libblock/] [include/] [rtems/] [ramdisk.h] - Blame information for rev 1780

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/* ramdisk.c -- RAM disk block device implementation
2
 *
3
 * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
4
 * Author: Victor V. Vengerov <vvv@oktet.ru>
5
 *
6
 * @(#) ramdisk.h,v 1.1 2002/02/28 20:39:54 joel Exp
7
 */
8
 
9
#ifndef __RTEMS_LIBBLOCK_RAMDISK_H__
10
#define __RTEMS_LIBBLOCK_RAMDISK_H__
11
 
12
#ifdef __cplusplus
13
extern "C" {
14
#endif
15
 
16
#include <rtems.h>
17
 
18
#include "rtems/blkdev.h"
19
 
20
/* RAM disk configuration table entry */
21
typedef struct rtems_ramdisk_config {
22
    int   block_size; /* RAM disk block size */
23
    int   block_num;  /* Number of blocks on this RAM disk */
24
    void *location;   /* RAM disk permanent location (out of RTEMS controlled
25
                         memory), or NULL if RAM disk memory should be
26
                         allocated dynamically */
27
} rtems_ramdisk_config;
28
 
29
/* If application want to use RAM disk, it should specify configuration of
30
 * available RAM disks.
31
 * The following is definitions for RAM disk configuration table
32
 */
33
extern rtems_ramdisk_config rtems_ramdisk_configuration[];
34
extern int rtems_ramdisk_configuration_size;
35
 
36
/* ramdisk_initialize --
37
 *     RAM disk driver initialization entry point.
38
 */
39
rtems_device_driver
40
ramdisk_initialize(
41
    rtems_device_major_number major,
42
    rtems_device_minor_number minor,
43
    void *arg);
44
 
45
#define RAMDISK_DRIVER_TABLE_ENTRY \
46
    { ramdisk_initialize, GENERIC_BLOCK_DEVICE_DRIVER_ENTRIES }
47
 
48
#ifdef __cplusplus
49
}
50
#endif
51
 
52
#endif

powered by: WebSVN 2.1.0

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