Changeset 964c734b in rtems for c/src/lib/libbsp/powerpc/qoriq


Ignore:
Timestamp:
Oct 18, 2011, 6:32:23 PM (9 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.11, 5, master
Children:
3bb9f198
Parents:
32f5a41c
Message:

2011-10-18 Jennifer Averett <Jennifer.Averett@…>

PR 1917/bsps

  • Makefile.am, console/console-config.c, console/uart-bridge-master.c, console/uart-bridge-slave.c, startup/bspstart.c: Modifications to add dynamic tables for libchip serial drivers.
Location:
c/src/lib/libbsp/powerpc/qoriq
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/qoriq/ChangeLog

    r32f5a41c r964c734b  
     12011-10-18      Jennifer Averett <Jennifer.Averett@OARcorp.com>
     2
     3        PR 1917/bsps
     4        * Makefile.am, console/console-config.c, console/uart-bridge-master.c,
     5        console/uart-bridge-slave.c, startup/bspstart.c: Modifications to add
     6        dynamic tables for libchip serial drivers.
     7
    182011-08-31      Sebastian Huber <sebastian.huber@embedded-brains.de>
    29
  • c/src/lib/libbsp/powerpc/qoriq/Makefile.am

    r32f5a41c r964c734b  
    9595# Console
    9696libbsp_a_SOURCES += ../../shared/console.c \
     97        ../../shared/console_select.c \
    9798        console/uart-bridge-master.c \
    9899        console/uart-bridge-slave.c \
    99         console/console-config.c
     100        console/console-config.c \
     101        ../../shared/console_read.c \
     102        ../../shared/console_write.c \
     103        ../../shared/console_control.c
     104
    100105
    101106# RTC
  • c/src/lib/libbsp/powerpc/qoriq/console/console-config.c

    r32f5a41c r964c734b  
    2929#include <libchip/serial.h>
    3030#include <libchip/ns16550.h>
     31#include "../../../shared/console_private.h"
    3132
    3233#include <bspopts.h>
     
    117118#endif
    118119
    119 unsigned long Console_Port_Count = CONSOLE_COUNT;
    120 
    121 rtems_device_minor_number Console_Port_Minor;
    122 
    123 console_data Console_Port_Data [CONSOLE_COUNT];
    124 
    125 console_tbl Console_Port_Tbl [CONSOLE_COUNT] = {
     120unsigned long Console_Configuration_Count = CONSOLE_COUNT;
     121console_tbl Console_Configuration_Ports [CONSOLE_COUNT] = {
    126122  #if QORIQ_UART_0_ENABLE
    127123    {
     
    194190static void output_char(char c)
    195191{
    196   const console_fns *con = Console_Port_Tbl [Console_Port_Minor].pDeviceFns;
     192  const console_fns *con = Console_Port_Tbl [Console_Port_Minor]->pDeviceFns;
    197193 
    198194  if (c == '\n') {
  • c/src/lib/libbsp/powerpc/qoriq/console/uart-bridge-master.c

    r32f5a41c r964c734b  
    151151static void initialize(int minor)
    152152{
    153   console_tbl *ct = &Console_Port_Tbl [minor];
     153  console_tbl *ct = Console_Port_Tbl [minor];
    154154  uart_bridge_master_control *control = ct->pDeviceParams;
    155155  intercom_type type = control->type;
  • c/src/lib/libbsp/powerpc/qoriq/console/uart-bridge-slave.c

    r32f5a41c r964c734b  
    130130  rtems_libio_open_close_args_t *oc = (rtems_libio_open_close_args_t *) arg;
    131131  struct rtems_termios_tty *tty = (struct rtems_termios_tty *) oc->iop->data1;
    132   console_tbl *ct = &Console_Port_Tbl [minor];
     132  console_tbl *ct = Console_Port_Tbl[minor];
    133133  console_data *cd = &Console_Port_Data [minor];
    134134  uart_bridge_slave_control *control = ct->pDeviceParams;
     
    146146static int last_close(int major, int minor, void *arg)
    147147{
    148   console_tbl *ct = &Console_Port_Tbl [minor];
     148  console_tbl *ct = Console_Port_Tbl[minor];
    149149  uart_bridge_slave_control *control = ct->pDeviceParams;
    150150
     
    157157{
    158158  rtems_status_code sc = RTEMS_SUCCESSFUL;
    159   console_tbl *ct = &Console_Port_Tbl [minor];
     159  console_tbl *ct = Console_Port_Tbl[minor];
    160160  uart_bridge_slave_control *control = ct->pDeviceParams;
    161161  intercom_packet *packet = qoriq_intercom_allocate_packet(
     
    184184static void write_polled(int minor, char c)
    185185{
    186   console_tbl *ct = &Console_Port_Tbl [minor];
     186  console_tbl *ct = Console_Port_Tbl[minor];
    187187  uart_bridge_slave_control *control = ct->pDeviceParams;
    188188  intercom_packet *packet = qoriq_intercom_allocate_packet(
  • c/src/lib/libbsp/powerpc/qoriq/startup/bspstart.c

    r32f5a41c r964c734b  
    9696  /* Initialize some console parameters */
    9797  for (i = 0; i < Console_Port_Count; ++i) {
    98     console_tbl *ct = &Console_Port_Tbl [i];
     98    console_tbl *ct = &Console_Configuration_Ports[i];
    9999
    100100    ct->ulClock = BSP_bus_frequency;
Note: See TracChangeset for help on using the changeset viewer.