Changeset b43ea9f in rtems


Ignore:
Timestamp:
Apr 5, 2018, 3:07:20 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
efb893f
Parents:
f0bcae38
git-author:
Sebastian Huber <sebastian.huber@…> (04/05/18 15:07:20)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/12/18 05:09:10)
Message:

bsps: Move legacy console driver to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

Files:
2 deleted
27 edited
4 moved

Legend:

Unmodified
Added
Removed
  • bsps/shared/dev/serial/legacy-console-control.c

    rf0bcae38 rb43ea9f  
    2929#include <rtems/console.h>
    3030#include <libchip/serial.h>
    31 #include "console_private.h"
     31#include "legacy-console.h"
    3232
    3333/*
  • bsps/shared/dev/serial/legacy-console-select.c

    rf0bcae38 rb43ea9f  
    2828#include <rtems/termiostypes.h>
    2929#include <libchip/serial.h>
    30 #include "console_private.h"
     30#include "legacy-console.h"
    3131
    3232/*
  • bsps/shared/dev/serial/legacy-console.c

    rf0bcae38 rb43ea9f  
    2727#include <rtems/termiostypes.h>
    2828#include <libchip/serial.h>
    29 #include "console_private.h"
     29#include "legacy-console.h"
    3030
    3131unsigned long               Console_Port_Count  = 0;
     
    373373  return RTEMS_SUCCESSFUL;
    374374}
     375
     376/*
     377 *  console_read
     378 *
     379 *  This routine uses the termios driver to read a character.
     380 */
     381rtems_device_driver console_read(
     382  rtems_device_major_number major,
     383  rtems_device_minor_number minor,
     384  void                    * arg
     385)
     386{
     387  return rtems_termios_read (arg);
     388}
     389
     390/*
     391 *  console_write
     392 *
     393 *  this routine uses the termios driver to write a character.
     394 */
     395rtems_device_driver console_write(
     396  rtems_device_major_number major,
     397  rtems_device_minor_number minor,
     398  void                    * arg
     399)
     400{
     401  return rtems_termios_write (arg);
     402}
  • c/src/lib/libbsp/arm/beagle/Makefile.am

    rf0bcae38 rb43ea9f  
    6666
    6767# Console
    68 librtemsbsp_a_SOURCES += ../../shared/console.c \
    69         ../../shared/console_select.c \
    70   console/console-config.c \
    71         ../../shared/console_read.c \
    72         ../../shared/console_write.c \
    73         ../../shared/console_control.c
     68librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console.c
     69librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-control.c
     70librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-select.c
     71librtemsbsp_a_SOURCES += console/console-config.c
    7472
    7573# I2C
  • c/src/lib/libbsp/arm/csb337/Makefile.am

    rf0bcae38 rb43ea9f  
    4040librtemsbsp_a_SOURCES += timer/timer.c
    4141# console
    42 librtemsbsp_a_SOURCES += ../../shared/console.c console/uarts.c \
    43     ../../shared/console_select.c  ../../shared/console_control.c \
    44     ../../shared/console_read.c ../../shared/console_write.c
     42librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console.c
     43librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-control.c
     44librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-select.c
     45librtemsbsp_a_SOURCES += console/uarts.c
    4546librtemsbsp_a_SOURCES += console/dbgu.c
    4647librtemsbsp_a_SOURCES += console/usart.c
  • c/src/lib/libbsp/arm/edb7312/Makefile.am

    rf0bcae38 rb43ea9f  
    3131librtemsbsp_a_SOURCES += ../../shared/clockdrv_shell.h
    3232# console
    33 librtemsbsp_a_SOURCES += console/uart.c ../../shared/console.c \
    34     ../../shared/console_select.c  ../../shared/console_control.c \
    35     ../../shared/console_read.c ../../shared/console_write.c
     33librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console.c
     34librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-control.c
     35librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-select.c
     36librtemsbsp_a_SOURCES += console/uart.c
    3637# timer
    3738librtemsbsp_a_SOURCES += timer/timer.c
  • c/src/lib/libbsp/arm/gumstix/Makefile.am

    rf0bcae38 rb43ea9f  
    3030
    3131#console
    32 librtemsbsp_a_SOURCES += console/uarts.c ../../shared/console.c \
    33   ../../shared/console_select.c  ../../shared/console_control.c \
    34   ../../shared/console_read.c ../../shared/console_write.c
     32librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console.c
     33librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-control.c
     34librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-select.c
     35librtemsbsp_a_SOURCES += console/uarts.c
    3536librtemsbsp_a_SOURCES += console/ffuart.c
    3637# IRQ
  • c/src/lib/libbsp/arm/lm3s69xx/Makefile.am

    rf0bcae38 rb43ea9f  
    5757
    5858# Console
    59 librtemsbsp_a_SOURCES += ../../shared/console.c
    60 librtemsbsp_a_SOURCES += ../../shared/console_control.c
    61 librtemsbsp_a_SOURCES += ../../shared/console_read.c
    62 librtemsbsp_a_SOURCES += ../../shared/console_select.c
    63 librtemsbsp_a_SOURCES += ../../shared/console_write.c
     59librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console.c
     60librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-control.c
     61librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-select.c
    6462librtemsbsp_a_SOURCES += console/console-config.c
    6563librtemsbsp_a_SOURCES += console/uart.c
  • c/src/lib/libbsp/arm/raspberrypi/Makefile.am

    rf0bcae38 rb43ea9f  
    7070
    7171# Console
    72 librtemsbsp_a_SOURCES += ../../shared/console.c
    73 librtemsbsp_a_SOURCES += ../../shared/console_control.c
    74 librtemsbsp_a_SOURCES += ../../shared/console_read.c
    75 librtemsbsp_a_SOURCES += ../../shared/console_write.c
     72librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console.c
     73librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-control.c
    7674librtemsbsp_a_SOURCES += console/console-config.c
    7775librtemsbsp_a_SOURCES += console/console_select.c
  • c/src/lib/libbsp/arm/raspberrypi/console/console_select.c

    rf0bcae38 rb43ea9f  
    2727#include <rtems/termiostypes.h>
    2828#include <libchip/serial.h>
    29 #include "../../../shared/console_private.h"
     29#include "../../../../../../../bsps/shared/dev/serial/legacy-console.h"
    3030#include <bsp/rpi-fb.h>
    3131
  • c/src/lib/libbsp/arm/rtl22xx/Makefile.am

    rf0bcae38 rb43ea9f  
    3232librtemsbsp_a_SOURCES += clock/clockdrv.c
    3333# console
    34 librtemsbsp_a_SOURCES += ../../shared/console.c \
    35     ../../shared/console_select.c ../../shared/console_control.c \
    36     ../../shared/console_read.c ../../shared/console_write.c
     34librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console.c
     35librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-control.c
     36librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-select.c
     37librtemsbsp_a_SOURCES += console/uart.c
    3738# IRQ
    3839librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/irq/irq-default-handler.c
    3940librtemsbsp_a_SOURCES += irq/irq.c
    40 # debugio
    41 librtemsbsp_a_SOURCES += console/uart.c
    4241
    4342# Cache
  • c/src/lib/libbsp/arm/smdk2410/Makefile.am

    rf0bcae38 rb43ea9f  
    3535librtemsbsp_a_SOURCES += clock/support.c
    3636# console
     37librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console.c
     38librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-control.c
     39librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-select.c
    3740librtemsbsp_a_SOURCES += console/uart.c
    38 librtemsbsp_a_SOURCES += ../../shared/console.c
    39 librtemsbsp_a_SOURCES += ../../shared/console_select.c
    40 librtemsbsp_a_SOURCES += ../../shared/console_read.c
    41 librtemsbsp_a_SOURCES += ../../shared/console_write.c
    42 librtemsbsp_a_SOURCES += ../../shared/console_control.c
    4341# IRQ
    4442librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/irq/irq-default-handler.c
  • c/src/lib/libbsp/arm/stm32f4/Makefile.am

    rf0bcae38 rb43ea9f  
    5757
    5858# Console
    59 librtemsbsp_a_SOURCES += ../../shared/console.c
    60 librtemsbsp_a_SOURCES += ../../shared/console_control.c
    61 librtemsbsp_a_SOURCES += ../../shared/console_read.c
    62 librtemsbsp_a_SOURCES += ../../shared/console_select.c
    63 librtemsbsp_a_SOURCES += ../../shared/console_write.c
     59librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console.c
     60librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-control.c
     61librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-select.c
    6462librtemsbsp_a_SOURCES += console/console-config.c
    6563librtemsbsp_a_SOURCES += console/usart.c
  • c/src/lib/libbsp/i386/pc386/Makefile.am

    rf0bcae38 rb43ea9f  
    8282librtemsbsp_a_SOURCES += ../../i386/shared/comm/tty_drv.c
    8383librtemsbsp_a_SOURCES += ../../i386/shared/realmode_int/realmode_int.c
    84 librtemsbsp_a_SOURCES += ../../shared/console.c
     84librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console.c
    8585librtemsbsp_a_SOURCES += console/console_select.c
    86 librtemsbsp_a_SOURCES += ../../shared/console_read.c
    87 librtemsbsp_a_SOURCES += ../../shared/console_write.c
    8886librtemsbsp_a_SOURCES += console/console_control.c
    8987librtemsbsp_a_SOURCES += console/conscfg.c
  • c/src/lib/libbsp/i386/pc386/console/conscfg.c

    rf0bcae38 rb43ea9f  
    2424#endif
    2525#include <bsp/irq.h>
    26 #include "../../../shared/console_private.h"
     26#include "../../../../../../../bsps/shared/dev/serial/legacy-console.h"
    2727
    2828#if BSP_ENABLE_VGA
  • c/src/lib/libbsp/i386/pc386/console/console_control.c

    rf0bcae38 rb43ea9f  
    3131#include <rtems/keyboard.h>
    3232#endif
    33 #include "../../../shared/console_private.h"
     33#include "../../../../../../../bsps/shared/dev/serial/legacy-console.h"
    3434
    3535/*
  • c/src/lib/libbsp/i386/pc386/console/console_select.c

    rf0bcae38 rb43ea9f  
    3030#include <bsp/bspimpl.h>
    3131
    32 #include "../../../shared/console_private.h"
     32#include "../../../../../../../bsps/shared/dev/serial/legacy-console.h"
    3333#ifdef RTEMS_RUNTIME_CONSOLE_SELECT
    3434  #include <crt.h>
  • c/src/lib/libbsp/i386/pc386/console/exar17d15x.c

    rf0bcae38 rb43ea9f  
    2828#include <rtems/pci.h>
    2929#include <bsp/exar17d15x.h>
    30 #include "../../../shared/console_private.h"
     30#include "../../../../../../../bsps/shared/dev/serial/legacy-console.h"
    3131
    3232#define MAX_BOARDS 4
  • c/src/lib/libbsp/i386/pc386/console/gdb_select.c

    rf0bcae38 rb43ea9f  
    3131#include <bsp/bspimpl.h>
    3232
    33 #include "../../../shared/console_private.h"
     33#include "../../../../../../../bsps/shared/dev/serial/legacy-console.h"
    3434
    3535/*
  • c/src/lib/libbsp/i386/pc386/console/printk_support.c

    rf0bcae38 rb43ea9f  
    2626#include <libchip/serial.h>
    2727#include <libchip/ns16550.h>
    28 #include "../../../shared/console_private.h"
     28#include "../../../../../../../bsps/shared/dev/serial/legacy-console.h"
    2929
    3030rtems_device_minor_number BSPPrintkPort = 0;
  • c/src/lib/libbsp/i386/pc386/console/rtd316.c

    rf0bcae38 rb43ea9f  
    2727#include <bsp/rtd316.h>
    2828#include <rtems/score/i386.h>
    29 #include "../../../shared/console_private.h"
     29#include "../../../../../../../bsps/shared/dev/serial/legacy-console.h"
    3030
    3131#define RTD_CLOCK_RATE  (460800 * 32)
  • c/src/lib/libbsp/i386/pc386/console/serial_mouse_config.c

    rf0bcae38 rb43ea9f  
    1616
    1717#include <libchip/serial.h>
    18 #include "../../../shared/console_private.h"
     18#include "../../../../../../../bsps/shared/dev/serial/legacy-console.h"
    1919
    2020/* select which serial port the mouse is connected to */
  • c/src/lib/libbsp/i386/pc386/console/uart_bus_pci.c

    rf0bcae38 rb43ea9f  
    237237#include <rtems/bspIo.h>
    238238#include <rtems/pci.h>
    239 #include "../../../shared/console_private.h"
     239#include "../../../../../../../bsps/shared/dev/serial/legacy-console.h"
    240240
    241241#define MAX_BOARDS 4
  • c/src/lib/libbsp/i386/shared/comm/i386-stub-glue.c

    rf0bcae38 rb43ea9f  
    1313#include <libchip/serial.h>
    1414
    15 #include "../../../shared/console_private.h"
     15#include "../../../../../../../bsps/shared/dev/serial/legacy-console.h"
    1616
    1717int  putDebugChar(int ch);     /* write a single character      */
  • c/src/lib/libbsp/mips/malta/Makefile.am

    rf0bcae38 rb43ea9f  
    4242
    4343# console
     44librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console.c
     45librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-control.c
     46librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-select.c
    4447librtemsbsp_a_SOURCES += console/conscfg.c
    4548librtemsbsp_a_SOURCES += console/printk_support.c
    46 librtemsbsp_a_SOURCES += ../../shared/console.c
    47 librtemsbsp_a_SOURCES += ../../shared/console_select.c
    48 librtemsbsp_a_SOURCES += ../../shared/console_read.c
    49 librtemsbsp_a_SOURCES += ../../shared/console_write.c
    50 librtemsbsp_a_SOURCES += ../../shared/console_control.c
    5149# timer
    5250librtemsbsp_a_SOURCES += ../../shared/timerstub.c
  • c/src/lib/libbsp/or1k/generic_or1k/Makefile.am

    rf0bcae38 rb43ea9f  
    5252
    5353# Console
    54 librtemsbsp_a_SOURCES += ../../shared/console.c
    55 librtemsbsp_a_SOURCES += ../../shared/console_control.c
    56 librtemsbsp_a_SOURCES += ../../shared/console_read.c
    57 librtemsbsp_a_SOURCES += ../../shared/console_select.c
    58 librtemsbsp_a_SOURCES += ../../shared/console_write.c
     54librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console.c
     55librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-control.c
     56librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-select.c
    5957librtemsbsp_a_SOURCES += console/console-config.c
    6058librtemsbsp_a_SOURCES += console/uart.c
  • c/src/lib/libbsp/powerpc/virtex/Makefile.am

    rf0bcae38 rb43ea9f  
    3939
    4040# bspconsole
    41 librtemsbsp_a_SOURCES += console/consolelite.c ../../shared/console.c \
    42     ../../shared/console_select.c ../../shared/console_control.c \
    43     ../../shared/console_read.c ../../shared/console_write.c
     41librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console.c
     42librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-control.c
     43librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-select.c
     44librtemsbsp_a_SOURCES += console/consolelite.c
    4445
    4546# irq
  • c/src/lib/libbsp/sparc/erc32/Makefile.am

    rf0bcae38 rb43ea9f  
    4343librtemsbsp_a_SOURCES += gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c
    4444# console
    45 librtemsbsp_a_SOURCES += console/erc32_console.c ../../shared/console.c \
    46     ../../shared/console_select.c  ../../shared/console_control.c \
    47     ../../shared/console_read.c ../../shared/console_write.c
     45librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console.c
     46librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-control.c
     47librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-select.c
     48librtemsbsp_a_SOURCES += console/erc32_console.c
    4849# debugio
    4950librtemsbsp_a_SOURCES += console/debugputs.c
  • c/src/lib/libbsp/sparc64/niagara/Makefile.am

    rf0bcae38 rb43ea9f  
    3838clock_SOURCES = ../shared/clock/ckinit.c
    3939
    40 console_SOURCES = ../../shared/console.c  ../shared/console/conscfg.c \
    41     ../../shared/console_select.c ../../shared/console_control.c \
    42     ../../shared/console_read.c ../../shared/console_write.c
     40console_SOURCES = ../shared/console/conscfg.c
     41console_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console.c
     42console_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-control.c
     43console_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-select.c
    4344
    4445timer_SOURCES = ../../shared/timerstub.c
  • c/src/lib/libbsp/sparc64/usiii/Makefile.am

    rf0bcae38 rb43ea9f  
    5151clock_SOURCES = ../shared/clock/ckinit.c
    5252
    53 console_SOURCES = ../../shared/console.c  ../shared/console/conscfg.c \
    54     ../../shared/console_select.c  ../../shared/console_control.c \
    55     ../../shared/console_read.c ../../shared/console_write.c
     53console_SOURCES = ../shared/console/conscfg.c
     54console_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console.c
     55console_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-control.c
     56console_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console-select.c
    5657
    5758timer_SOURCES = ../../shared/timerstub.c
Note: See TracChangeset for help on using the changeset viewer.