forked from Imagelibrary/rtems
2009-12-27 Till Straumann <strauman@slac.stanford.edu>
* include/bsp.h, console/console.c: Provide weak-alias hook so that the application may choose the console.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2009-12-27 Till Straumann <strauman@slac.stanford.edu>
|
||||
|
||||
* include/bsp.h, console/console.c: Provide weak-alias
|
||||
hook so that the application may choose the console.
|
||||
|
||||
2009-10-21 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* make/custom/pc386.cfg: Remove RTEMS_BSP_FAMILY.
|
||||
|
||||
@@ -139,6 +139,10 @@ int kbd_poll_read( int minor )
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* provide default that does nothing */
|
||||
extern void
|
||||
BSP_runtime_console_select(int *, int *) __attribute__((weak));
|
||||
|
||||
/*-------------------------------------------------------------------------+
|
||||
| Console device driver INITIALIZE entry point.
|
||||
+--------------------------------------------------------------------------+
|
||||
@@ -186,6 +190,9 @@ console_initialize(rtems_device_major_number major,
|
||||
*/
|
||||
rtems_termios_initialize ();
|
||||
|
||||
if ( BSP_runtime_console_select )
|
||||
BSP_runtime_console_select(&BSPPrintkPort, &BSPConsolePort);
|
||||
|
||||
#ifdef RTEMS_RUNTIME_CONSOLE_SELECT
|
||||
/*
|
||||
* If no video card, fall back to serial port console
|
||||
|
||||
@@ -61,6 +61,14 @@ extern "C" {
|
||||
*/
|
||||
struct rtems_bsdnet_ifconfig;
|
||||
|
||||
/* app. may provide a routine (called _very_ early) to tell us
|
||||
* which ports to use for printk / console. BSP provides a default
|
||||
* implementation (weak alias) which does nothing (use BSP default
|
||||
* ports).
|
||||
*/
|
||||
extern void
|
||||
BSP_runtime_console_select(int *pPrintkPort, int *pConsolePort);
|
||||
|
||||
extern int rtems_ne_driver_attach(struct rtems_bsdnet_ifconfig *, int);
|
||||
#define BSP_NE2000_NETWORK_DRIVER_NAME "ne1"
|
||||
#define BSP_NE2000_NETWORK_DRIVER_ATTACH rtems_ne_driver_attach
|
||||
|
||||
Reference in New Issue
Block a user