forked from Imagelibrary/rtems
2011-10-18 Jennifer Averett <Jennifer.Averett@OARcorp.com>
PR 1917/bsps * Makefile.am, console/uart.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/uart.c: Modifications to add dynamic tables for
|
||||||
|
libchip serial drivers.
|
||||||
|
|
||||||
2011-06-19 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2011-06-19 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* Makefile.am: Fix broken path to clockdrv_shell.h.
|
* Makefile.am: Fix broken path to clockdrv_shell.h.
|
||||||
|
|||||||
@@ -44,7 +44,9 @@ libbsp_a_SOURCES += ../../shared/bsppost.c ../../shared/bsplibc.c \
|
|||||||
libbsp_a_SOURCES += clock/clockdrv.c
|
libbsp_a_SOURCES += clock/clockdrv.c
|
||||||
libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
|
libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
|
||||||
# console
|
# console
|
||||||
libbsp_a_SOURCES += console/uart.c ../../shared/console.c
|
libbsp_a_SOURCES += console/uart.c ../../shared/console.c \
|
||||||
|
../../shared/console_select.c ../../shared/console_control.c \
|
||||||
|
../../shared/console_read.c ../../shared/console_write.c
|
||||||
# timer
|
# timer
|
||||||
libbsp_a_SOURCES += timer/timer.c
|
libbsp_a_SOURCES += timer/timer.c
|
||||||
# abort
|
# abort
|
||||||
|
|||||||
@@ -31,9 +31,8 @@ static void uart_init(int minor);
|
|||||||
static void uart_write_polled(int minor, char c);
|
static void uart_write_polled(int minor, char c);
|
||||||
static int uart_set_attributes(int minor, const struct termios *t);
|
static int uart_set_attributes(int minor, const struct termios *t);
|
||||||
|
|
||||||
unsigned long Console_Port_Count = NUM_DEVS;
|
unsigned long Console_Configuration_Count = NUM_DEVS;
|
||||||
console_data Console_Port_Data[NUM_DEVS];
|
|
||||||
rtems_device_minor_number Console_Port_Minor = 0;
|
|
||||||
console_fns uart_fns =
|
console_fns uart_fns =
|
||||||
{
|
{
|
||||||
libchip_serial_default_probe,
|
libchip_serial_default_probe,
|
||||||
@@ -46,7 +45,7 @@ console_fns uart_fns =
|
|||||||
uart_set_attributes,
|
uart_set_attributes,
|
||||||
FALSE
|
FALSE
|
||||||
};
|
};
|
||||||
console_tbl Console_Port_Tbl[] = {
|
console_tbl Console_Configuration_Ports[] = {
|
||||||
{
|
{
|
||||||
"/dev/com0", /* sDeviceName */
|
"/dev/com0", /* sDeviceName */
|
||||||
SERIAL_CUSTOM, /* deviceType */
|
SERIAL_CUSTOM, /* deviceType */
|
||||||
@@ -92,9 +91,9 @@ int uart_poll_read(int minor)
|
|||||||
char c;
|
char c;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
data_reg = (uint32_t*)Console_Port_Tbl[minor].ulDataPort;
|
data_reg = (uint32_t *)Console_Port_Tbl[minor]->ulDataPort;
|
||||||
ctrl_reg1 = (uint32_t*)Console_Port_Tbl[minor].ulCtrlPort1;
|
ctrl_reg1 = (uint32_t *)Console_Port_Tbl[minor]->ulCtrlPort1;
|
||||||
ctrl_reg2 = (uint32_t*)Console_Port_Tbl[minor].ulCtrlPort2;
|
ctrl_reg2 = (uint32_t *)Console_Port_Tbl[minor]->ulCtrlPort2;
|
||||||
|
|
||||||
if ((*ctrl_reg2 & EP7312_UART_URXFE1) != 0) {
|
if ((*ctrl_reg2 & EP7312_UART_URXFE1) != 0) {
|
||||||
return -1;
|
return -1;
|
||||||
@@ -115,9 +114,9 @@ static ssize_t uart_write(int minor, const char *buf, size_t len)
|
|||||||
size_t i;
|
size_t i;
|
||||||
char c;
|
char c;
|
||||||
|
|
||||||
data_reg = (uint32_t*)Console_Port_Tbl[minor].ulDataPort;
|
data_reg = (uint32_t *)Console_Port_Tbl[minor]->ulDataPort;
|
||||||
ctrl_reg1 = (uint32_t*)Console_Port_Tbl[minor].ulCtrlPort1;
|
ctrl_reg1 = (uint32_t *)Console_Port_Tbl[minor]->ulCtrlPort1;
|
||||||
ctrl_reg2 = (uint32_t*)Console_Port_Tbl[minor].ulCtrlPort2;
|
ctrl_reg2 = (uint32_t *)Console_Port_Tbl[minor]->ulCtrlPort2;
|
||||||
|
|
||||||
for (i = 0; i < len; i++) {
|
for (i = 0; i < len; i++) {
|
||||||
/* Wait for fifo to have room */
|
/* Wait for fifo to have room */
|
||||||
@@ -138,9 +137,9 @@ static void uart_init(int minor)
|
|||||||
volatile uint32_t *ctrl_reg1;
|
volatile uint32_t *ctrl_reg1;
|
||||||
volatile uint32_t *ctrl_reg2;
|
volatile uint32_t *ctrl_reg2;
|
||||||
|
|
||||||
data_reg = (uint32_t*)Console_Port_Tbl[minor].ulDataPort;
|
data_reg = (uint32_t *)Console_Port_Tbl[minor]->ulDataPort;
|
||||||
ctrl_reg1 = (uint32_t*)Console_Port_Tbl[minor].ulCtrlPort1;
|
ctrl_reg1 = (uint32_t *)Console_Port_Tbl[minor]->ulCtrlPort1;
|
||||||
ctrl_reg2 = (uint32_t*)Console_Port_Tbl[minor].ulCtrlPort2;
|
ctrl_reg2 = (uint32_t *)Console_Port_Tbl[minor]->ulCtrlPort2;
|
||||||
|
|
||||||
/* *ctrl_reg = (BSP_UART_DATA8 |
|
/* *ctrl_reg = (BSP_UART_DATA8 |
|
||||||
BSP_UART_STOP1 |
|
BSP_UART_STOP1 |
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2011-10-18 Jennifer Averett <Jennifer.Averett@OARcorp.com>
|
||||||
|
|
||||||
|
PR 1917/bsps
|
||||||
|
* Makefile.am, console/uart.c: Modifications to add dynamic tables for
|
||||||
|
libchip serial drivers.
|
||||||
|
|
||||||
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* startup/bspreset.c, startup/bspstart.c:
|
* startup/bspreset.c, startup/bspstart.c:
|
||||||
|
|||||||
@@ -39,7 +39,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 += console/uart.c ../../shared/console.c
|
libbsp_a_SOURCES += console/uart.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
|
||||||
|
|||||||
@@ -46,11 +46,7 @@ static void uart_write_polled(int minor, char c);
|
|||||||
static int uart_set_attributes(int minor, const struct termios *t);
|
static int uart_set_attributes(int minor, const struct termios *t);
|
||||||
|
|
||||||
/* 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;
|
|
||||||
|
|
||||||
/* Pointers to functions for handling the UART. */
|
/* Pointers to functions for handling the UART. */
|
||||||
console_fns uart_fns =
|
console_fns uart_fns =
|
||||||
@@ -73,7 +69,7 @@ console_fns uart_fns =
|
|||||||
* by console.c, but may be used by drivers in libchip
|
* by console.c, but may be used by drivers in libchip
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
console_tbl Console_Port_Tbl[] = {
|
console_tbl Console_Configuration_Ports[] = {
|
||||||
{
|
{
|
||||||
"/dev/com0", /* sDeviceName */
|
"/dev/com0", /* sDeviceName */
|
||||||
SERIAL_CUSTOM, /* deviceType */
|
SERIAL_CUSTOM, /* deviceType */
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2011-10-18 Jennifer Averett <Jennifer.Averett@OARcorp.com>
|
||||||
|
|
||||||
|
PR 1917/bsps
|
||||||
|
* Makefile.am, console/uart.c: Modifications to add dynamic tables for
|
||||||
|
libchip serial drivers.
|
||||||
|
|
||||||
2011-10-07 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2011-10-07 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* make/custom/rtl22xx_t.cfg: Remove USE_THUMB (Violates *.cfg
|
* make/custom/rtl22xx_t.cfg: Remove USE_THUMB (Violates *.cfg
|
||||||
|
|||||||
@@ -41,7 +41,9 @@ libbsp_a_SOURCES += ../../shared/bsplibc.c ../../shared/bsppost.c \
|
|||||||
../../shared/bootcard.c ../../shared/sbrk.c \
|
../../shared/bootcard.c ../../shared/sbrk.c \
|
||||||
../../shared/gnatinstallhandler.c
|
../../shared/gnatinstallhandler.c
|
||||||
# console
|
# console
|
||||||
libbsp_a_SOURCES += ../../shared/console.c
|
libbsp_a_SOURCES += ../../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
|
||||||
|
|||||||
@@ -45,11 +45,7 @@ static void uart_write_polled(int minor, char c);
|
|||||||
static int uart_set_attributes(int minor, const struct termios *t);
|
static int uart_set_attributes(int minor, const struct termios *t);
|
||||||
|
|
||||||
/* 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;
|
|
||||||
|
|
||||||
/* Pointers to functions for handling the UART. */
|
/* Pointers to functions for handling the UART. */
|
||||||
console_fns uart_fns =
|
console_fns uart_fns =
|
||||||
@@ -72,7 +68,7 @@ console_fns uart_fns =
|
|||||||
* by console.c, but may be used by drivers in libchip
|
* by console.c, but may be used by drivers in libchip
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
console_tbl Console_Port_Tbl[] = {
|
console_tbl Console_Configuration_Ports[] = {
|
||||||
{
|
{
|
||||||
"/dev/console", /* sDeviceName */
|
"/dev/console", /* sDeviceName */
|
||||||
SERIAL_CUSTOM, /* deviceType */
|
SERIAL_CUSTOM, /* deviceType */
|
||||||
|
|||||||
Reference in New Issue
Block a user