forked from Imagelibrary/rtems
This patch adds the "--printk=" boot command line argument to specify the printk() device. It also enhances the "--console=" boot command line argument to match any device configured in the console device table. The arguments are parsed as early as possible so they take effect early. Currently, this is immediately after PCI initialization.
94 lines
1.9 KiB
C
94 lines
1.9 KiB
C
/**
|
|
* @file
|
|
*
|
|
* @ingroup Console
|
|
*
|
|
* @brief Extension of the generic libchip console driver shell
|
|
*/
|
|
|
|
/*
|
|
* COPYRIGHT (c) 1989-2011, 2016.
|
|
* On-Line Applications Research Corporation (OAR).
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.rtems.org/license/LICENSE.
|
|
*/
|
|
|
|
#ifndef _PC386_CONSOLE_PRIVATE_h
|
|
#define _PC386_CONSOLE_PRIVATE_h
|
|
|
|
#include <rtems.h>
|
|
|
|
#include <libchip/serial.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern rtems_device_minor_number BSPPrintkPort;
|
|
|
|
/**
|
|
* @brief bsp_com_outch
|
|
*
|
|
* This function puts a character out of the console port.
|
|
*
|
|
* @param[in] ch specifies the character to write
|
|
*/
|
|
extern void bsp_com_outch(char ch);
|
|
|
|
/**
|
|
* @brief bsp_com_inch
|
|
*
|
|
* This function gets a character from the console
|
|
* port.
|
|
*
|
|
* @return This method returns the character that
|
|
* was retrieved from the console port.
|
|
*/
|
|
extern int bsp_com_inch(void);
|
|
|
|
/**
|
|
* @brief
|
|
*
|
|
* This function
|
|
*
|
|
* @return This method returns
|
|
*/
|
|
int vt_ioctl( unsigned int cmd, unsigned long arg);
|
|
|
|
/**
|
|
* @brief console_initialize_data
|
|
*
|
|
* This must be called before dynamic registration of devices can occur.
|
|
* It is normally called as a side-effect of @a console_initialize() but
|
|
* if a probe and dynamic registration occurs before that, then this method
|
|
* should be explicitly invoked.
|
|
*/
|
|
void console_initialize_data(void);
|
|
|
|
/**
|
|
* @brief console_register_devices
|
|
*
|
|
* This function expands the console table to include previous
|
|
* ports and the array of new ports specified.
|
|
*
|
|
* @param[in] new_ports specifies an array of new ports to register
|
|
* @param[in] number_of_ports specifies the number of elements
|
|
* in the new_ports array
|
|
*
|
|
*/
|
|
void console_register_devices(
|
|
console_tbl *new_ports,
|
|
size_t number_of_ports
|
|
);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/**@}*/
|
|
|
|
#endif
|
|
/* end of include file */
|