forked from Imagelibrary/rtems
2009-05-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
* Doxygen.in: Fixed project name. Added project number. Enabled auto brief. Disabled include graphs. * include/rtems/irq-extension.h, libblock/include/rtems/bdpart.h, libblock/include/rtems/bdbuf.h, libblock/include/rtems/bdpart.h, libblock/include/rtems/blkdev.h, libblock/include/rtems/diskdevs.h, libblock/include/rtems/ramdisk.h, libblock/src/bdbuf.c, libblock/src/blkdev.c, libblock/src/diskdevs.c, libblock/src/ramdisk.c: Documentation. * libblock/src/bdpart.c: Documentation. Fixed NULL pointer access.
This commit is contained in:
@@ -17,13 +17,13 @@
|
|||||||
# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
|
# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
|
||||||
# by quotes) that should identify the project.
|
# by quotes) that should identify the project.
|
||||||
|
|
||||||
PROJECT_NAME = RTEMS CPU Kit including SuperCore
|
PROJECT_NAME = "RTEMS CPU Kit with SuperCore"
|
||||||
|
|
||||||
# The PROJECT_NUMBER tag can be used to enter a project or revision number.
|
# The PROJECT_NUMBER tag can be used to enter a project or revision number.
|
||||||
# This could be handy for archiving the generated documentation or
|
# This could be handy for archiving the generated documentation or
|
||||||
# if some version control system is used.
|
# if some version control system is used.
|
||||||
|
|
||||||
PROJECT_NUMBER =
|
PROJECT_NUMBER = @PACKAGE_VERSION@
|
||||||
|
|
||||||
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
|
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
|
||||||
# base path where the generated documentation will be put.
|
# base path where the generated documentation will be put.
|
||||||
@@ -105,7 +105,15 @@ SHORT_NAMES = NO
|
|||||||
# comments will behave just like the Qt-style comments (thus requiring an
|
# comments will behave just like the Qt-style comments (thus requiring an
|
||||||
# explict @brief command for a brief description.
|
# explict @brief command for a brief description.
|
||||||
|
|
||||||
JAVADOC_AUTOBRIEF = NO
|
JAVADOC_AUTOBRIEF = YES
|
||||||
|
|
||||||
|
# If the QT_AUTOBRIEF tag is set to YES then Doxygen will
|
||||||
|
# interpret the first line (until the first dot) of a Qt-style
|
||||||
|
# comment as the brief description. If set to NO, the comments
|
||||||
|
# will behave just like regular Qt-style comments (thus requiring
|
||||||
|
# an explicit \brief command for a brief description.)
|
||||||
|
|
||||||
|
QT_AUTOBRIEF = YES
|
||||||
|
|
||||||
# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
|
# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
|
||||||
# treat a multi-line C++ special comment block (i.e. a block of //! or ///
|
# treat a multi-line C++ special comment block (i.e. a block of //! or ///
|
||||||
@@ -876,7 +884,10 @@ INCLUDE_FILE_PATTERNS =
|
|||||||
# omitted =1 is assumed.
|
# omitted =1 is assumed.
|
||||||
|
|
||||||
PREDEFINED = FALSE=0 \
|
PREDEFINED = FALSE=0 \
|
||||||
CPU_USE_GENERIC_BITFIELD_DATA=0
|
CPU_USE_GENERIC_BITFIELD_DATA=0 \
|
||||||
|
__attribute__(x)= \
|
||||||
|
RTEMS_COMPILER_NO_RETURN_ATTRIBUTE= \
|
||||||
|
RTEMS_COMPILER_DEPRECATED_ATTRIBUTE=
|
||||||
|
|
||||||
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
|
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
|
||||||
# this tag can be used to specify a list of macro names that should be expanded.
|
# this tag can be used to specify a list of macro names that should be expanded.
|
||||||
@@ -991,14 +1002,14 @@ TEMPLATE_RELATIONS = NO
|
|||||||
# file showing the direct and indirect include dependencies of the file with
|
# file showing the direct and indirect include dependencies of the file with
|
||||||
# other documented files.
|
# other documented files.
|
||||||
|
|
||||||
INCLUDE_GRAPH = YES
|
INCLUDE_GRAPH = NO
|
||||||
|
|
||||||
# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
|
# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
|
||||||
# HAVE_DOT tags are set to YES then doxygen will generate a graph for each
|
# HAVE_DOT tags are set to YES then doxygen will generate a graph for each
|
||||||
# documented header file showing the documented files that directly or
|
# documented header file showing the documented files that directly or
|
||||||
# indirectly include this file.
|
# indirectly include this file.
|
||||||
|
|
||||||
INCLUDED_BY_GRAPH = YES
|
INCLUDED_BY_GRAPH = NO
|
||||||
|
|
||||||
# If the CALL_GRAPH and HAVE_DOT tags are set to YES then doxygen will
|
# If the CALL_GRAPH and HAVE_DOT tags are set to YES then doxygen will
|
||||||
# generate a call dependency graph for every global function or class method.
|
# generate a call dependency graph for every global function or class method.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* @ingroup rtems_interrupt_extension
|
* @ingroup rtems_interrupt_extension
|
||||||
*
|
*
|
||||||
* @brief Header file for the RTEMS Interrupt Manager Extension.
|
* @brief Header file for the Interrupt Manager Extension.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -30,7 +30,7 @@ extern "C" {
|
|||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @defgroup rtems_interrupt_extension RTEMS Interrupt Manager Extension
|
* @defgroup rtems_interrupt_extension Interrupt Manager Extension
|
||||||
*
|
*
|
||||||
* @ingroup ClassicINTR
|
* @ingroup ClassicINTR
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
*
|
*
|
||||||
|
* @ingroup rtems_bdbuf
|
||||||
|
*
|
||||||
* Block device buffer management.
|
* Block device buffer management.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
*
|
*
|
||||||
|
* @ingroup rtems_bdpart
|
||||||
|
*
|
||||||
* Block device partition management.
|
* Block device partition management.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -245,11 +247,11 @@ rtems_status_code rtems_bdpart_write(
|
|||||||
* Creates a partition table in @a partitions with @a count partitions for the
|
* Creates a partition table in @a partitions with @a count partitions for the
|
||||||
* physical disk device with name @a disk_name.
|
* physical disk device with name @a disk_name.
|
||||||
*
|
*
|
||||||
* The array of positive integer weights in @a distribution must be of size @a
|
* The array of positive integer weights in @a distribution must have exactly
|
||||||
* size. The weights in the distribution array are summed up. Each weight is
|
* @a count elements. The weights in the distribution array are summed up.
|
||||||
* then divided by the sum to obtain the disk fraction which forms the
|
* Each weight is then divided by the sum to obtain the disk fraction which
|
||||||
* corresponding partition. The partition boundaries are generated with
|
* forms the corresponding partition. The partition boundaries are generated
|
||||||
* respect to the output format in @a format.
|
* with respect to the output format in @a format.
|
||||||
*/
|
*/
|
||||||
rtems_status_code rtems_bdpart_create(
|
rtems_status_code rtems_bdpart_create(
|
||||||
const char *disk_name,
|
const char *disk_name,
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
*
|
*
|
||||||
|
* @ingroup rtems_blkdev
|
||||||
|
*
|
||||||
* Block device management.
|
* Block device management.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
*
|
*
|
||||||
|
* @ingroup rtems_disk
|
||||||
|
*
|
||||||
* Block device disk management.
|
* Block device disk management.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
*
|
*
|
||||||
|
* @ingroup rtems_ramdisk
|
||||||
|
*
|
||||||
* RAM disk block device.
|
* RAM disk block device.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
*
|
*
|
||||||
|
* @ingroup rtems_bdbuf
|
||||||
|
*
|
||||||
* Block device buffer management.
|
* Block device buffer management.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
*
|
*
|
||||||
|
* @ingroup rtems_bdpart
|
||||||
|
*
|
||||||
* Block device partition management.
|
* Block device partition management.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -319,7 +321,7 @@ rtems_status_code rtems_bdpart_read(
|
|||||||
rtems_status_code esc = RTEMS_SUCCESSFUL;
|
rtems_status_code esc = RTEMS_SUCCESSFUL;
|
||||||
rtems_bdbuf_buffer *block = NULL;
|
rtems_bdbuf_buffer *block = NULL;
|
||||||
rtems_bdpart_partition *p = pt - 1;
|
rtems_bdpart_partition *p = pt - 1;
|
||||||
rtems_bdpart_partition *p_end = NULL;
|
const rtems_bdpart_partition *p_end = pt + (count != NULL ? *count : 0);
|
||||||
rtems_blkdev_bnum ep_begin = 0; /* Extended partition begin */
|
rtems_blkdev_bnum ep_begin = 0; /* Extended partition begin */
|
||||||
rtems_blkdev_bnum ebr = 0; /* Extended boot record block index */
|
rtems_blkdev_bnum ebr = 0; /* Extended boot record block index */
|
||||||
rtems_blkdev_bnum disk_end = 0;
|
rtems_blkdev_bnum disk_end = 0;
|
||||||
@@ -332,8 +334,7 @@ rtems_status_code rtems_bdpart_read(
|
|||||||
return RTEMS_INVALID_ADDRESS;
|
return RTEMS_INVALID_ADDRESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set table end and the count to a save value */
|
/* Set count to a save value */
|
||||||
p_end = pt + *count;
|
|
||||||
*count = 0;
|
*count = 0;
|
||||||
|
|
||||||
/* Get disk data */
|
/* Get disk data */
|
||||||
@@ -463,7 +464,8 @@ rtems_status_code rtems_bdpart_write(
|
|||||||
{
|
{
|
||||||
rtems_status_code sc = RTEMS_SUCCESSFUL;
|
rtems_status_code sc = RTEMS_SUCCESSFUL;
|
||||||
rtems_status_code esc = RTEMS_SUCCESSFUL;
|
rtems_status_code esc = RTEMS_SUCCESSFUL;
|
||||||
bool dos_compatibility = format->type == RTEMS_BDPART_FORMAT_MBR
|
bool dos_compatibility = format != NULL
|
||||||
|
&& format->type == RTEMS_BDPART_FORMAT_MBR
|
||||||
&& format->mbr.dos_compatibility;
|
&& format->mbr.dos_compatibility;
|
||||||
rtems_bdbuf_buffer *block = NULL;
|
rtems_bdbuf_buffer *block = NULL;
|
||||||
rtems_blkdev_bnum disk_end = 0;
|
rtems_blkdev_bnum disk_end = 0;
|
||||||
@@ -680,7 +682,8 @@ rtems_status_code rtems_bdpart_create(
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
rtems_status_code sc = RTEMS_SUCCESSFUL;
|
rtems_status_code sc = RTEMS_SUCCESSFUL;
|
||||||
bool dos_compatibility = format->type == RTEMS_BDPART_FORMAT_MBR
|
bool dos_compatibility = format != NULL
|
||||||
|
&& format->type == RTEMS_BDPART_FORMAT_MBR
|
||||||
&& format->mbr.dos_compatibility;
|
&& format->mbr.dos_compatibility;
|
||||||
rtems_blkdev_bnum disk_end = 0;
|
rtems_blkdev_bnum disk_end = 0;
|
||||||
rtems_blkdev_bnum pos = 0;
|
rtems_blkdev_bnum pos = 0;
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
*
|
*
|
||||||
|
* @ingroup rtems_blkdev
|
||||||
|
*
|
||||||
* Block device management.
|
* Block device management.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* blkdev.h - block device driver generic support
|
|
||||||
*
|
|
||||||
* Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
|
* Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
|
||||||
* Author: Victor V. Vengerov <vvv@oktet.ru>
|
* Author: Victor V. Vengerov <vvv@oktet.ru>
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
*
|
*
|
||||||
|
* @ingroup rtems_disk
|
||||||
|
*
|
||||||
* Block device disk management.
|
* Block device disk management.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* diskdevs.c - Physical and logical block devices (disks) support
|
|
||||||
*
|
|
||||||
* Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
|
* Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
|
||||||
* Author: Victor V. Vengerov <vvv@oktet.ru>
|
* Author: Victor V. Vengerov <vvv@oktet.ru>
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
*
|
*
|
||||||
|
* @ingroup rtems_ramdisk
|
||||||
|
*
|
||||||
* RAM disk block device.
|
* RAM disk block device.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user