source: rtems/cpukit/libcsupport/include/console.h @ 183af89

4.115
Last change on this file since 183af89 was 21242c2, checked in by Joel Sherrill <joel.sherrill@…>, on 06/24/11 at 17:52:58

2011-06-24 Joel Sherrill <joel.sherrill@…>

  • 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.
  • Property mode set to 100644
File size: 4.3 KB
Line 
1/**
2 * @file rtems/console.h
3 *
4 * This file describes the Console Device Driver for all boards.
5 * This driver provides support for the standard C Library.
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2011.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 *
16 *  $Id$
17 */
18
19#ifndef _RTEMS_CONSOLE_H
20#define _RTEMS_CONSOLE_H
21
22#include <rtems/io.h> /* rtems_device_driver */
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28/**
29 *  This macro defines the standard name for the console device
30 *  that is available to applications.
31 */
32#define CONSOLE_DEVICE_NAME "/dev/console"
33
34/**
35 *  This macro defines the standard device driver table entry for
36 *  a console device driver.
37 */
38#define CONSOLE_DRIVER_TABLE_ENTRY \
39  { console_initialize, console_open, console_close, \
40    console_read, console_write, console_control }
41
42/**
43 *  @brief Console Initialization Entry Point
44 *
45 *  This method initializes the console device driver.
46 *
47 *  @param[in] major is the device driver major number
48 *  @param[in] minor is the device driver minor number
49 *  @param[in] arg is the parameters to this call
50 *
51 *  @return This method returns RTEMS_SUCCESSFUL when
52 *          the device driver is successfully initialized.
53 */
54rtems_device_driver console_initialize(
55  rtems_device_major_number  major,
56  rtems_device_minor_number  minor,
57  void                      *arg
58);
59
60/**
61 *  @brief Console Open Entry Point
62 *
63 *  This method opens a specific device supported by the
64 *  console device driver.
65 *
66 *  @param[in] major is the device driver major number
67 *  @param[in] minor is the device driver minor number
68 *  @param[in] arg is the parameters to this call
69 *
70 *  @return This method returns RTEMS_SUCCESSFUL when
71 *          the device driver is successfully opened.
72 */
73rtems_device_driver console_open(
74  rtems_device_major_number  major,
75  rtems_device_minor_number  minor,
76  void                      *arg
77);
78
79/**
80 *  @brief Console Close Entry Point
81 *
82 *  This method closes a specific device supported by the
83 *  console device driver.
84 *
85 *  @param[in] major is the device driver major number
86 *  @param[in] minor is the device driver minor number
87 *  @param[in] arg is the parameters to this call
88 *
89 *  @return This method returns RTEMS_SUCCESSFUL when
90 *          the device is successfully closed.
91 */
92rtems_device_driver console_close(
93  rtems_device_major_number  major,
94  rtems_device_minor_number  minor,
95  void                      *arg
96);
97
98/**
99 *  @brief Console Read Entry Point
100 *
101 *  This method reads from a specific device supported by the
102 *  console device driver.
103 *
104 *  @param[in] major is the device driver major number
105 *  @param[in] minor is the device driver minor number
106 *  @param[in] arg is the parameters to this call
107 *
108 *  @return This method returns RTEMS_SUCCESSFUL when
109 *          the device is successfully read from.
110 */
111rtems_device_driver console_read(
112  rtems_device_major_number  major,
113  rtems_device_minor_number  minor,
114  void                      *arg
115);
116
117/**
118 *  @brief Console Write Entry Point
119 *
120 *  This method writes to a specific device supported by the
121 *  console device driver.
122 *
123 *  @param[in] major is the device driver major number
124 *  @param[in] minor is the device driver minor number
125 *  @param[in] arg is the parameters to this call
126 *
127 *  @return This method returns RTEMS_SUCCESSFUL when
128 *          the device is successfully written.
129 */
130rtems_device_driver console_write(
131  rtems_device_major_number  major,
132  rtems_device_minor_number  minor,
133  void                      *arg
134);
135
136/**
137 *  @brief Console IO Control Entry Point
138 *
139 *  This method performs an IO Control operation on a
140 *  specific device supported by the console device driver.
141 *
142 *  @param[in] major is the device driver major number
143 *  @param[in] minor is the device driver minor number
144 *  @param[in] arg is the parameters to this call
145 *
146 *  @return This method returns RTEMS_SUCCESSFUL when
147 *          the device driver IO control operation is
148 *          successfully performed.
149 */
150rtems_device_driver console_control(
151  rtems_device_major_number  major,
152  rtems_device_minor_number  minor,
153  void                      *arg
154);
155
156#ifdef __cplusplus
157}
158#endif
159
160#endif
161/* end of include file */
Note: See TracBrowser for help on using the repository browser.