summaryrefslogtreecommitdiffstats
path: root/cpukit/libblock/include/rtems (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove make preinstallChris Johns2018-01-2511-3863/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A speciality of the RTEMS build system was the make preinstall step. It copied header files from arbitrary locations into the build tree. The header files were included via the -Bsome/build/tree/path GCC command line option. This has at least seven problems: * The make preinstall step itself needs time and disk space. * Errors in header files show up in the build tree copy. This makes it hard for editors to open the right file to fix the error. * There is no clear relationship between source and build tree header files. This makes an audit of the build process difficult. * The visibility of all header files in the build tree makes it difficult to enforce API barriers. For example it is discouraged to use BSP-specifics in the cpukit. * An introduction of a new build system is difficult. * Include paths specified by the -B option are system headers. This may suppress warnings. * The parallel build had sporadic failures on some hosts. This patch removes the make preinstall step. All installed header files are moved to dedicated include directories in the source tree. Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc, etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g. erc32, imx, qoriq, etc. The new cpukit include directories are: * cpukit/include * cpukit/score/cpu/@RTEMS_CPU@/include * cpukit/libnetworking The new BSP include directories are: * bsps/include * bsps/@RTEMS_CPU@/include * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include There are build tree include directories for generated files. The include directory order favours the most general header file, e.g. it is not possible to override general header files via the include path order. The "bootstrap -p" option was removed. The new "bootstrap -H" option should be used to regenerate the "headers.am" files. Update #3254.
* libblock: FreeBSD kernel-space compatibilitySebastian Huber2017-06-081-1/+1
| | | | Update #2833.
* Use <sys/endian.h>Sebastian Huber2017-01-241-13/+5
| | | | Update #2803.
* cpukit, testsuite: Add rtems_printf and rtems_printer support.Chris Johns2016-05-251-4/+3
| | | | | | | | | | | | | | | | | | | This change adds rtems_printf and related functions and wraps the RTEMS print plugin support into a user API. All references to the plugin are removed and replaced with the rtems_printer interface. Printk and related functions are made to return a valid number of characters formatted and output. The function attribute to check printf functions has been added to rtems_printf and printk. No changes to remove warrnings are part of this patch set. The testsuite has been moved over to the rtems_printer. The testsuite has a mix of rtems_printer access and direct print control via the tmacros.h header file. The support for begink/endk has been removed as it served no purpose and only confused the code base. The testsuite has not been refactored to use rtems_printf. This is future work.
* libblock: Drop superfluous <stdlib.h> includeSebastian Huber2016-04-071-1/+0
| | | | | | Drop superfluous <stdlib.h> include from <rtems/diskdevs.h> since this leads to conflicts with the latest Newlib in case this header file is used in the FreeBSD kernel space, e.g. for USB mass storage support.
* libblock: Print block sizes and countSebastian Huber2015-11-021-0/+3
|
* basdefs.h: Add and use RTEMS_DEPRECATEDSebastian Huber2015-10-261-3/+3
|
* libblock: Add RTEMS_BDBUF_USE_PTHREADRalf Kirchner2014-06-021-0/+9
| | | | | | Use the PTHREAD mutexes and condition variables if available. This helps on SMP configurations to avoid the home grown condition variables via disabled preemption.
* score: Add and use RTEMS_ZERO_LENGTH_ARRAYSebastian Huber2014-04-152-2/+2
|
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-216-6/+6
|
* libblock: PR2145: Limit maximum read-ahead blocksSebastian Huber2013-09-161-1/+1
| | | | This helps to prevent stack overflows due to configuration errors.
* cpukit: Use Consistent Beginning of Doxygen Group NotationJoel Sherrill2013-01-108-39/+21
| | | | | This is the result of a sed script which converts all uses of @{ into a consistent form.
* Header File Doxygen Enhancement Task #1Alex Ivanov2012-12-283-8/+5
|
* Header File Doxygen Enhancement Task #7Mathew Kallada2012-12-281-1/+1
|
* Header File Doxygen Enhancement Task #2Mathew Kallada2012-12-284-6/+8
|
* libblock: Use @brief in documentationSebastian Huber2012-12-211-22/+22
|
* libblock: Doxygen Enhancement Task #1 correctionsJennifer Averett2012-12-212-6/+5
|
* libblock: Doxygen Enhancement Task #1Mathew Kallada2012-12-212-3/+6
|
* Fix spellingSebastian Huber2012-12-141-1/+1
|
* libblock: Add sparse diskRalf Kirchner2012-12-051-0/+137
|
* libblock: DocumentationRalf Kirchner2012-11-291-1/+1
|
* libblock: DocumentationSebastian Huber2012-11-021-88/+115
|
* libblock: Block device transfer request API changeSebastian Huber2012-11-021-18/+48
| | | | | | | | | | | | | | Add and use rtems_blkdev_request_done(). Block device transfer requests must signal the completion status now with rtems_blkdev_request_done(). The return value of the block device IO control will be ignored for transfer requests. The first parameter of rtems_blkdev_request_cb is now the transfer request structure. Renamed rtems_blkdev_request::req_done to rtems_blkdev_request::done to break third party drivers at compile time, otherwise this API change would result in runtime errors.
* libblock: rtems_bdbuf_set_block_size() API changeSebastian Huber2012-10-261-4/+14
| | | | | | | The set block size must synchronize and purge the disk to avoid an inconsistent cache state and data corruption. The synchronization is optional depending on the new sync parameter. In some contexts a synchronization must not be performed, e.g. during disk creation.
* libblock: ramdisk documentationSebastian Huber2012-10-261-51/+31
|
* Remove CVS-Ids.Ralf Corsépius2012-07-191-2/+0
|
* libblock: Add block device statisticsSebastian Huber2012-06-123-0/+115
|
* libblock: Remove const qualifierSebastian Huber2012-06-121-1/+1
| | | | This allows addtion of per disk statistics for example.
* libblock: Rename structureSebastian Huber2012-06-041-3/+3
|
* libblock: Add read-ahead taskSebastian Huber2012-06-042-7/+56
| | | | | | | | | | | Read-ahead requests were previously executed in the context of the reading task. This blocks the reading task until the complete read with read-ahead transfer is finished. A read-ahead task is introduced to off-load the read-ahead transfer. This allows the reading task to work with the requested block more quickly. The read-ahead is triggered after two misses of ascending consecutive blocks or a read hit of a block read by the most-recent read-ahead transfer. The read-ahead feature is configurable and can be disabled.
* libblock: Simplify disk managementSebastian Huber2012-05-312-17/+48
| | | | | Add block_count and media_blocks_per_block to rtems_disk_device. Add and use rtems_disk_init_phys() and rtems_disk_init_log().
* libblock: Remove const qualifier from bdbuf APISebastian Huber2012-05-313-6/+6
| | | | This allows addtion of per disk statistics for example.
* libblock: Add task stack size bdbuf configurationSebastian Huber2012-05-311-3/+10
| | | | | | The task stack size for the swap-out and worker tasks is now configurable. The bdbuf task resources are now included in the work space size estimate.
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-117-14/+0
| | | | | | | | | | | | Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
* libblock: Add RTEMS_BLKIO_PURGEDEVSebastian Huber2012-05-111-0/+6
|
* libblock: Add rtems_bdbuf_set_block_size()Sebastian Huber2012-04-122-4/+43
| | | | | | | | The new function rtems_bdbuf_set_block_size() must be used to set the block size of a disk device. It will check if the block size is valid and set the new fields block_to_media_block_shift and bds_per_group of the rtems_disk_device structure. This helps to avoid complex arithmetic operations in the block device buffer get and read path.
* libblock: Change error status to fatal errorSebastian Huber2012-04-121-13/+40
| | | | | Calling the bdbuf API functions in the not configured state is now a fatal error.
* PR2040: libblock: Flash disk documentationSebastian Huber2012-03-141-28/+119
|
* libblock: Add generic IMFS block device nodesSebastian Huber2012-03-131-0/+50
| | | | | | | | New functions o rtems_blkdev_create(), and o rtems_blkdev_create_partition(). New test libtests/block11.
* libblock: New support functionsSebastian Huber2012-03-131-0/+21
| | | | | | | Add o rtems_disk_get_block_size(), o rtems_disk_get_block_begin(), and o rtems_disk_get_block_count().
* libblock: Change bdbuf APISebastian Huber2012-03-132-28/+27
| | | | | | | | | | | | | | | | | | | | The functions o rtems_bdbuf_get(), o rtems_bdbuf_read(), o rtems_bdbuf_syncdev(), and o rtems_bdbuf_purge_dev(), use now the disk device instead of the device identifier. This makes bdbuf independent of rtems_disk_obtain() and rtems_disk_release(). It is the responsiblity of the file system to obtain the disk device. This also reduces the overhead to get a buffer. The key for the AVL tree uses now the disk device instead of the device identifier. The pointer is interpreted as an unsigned integer. This reduces the memory overhead and makes the comparison operation a bit faster. Removed function rtems_bdbuf_purge_major(). This function was too destructive and could have unpredictable side effects.
* libblock: DocumentationSebastian Huber2012-03-131-25/+41
|
* libblock: Remove superfluous volatile qualifierSebastian Huber2012-03-131-3/+3
| | | | All these variables are protected by the bdbuf cache mutex.
* libblock: rtems_ide_part_table_initialize() APISebastian Huber2012-03-131-1/+1
|
* libblock: New block IO control support functionsSebastian Huber2012-03-131-0/+39
|
* libblock: New IO control RTEMS_BLKIO_GETDISKDEVSebastian Huber2012-03-131-0/+1
|
* libblock: Add optional free at delete requestSebastian Huber2012-03-131-0/+10
|
* 2011-06-24 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2011-06-243-10/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/rtems/bspIo.h, include/rtems/concat.h, include/rtems/endian.h, include/rtems/fs.h, include/rtems/irq.h, include/rtems/pci.h, include/rtems/userenv.h, libblock/include/rtems/flashdisk.h, libblock/include/rtems/nvdisk-sram.h, libblock/include/rtems/nvdisk.h, libcsupport/include/clockdrv.h, libcsupport/include/console.h, libcsupport/include/iosupp.h, libcsupport/include/spurious.h, libcsupport/include/motorola/mc68230.h, libcsupport/include/rtems/assoc.h, libcsupport/include/rtems/error.h, libcsupport/include/rtems/framebuffer.h, libcsupport/include/rtems/gxx_wrappers.h, libcsupport/include/rtems/libcsupport.h, libcsupport/include/rtems/libio_.h, libcsupport/include/rtems/malloc.h, libcsupport/include/rtems/termiostypes.h, libcsupport/include/sys/statvfs.h, libcsupport/include/sys/termios.h, libcsupport/include/sys/utsname.h, libcsupport/include/zilog/z8036.h, libcsupport/include/zilog/z8530.h, libcsupport/include/zilog/z8536.h, libfs/src/imfs/imfs.h, libfs/src/pipe/pipe.h, libmisc/capture/capture-cli.h, libmisc/capture/capture.h, libmisc/cpuuse/cpuuse.h, libmisc/devnull/devnull.h, libmisc/devnull/devzero.h, libmisc/dumpbuf/dumpbuf.h, libmisc/fb/fb.h, libmisc/fb/mw_uid.h, libmisc/mouse/mouse_parser.h, libmisc/shell/shellconfig.h, libmisc/stringto/stringto.h, libmisc/untar/untar.h, libnetworking/memory.h, posix/include/aio.h, posix/include/mqueue.h, posix/include/semaphore.h, posix/include/rtems/posix/aio_misc.h, posix/include/rtems/posix/barrier.h, posix/include/rtems/posix/cond.h, posix/include/rtems/posix/config.h, posix/include/rtems/posix/key.h, posix/include/rtems/posix/mqueue.h, posix/include/rtems/posix/mutex.h, posix/include/rtems/posix/posixapi.h, posix/include/rtems/posix/priority.h, posix/include/rtems/posix/psignal.h, posix/include/rtems/posix/pthread.h, posix/include/rtems/posix/ptimer.h, posix/include/rtems/posix/rwlock.h, posix/include/rtems/posix/semaphore.h, posix/include/rtems/posix/sigset.h, posix/include/rtems/posix/spinlock.h, posix/include/rtems/posix/threadsup.h, posix/include/rtems/posix/time.h, posix/include/rtems/posix/timer.h, posix/inline/rtems/posix/barrier.inl, posix/inline/rtems/posix/cond.inl, posix/inline/rtems/posix/mqueue.inl, posix/inline/rtems/posix/mutex.inl, posix/inline/rtems/posix/priority.inl, posix/inline/rtems/posix/pthread.inl, posix/inline/rtems/posix/rwlock.inl, posix/inline/rtems/posix/semaphore.inl, posix/inline/rtems/posix/spinlock.inl, posix/inline/rtems/posix/timer.inl, rtems/mainpage.h, rtems/include/rtems/rtems/barrier.h, rtems/include/rtems/rtems/object.h, rtems/include/rtems/rtems/timer.h, rtems/inline/rtems/rtems/barrier.inl, rtems/inline/rtems/rtems/timer.inl, rtems/src/semtranslatereturncode.c, sapi/include/rtems/config.h, sapi/include/rtems/fatal.h, sapi/include/rtems/mptables.h, score/include/rtems/score/object.h, score/include/rtems/score/priority.h, score/inline/rtems/score/object.inl, score/inline/rtems/score/priority.inl: Add @file Doxygen directives and descriptions to files which originated with RTEMS. This improves the file list page generated by Doxygen.
* 2011-05-11 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-05-111-1/+1
| | | | * libblock/include/rtems/bdbuf.h: Documentation.
* 2011-02-17 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-02-171-26/+29
| | | | | | | | * libblock/include/rtems/bdpart.h (rtems_bdpart_format): Preserve previous API. * libblock/src/bdpart-create.c, libblock/src/bdpart-read.c, libblock/src/bdpart-write.c: Reflect changes above. * libmisc/shell/fdisk.c: Reflect changes above.