forked from Imagelibrary/rtems
2011-10-18 Jennifer Averett <Jennifer.Averett@OARcorp.com>
PR 1917/bsps * Makefile.am, console/uarts.c: Modifications to add dynamic tables for libchip serial drivers.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2011-10-18 Jennifer Averett <Jennifer.Averett@OARcorp.com>
|
||||||
|
|
||||||
|
PR 1917/bsps
|
||||||
|
* Makefile.am, console/uarts.c: Modifications to add dynamic tables for
|
||||||
|
libchip serial drivers.
|
||||||
|
|
||||||
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
||||||
|
|||||||
@@ -61,7 +61,9 @@ libbsp_a_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
|
|||||||
startup/memmap.c ../../shared/bootcard.c ../../shared/sbrk.c \
|
startup/memmap.c ../../shared/bootcard.c ../../shared/sbrk.c \
|
||||||
../../shared/gnatinstallhandler.c
|
../../shared/gnatinstallhandler.c
|
||||||
# console
|
# console
|
||||||
libbsp_a_SOURCES += ../../shared/console.c console/uarts.c
|
libbsp_a_SOURCES += ../../shared/console.c console/uarts.c \
|
||||||
|
../../shared/console_select.c ../../shared/console_control.c \
|
||||||
|
../../shared/console_read.c ../../shared/console_write.c
|
||||||
# IRQ
|
# IRQ
|
||||||
include_bsp_HEADERS += ../../shared/include/irq-generic.h \
|
include_bsp_HEADERS += ../../shared/include/irq-generic.h \
|
||||||
../../shared/include/irq-info.h
|
../../shared/include/irq-info.h
|
||||||
|
|||||||
@@ -31,8 +31,6 @@
|
|||||||
#include <libchip/sersupp.h>
|
#include <libchip/sersupp.h>
|
||||||
#include <bspopts.h>
|
#include <bspopts.h>
|
||||||
|
|
||||||
/* rtems console uses the following minor number */
|
|
||||||
rtems_device_minor_number Console_Port_Minor = 0;
|
|
||||||
extern console_fns dbgu_fns;
|
extern console_fns dbgu_fns;
|
||||||
|
|
||||||
#if ENABLE_LCD
|
#if ENABLE_LCD
|
||||||
@@ -82,8 +80,7 @@ extern console_fns dbgu_fns;
|
|||||||
USART0_DEV + USART1_DEV + USART2_DEV + USART3_DEV)
|
USART0_DEV + USART1_DEV + USART2_DEV + USART3_DEV)
|
||||||
|
|
||||||
/* These are used by code in console.c */
|
/* These are used by code in console.c */
|
||||||
unsigned long Console_Port_Count = NUM_DEVS;
|
unsigned long Console_Configuration_Count = NUM_DEVS;
|
||||||
console_data Console_Port_Data[NUM_DEVS];
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* There's one item in array for each UART.
|
* There's one item in array for each UART.
|
||||||
@@ -94,7 +91,7 @@ console_data Console_Port_Data[NUM_DEVS];
|
|||||||
* when we add other types of UARTS we will need to move this
|
* when we add other types of UARTS we will need to move this
|
||||||
* structure to a generic uart.c file with only this in it
|
* structure to a generic uart.c file with only this in it
|
||||||
*/
|
*/
|
||||||
console_tbl Console_Port_Tbl[] = {
|
console_tbl Console_Configuration_Ports[] = {
|
||||||
{
|
{
|
||||||
"/dev/console", /* sDeviceName */
|
"/dev/console", /* sDeviceName */
|
||||||
SERIAL_CUSTOM, /* deviceType */
|
SERIAL_CUSTOM, /* deviceType */
|
||||||
@@ -244,5 +241,5 @@ console_tbl Console_Port_Tbl[] = {
|
|||||||
|
|
||||||
console_tbl *BSP_get_uart_from_minor(int minor)
|
console_tbl *BSP_get_uart_from_minor(int minor)
|
||||||
{
|
{
|
||||||
return &Console_Port_Tbl[minor];
|
return Console_Port_Tbl[minor];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2011-10-18 Jennifer Averett <Jennifer.Averett@OARcorp.com>
|
||||||
|
|
||||||
|
PR 1917/bsps
|
||||||
|
* Makefile.am, console/uarts.c: Modifications to add dynamic tables for
|
||||||
|
libchip serial drivers.
|
||||||
|
|
||||||
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
||||||
|
|||||||
@@ -39,7 +39,9 @@ libbsp_a_SOURCES += ../../shared/bsplibc.c ../../shared/bsppost.c \
|
|||||||
../../shared/bspclean.c startup/bspstart.c startup/memmap.c
|
../../shared/bspclean.c startup/bspstart.c startup/memmap.c
|
||||||
|
|
||||||
#console
|
#console
|
||||||
libbsp_a_SOURCES += console/uarts.c ../../shared/console.c
|
libbsp_a_SOURCES += console/uarts.c ../../shared/console.c \
|
||||||
|
../../shared/console_select.c ../../shared/console_control.c \
|
||||||
|
../../shared/console_read.c ../../shared/console_write.c
|
||||||
# IRQ
|
# IRQ
|
||||||
include_bsp_HEADERS += ../../shared/include/irq-generic.h \
|
include_bsp_HEADERS += ../../shared/include/irq-generic.h \
|
||||||
../../shared/include/irq-info.h
|
../../shared/include/irq-info.h
|
||||||
|
|||||||
@@ -27,11 +27,8 @@
|
|||||||
#define NUM_DEVS 1
|
#define NUM_DEVS 1
|
||||||
|
|
||||||
/* These are used by code in console.c */
|
/* These are used by code in console.c */
|
||||||
unsigned long Console_Port_Count = NUM_DEVS;
|
unsigned long Console_Configuration_Count = NUM_DEVS;
|
||||||
console_data Console_Port_Data[NUM_DEVS];
|
|
||||||
|
|
||||||
/* rtems console uses the following minor number */
|
|
||||||
rtems_device_minor_number Console_Port_Minor = 0;
|
|
||||||
extern console_fns ffuart_fns;
|
extern console_fns ffuart_fns;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -43,7 +40,7 @@ extern console_fns ffuart_fns;
|
|||||||
* when we add other types of UARTS we will need to move this
|
* when we add other types of UARTS we will need to move this
|
||||||
* structure to a generic uart.c file with only this in it
|
* structure to a generic uart.c file with only this in it
|
||||||
*/
|
*/
|
||||||
console_tbl Console_Port_Tbl[] = {
|
console_tbl Console_Configuration_Ports[] = {
|
||||||
{
|
{
|
||||||
"/dev/console", /* sDeviceName */
|
"/dev/console", /* sDeviceName */
|
||||||
SERIAL_CUSTOM, /* deviceType */
|
SERIAL_CUSTOM, /* deviceType */
|
||||||
@@ -67,5 +64,5 @@ console_tbl Console_Port_Tbl[] = {
|
|||||||
|
|
||||||
console_tbl *BSP_get_uart_from_minor(int minor)
|
console_tbl *BSP_get_uart_from_minor(int minor)
|
||||||
{
|
{
|
||||||
return &Console_Port_Tbl[minor];
|
return Console_Port_Tbl[minor];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user