diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-09-06 04:25:51 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-09-06 04:25:51 +0000 |
commit | d7001e476b18811413c08ba772b2ecbed297e4e5 (patch) | |
tree | b53779c3339237a4e87dd9ab9d27e86eaace48be /cpukit/libblock/include/rtems/ramdisk.h | |
parent | 2008-09-06 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-d7001e476b18811413c08ba772b2ecbed297e4e5.tar.bz2 |
Convert to Unix file format.
Diffstat (limited to 'cpukit/libblock/include/rtems/ramdisk.h')
-rw-r--r-- | cpukit/libblock/include/rtems/ramdisk.h | 112 |
1 files changed, 56 insertions, 56 deletions
diff --git a/cpukit/libblock/include/rtems/ramdisk.h b/cpukit/libblock/include/rtems/ramdisk.h index 8fcc442d32..efe9c50a8c 100644 --- a/cpukit/libblock/include/rtems/ramdisk.h +++ b/cpukit/libblock/include/rtems/ramdisk.h @@ -1,56 +1,56 @@ -/**
- * @file rtems/ramdisk.h
- * RAM disk block device implementation
- */
-
-/*
- * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
- * Author: Victor V. Vengerov <vvv@oktet.ru>
- *
- * @(#) $Id$
- */
-
-#ifndef _RTEMS_RAMDISK_H
-#define _RTEMS_RAMDISK_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <rtems.h>
-
-#include "rtems/blkdev.h"
-
-/* RAM disk configuration table entry */
-typedef struct rtems_ramdisk_config {
- int block_size; /* RAM disk block size */
- int block_num; /* Number of blocks on this RAM disk */
- void *location; /* RAM disk permanent location (out of RTEMS controlled
- memory), or NULL if RAM disk memory should be
- allocated dynamically */
-} rtems_ramdisk_config;
-
-/* If application want to use RAM disk, it should specify configuration of
- * available RAM disks.
- * The following is definitions for RAM disk configuration table
- */
-extern rtems_ramdisk_config rtems_ramdisk_configuration[];
-extern size_t rtems_ramdisk_configuration_size;
-
-/* ramdisk_initialize --
- * RAM disk driver initialization entry point.
- */
-rtems_device_driver
-ramdisk_initialize(
- rtems_device_major_number major,
- rtems_device_minor_number minor,
- void *arg);
-
-#define RAMDISK_DRIVER_TABLE_ENTRY \
- { ramdisk_initialize, RTEMS_GENERIC_BLOCK_DEVICE_DRIVER_ENTRIES }
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
+/** + * @file rtems/ramdisk.h + * RAM disk block device implementation + */ + +/* + * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia + * Author: Victor V. Vengerov <vvv@oktet.ru> + * + * @(#) $Id$ + */ + +#ifndef _RTEMS_RAMDISK_H +#define _RTEMS_RAMDISK_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include <rtems.h> + +#include "rtems/blkdev.h" + +/* RAM disk configuration table entry */ +typedef struct rtems_ramdisk_config { + int block_size; /* RAM disk block size */ + int block_num; /* Number of blocks on this RAM disk */ + void *location; /* RAM disk permanent location (out of RTEMS controlled + memory), or NULL if RAM disk memory should be + allocated dynamically */ +} rtems_ramdisk_config; + +/* If application want to use RAM disk, it should specify configuration of + * available RAM disks. + * The following is definitions for RAM disk configuration table + */ +extern rtems_ramdisk_config rtems_ramdisk_configuration[]; +extern size_t rtems_ramdisk_configuration_size; + +/* ramdisk_initialize -- + * RAM disk driver initialization entry point. + */ +rtems_device_driver +ramdisk_initialize( + rtems_device_major_number major, + rtems_device_minor_number minor, + void *arg); + +#define RAMDISK_DRIVER_TABLE_ENTRY \ + { ramdisk_initialize, RTEMS_GENERIC_BLOCK_DEVICE_DRIVER_ENTRIES } + +#ifdef __cplusplus +} +#endif + +#endif |