[ba692232] | 1 | /** |
---|
| 2 | * @file |
---|
| 3 | * |
---|
| 4 | * @ingroup Console |
---|
| 5 | * |
---|
| 6 | * @brief Extension of the generic libchip console driver shell |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | /* |
---|
| 10 | * COPYRIGHT (c) 1989-2011. |
---|
| 11 | * On-Line Applications Research Corporation (OAR). |
---|
| 12 | * |
---|
| 13 | * The license and distribution terms for this file may be |
---|
| 14 | * found in the file LICENSE in this distribution or at |
---|
[c499856] | 15 | * http://www.rtems.org/license/LICENSE. |
---|
[ba692232] | 16 | */ |
---|
| 17 | |
---|
| 18 | #ifndef _PC386_CONSOLE_PRIVATE_h |
---|
| 19 | #define _PC386_CONSOLE_PRIVATE_h |
---|
| 20 | |
---|
| 21 | #include <rtems.h> |
---|
| 22 | |
---|
[9f868a16] | 23 | #include <libchip/serial.h> |
---|
| 24 | |
---|
[ba692232] | 25 | #ifdef __cplusplus |
---|
| 26 | extern "C" { |
---|
| 27 | #endif |
---|
| 28 | |
---|
| 29 | extern rtems_device_minor_number BSPPrintkPort; |
---|
| 30 | |
---|
| 31 | /** |
---|
| 32 | * @brief bsp_com_outch |
---|
| 33 | * |
---|
| 34 | * This function puts a character out of the console port. |
---|
| 35 | * |
---|
| 36 | * @param[in] ch specifies the character to write |
---|
| 37 | */ |
---|
| 38 | extern void bsp_com_outch(char ch); |
---|
| 39 | |
---|
| 40 | /** |
---|
| 41 | * @brief bsp_com_inch |
---|
| 42 | * |
---|
| 43 | * This function gets a character from the console |
---|
| 44 | * port. |
---|
| 45 | * |
---|
| 46 | * @return This method returns the character that |
---|
| 47 | * was retrieved from the console port. |
---|
| 48 | */ |
---|
[15211c8] | 49 | extern int bsp_com_inch(void); |
---|
[ba692232] | 50 | |
---|
| 51 | /** |
---|
[15211c8] | 52 | * @brief |
---|
[ba692232] | 53 | * |
---|
[15211c8] | 54 | * This function |
---|
[ba692232] | 55 | * |
---|
[15211c8] | 56 | * @return This method returns |
---|
[ba692232] | 57 | */ |
---|
| 58 | int vt_ioctl( unsigned int cmd, unsigned long arg); |
---|
| 59 | |
---|
| 60 | /** |
---|
[15211c8] | 61 | * @brief console_register_devices |
---|
[ba692232] | 62 | * |
---|
| 63 | * This function expands the console table to include previous |
---|
| 64 | * ports and the array of new ports specified. |
---|
| 65 | * |
---|
| 66 | * @param[in] new_ports specifies an array of new ports to register |
---|
| 67 | * @param[in] number_of_ports specifies the number of elements |
---|
| 68 | * in the new_ports array |
---|
| 69 | * |
---|
| 70 | */ |
---|
| 71 | void console_register_devices( |
---|
| 72 | console_tbl *new_ports, |
---|
| 73 | size_t number_of_ports |
---|
| 74 | ); |
---|
| 75 | |
---|
| 76 | #ifdef __cplusplus |
---|
| 77 | } |
---|
| 78 | #endif |
---|
| 79 | |
---|
| 80 | /**@}*/ |
---|
| 81 | |
---|
| 82 | #endif |
---|
| 83 | /* end of include file */ |
---|