Changeset c8bd3cd in rtems


Ignore:
Timestamp:
Feb 8, 2013, 12:39:59 PM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
5455f23a
Parents:
e4933743
git-author:
Sebastian Huber <sebastian.huber@…> (02/08/13 12:39:59)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/11/13 13:44:46)
Message:

libchip/serial: Add const qualifier

Location:
c/src
Files:
38 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/csb337/console/fbcons.c

    re4933743 rc8bd3cd  
    3232
    3333/* Pointers to functions for handling the UART. */
    34 console_fns fbcons_fns =
     34const console_fns fbcons_fns =
    3535{
    3636  libchip_serial_default_probe,
  • c/src/lib/libbsp/arm/csb337/console/uarts.c

    re4933743 rc8bd3cd  
    3030#include <bspopts.h>
    3131
    32 extern console_fns dbgu_fns;
     32extern const console_fns dbgu_fns;
    3333
    3434#if ENABLE_LCD
    35   extern console_fns fbcons_fns;
     35  extern const console_fns fbcons_fns;
    3636  #define LCD_DEV 1
    3737#else
     
    4040
    4141#if (ENABLE_UMON && ENABLE_UMON_CONSOLE)
    42   extern console_fns umoncons_fns;
     42  extern const console_fns umoncons_fns;
    4343  #define UMON_CONS_DEV 1
    4444#else
     
    4747
    4848#if ENABLE_USART0 || ENABLE_USART1 || ENABLE_USART2 || ENABLE_USART3
    49   extern console_fns usart_polling_fns;
     49  extern const console_fns usart_polling_fns;
    5050#endif
    5151
  • c/src/lib/libbsp/arm/edb7312/console/uart.c

    re4933743 rc8bd3cd  
    3131unsigned long Console_Configuration_Count = NUM_DEVS;
    3232
    33 console_fns uart_fns =
     33const console_fns uart_fns =
    3434{
    3535    libchip_serial_default_probe,
  • c/src/lib/libbsp/arm/gp32/console/uart.c

    re4933743 rc8bd3cd  
    4646
    4747/* Pointers to functions for handling the UART. */
    48 console_fns uart_fns =
     48const console_fns uart_fns =
    4949{
    5050    libchip_serial_default_probe,
  • c/src/lib/libbsp/arm/gumstix/console/uarts.c

    re4933743 rc8bd3cd  
    2828unsigned long Console_Configuration_Count = NUM_DEVS;
    2929
    30 extern console_fns ffuart_fns;
     30extern const console_fns ffuart_fns;
    3131
    3232/*
  • c/src/lib/libbsp/arm/lm3s69xx/console/uart.c

    re4933743 rc8bd3cd  
    9292}
    9393
    94 console_fns lm3s69xx_uart_fns = {
     94const console_fns lm3s69xx_uart_fns = {
    9595  .deviceProbe = libchip_serial_default_probe,
    9696  .deviceFirstOpen = first_open,
  • c/src/lib/libbsp/arm/lm3s69xx/include/uart.h

    re4933743 rc8bd3cd  
    7878} lm3s69xx_uart;
    7979
    80 extern console_fns lm3s69xx_uart_fns;
     80extern const console_fns lm3s69xx_uart_fns;
    8181
    8282#ifdef __cplusplus
  • c/src/lib/libbsp/arm/lpc32xx/console/console-config.c

    re4933743 rc8bd3cd  
    2727#include <bsp/irq.h>
    2828
    29 extern console_fns lpc32xx_hsu_fns;
     29extern const console_fns lpc32xx_hsu_fns;
    3030
    3131static uint8_t lpc32xx_uart_get_register(uintptr_t addr, uint8_t i)
  • c/src/lib/libbsp/arm/lpc32xx/console/hsu.c

    re4933743 rc8bd3cd  
    190190}
    191191
    192 console_fns lpc32xx_hsu_fns = {
     192const console_fns lpc32xx_hsu_fns = {
    193193  .deviceProbe = libchip_serial_default_probe,
    194194  .deviceFirstOpen = lpc32xx_hsu_first_open,
  • c/src/lib/libbsp/arm/rtl22xx/console/uart.c

    re4933743 rc8bd3cd  
    4848
    4949/* Pointers to functions for handling the UART. */
    50 console_fns uart_fns =
     50const console_fns uart_fns =
    5151{
    5252    libchip_serial_default_probe,
  • c/src/lib/libbsp/arm/stm32f4/console/usart.c

    re4933743 rc8bd3cd  
    200200}
    201201
    202 console_fns stm32f4_usart_fns = {
     202const console_fns stm32f4_usart_fns = {
    203203  .deviceProbe = libchip_serial_default_probe,
    204204  .deviceFirstOpen = usart_first_open,
  • c/src/lib/libbsp/arm/stm32f4/include/usart.h

    re4933743 rc8bd3cd  
    2222#endif /* __cplusplus */
    2323
    24 extern console_fns stm32f4_usart_fns;
     24extern const console_fns stm32f4_usart_fns;
    2525
    2626#ifdef __cplusplus
  • c/src/lib/libbsp/i386/pc386/console/vgacons.c

    re4933743 rc8bd3cd  
    187187}
    188188
    189 console_fns vgacons_fns =
     189const console_fns vgacons_fns =
    190190{
    191191  libchip_serial_default_probe,        /* deviceProbe */
  • c/src/lib/libbsp/i386/pc386/console/vgacons.h

    re4933743 rc8bd3cd  
    3333 * Driver function table
    3434 */
    35 extern console_fns vgacons_fns;
     35extern const console_fns vgacons_fns;
    3636
    3737#ifdef __cplusplus
  • c/src/lib/libbsp/powerpc/ep1a/console/config.c

    re4933743 rc8bd3cd  
    4040static bool config_68360_scc_base_probe_12(int minor);
    4141
    42 extern console_fns mc68360_scc_fns;
     42extern const console_fns mc68360_scc_fns;
    4343
    4444/*
  • c/src/lib/libbsp/powerpc/ep1a/console/mc68360_scc.c

    re4933743 rc8bd3cd  
    960960}
    961961
    962 console_fns mc68360_scc_fns = {
     962const console_fns mc68360_scc_fns = {
    963963  libchip_serial_default_probe,        /* deviceProbe */
    964964  mc68360_scc_open,                    /* deviceFirstOpen */
     
    972972};
    973973
    974 console_fns mc68360_scc_polled = {
     974const console_fns mc68360_scc_polled = {
    975975  libchip_serial_default_probe,             /* deviceProbe */
    976976  mc68360_scc_open,                         /* deviceFirstOpen */
  • c/src/lib/libbsp/powerpc/ep1a/console/ns16550cfg.h

    re4933743 rc8bd3cd  
    3232);
    3333
    34 extern console_fns ns16550_fns_8245;
    35 extern console_fns ns16550_fns_polled_8245;
     34extern const console_fns ns16550_fns_8245;
     35extern const console_fns ns16550_fns_polled_8245;
    3636
    3737#ifdef __cplusplus
  • c/src/lib/libbsp/powerpc/qoriq/console/uart-bridge-master.c

    re4933743 rc8bd3cd  
    183183}
    184184
    185 console_fns qoriq_uart_bridge_master = {
     185const console_fns qoriq_uart_bridge_master = {
    186186  .deviceProbe = libchip_serial_default_probe,
    187187  .deviceFirstOpen = first_open,
  • c/src/lib/libbsp/powerpc/qoriq/console/uart-bridge-slave.c

    re4933743 rc8bd3cd  
    199199}
    200200
    201 console_fns qoriq_uart_bridge_slave = {
     201const console_fns qoriq_uart_bridge_slave = {
    202202  .deviceProbe = libchip_serial_default_probe,
    203203  .deviceFirstOpen = first_open,
  • c/src/lib/libbsp/powerpc/qoriq/include/uart-bridge.h

    re4933743 rc8bd3cd  
    5656} uart_bridge_slave_control;
    5757
    58 extern console_fns qoriq_uart_bridge_master;
     58extern const console_fns qoriq_uart_bridge_master;
    5959
    60 extern console_fns qoriq_uart_bridge_slave;
     60extern const console_fns qoriq_uart_bridge_slave;
    6161
    6262/** @} */
  • c/src/lib/libbsp/powerpc/t32mppc/console/console-config.c

    re4933743 rc8bd3cd  
    113113}
    114114
    115 static console_fns t32mppc_console_fns = {
     115static const console_fns t32mppc_console_fns = {
    116116  .deviceProbe = libchip_serial_default_probe,
    117117  .deviceFirstOpen = first_open,
  • c/src/lib/libbsp/powerpc/virtex/console/consolelite.c

    re4933743 rc8bd3cd  
    229229
    230230
    231 console_fns xlite_fns_polled =
     231const console_fns xlite_fns_polled =
    232232{
    233233  libchip_serial_default_probe,        /* deviceProbe */
  • c/src/lib/libbsp/sh/gensh2/console/config.c

    re4933743 rc8bd3cd  
    2626 * Function set for interrupt enabled termios console
    2727 */
    28 console_fns sh_sci_fns =
     28const console_fns sh_sci_fns =
    2929{
    3030    libchip_serial_default_probe, /* deviceProbe */
     
    4242 * Function set for polled termios console
    4343 */
    44 console_fns sh_sci_fns_polled =
     44const console_fns sh_sci_fns_polled =
    4545{
    4646    libchip_serial_default_probe, /* deviceProbe */
  • c/src/lib/libbsp/shared/umon/umoncons.c

    re4933743 rc8bd3cd  
    2727
    2828/* Pointers to functions for handling the UART. */
    29 console_fns umoncons_fns =
     29const console_fns umoncons_fns =
    3030{
    3131  libchip_serial_default_probe,
  • c/src/lib/libbsp/sparc/erc32/console/erc32_console.c

    re4933743 rc8bd3cd  
    5858
    5959#if (CONSOLE_USE_INTERRUPTS)
    60   console_fns erc32_fns = {
     60  const console_fns erc32_fns = {
    6161    libchip_serial_default_probe,           /* deviceProbe */
    6262    erc32_console_first_open,               /* deviceFirstOpen */
     
    7070  };
    7171#else
    72   console_fns erc32_fns = {
     72  const console_fns erc32_fns = {
    7373    libchip_serial_default_probe,           /* deviceProbe */
    7474    erc32_console_first_open,               /* deviceFirstOpen */
  • c/src/lib/libbsp/sparc64/shared/console/conscfg.c

    re4933743 rc8bd3cd  
    4646 *  Polled mode functions
    4747 */
    48 console_fns pooled_functions={
     48const console_fns pooled_functions={
    4949  sun4v_console_deviceProbe,       /* deviceProbe */
    5050  sun4v_console_device_first_open, /* deviceFirstOpen */
     
    5858};
    5959
    60 console_flow sun4v_console_console_flow = {
     60const console_flow sun4v_console_console_flow = {
    6161  NULL, /* deviceStopRemoteTx */
    6262  NULL  /* deviceStartRemoteTx */
  • c/src/lib/libcpu/arm/at91rm9200/dbgu/dbgu.c

    re4933743 rc8bd3cd  
    3636
    3737/* Pointers to functions for handling the UART. */
    38 console_fns dbgu_fns =
     38const console_fns dbgu_fns =
    3939{
    4040    libchip_serial_default_probe,
  • c/src/lib/libcpu/arm/at91rm9200/usart/usart.c

    re4933743 rc8bd3cd  
    3838
    3939/* Pointers to functions for handling the UART polled. */
    40 console_fns usart_polling_fns = {
     40const console_fns usart_polling_fns = {
    4141  libchip_serial_default_probe,       /* deviceProbe */
    4242  usart_first_open,                   /* deviceFirstOpen */
  • c/src/lib/libcpu/arm/pxa255/ffuart/ffuart.c

    re4933743 rc8bd3cd  
    3030
    3131/* Pointers to functions for handling the UART. */
    32 console_fns ffuart_fns =
     32const console_fns ffuart_fns =
    3333{
    3434    libchip_serial_default_probe,
  • c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c

    re4933743 rc8bd3cd  
    894894 */
    895895
    896 console_fns mg5uart_fns =
     896const console_fns mg5uart_fns =
    897897{
    898898  libchip_serial_default_probe,   /* deviceProbe */
     
    907907};
    908908
    909 console_fns mg5uart_fns_polled =
     909const console_fns mg5uart_fns_polled =
    910910{
    911911  libchip_serial_default_probe,        /* deviceProbe */
  • c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.h

    re4933743 rc8bd3cd  
    7474 */
    7575
    76 extern console_fns mg5uart_fns;
    77 extern console_fns mg5uart_fns_polled;
     76extern const console_fns mg5uart_fns;
     77extern const console_fns mg5uart_fns_polled;
    7878
    7979/*
  • c/src/libchip/serial/mc68681.c

    re4933743 rc8bd3cd  
    2828 */
    2929
    30 console_fns mc68681_fns =
     30const console_fns mc68681_fns =
    3131{
    3232  libchip_serial_default_probe,   /* deviceProbe */
     
    4141};
    4242
    43 console_fns mc68681_fns_polled =
     43const console_fns mc68681_fns_polled =
    4444{
    4545  libchip_serial_default_probe,        /* deviceProbe */
  • c/src/libchip/serial/mc68681.h

    re4933743 rc8bd3cd  
    6262 */
    6363
    64 extern console_fns mc68681_fns;
    65 extern console_fns mc68681_fns_polled;
     64extern const console_fns mc68681_fns;
     65extern const console_fns mc68681_fns_polled;
    6666
    6767/*
  • c/src/libchip/serial/ns16550.c

    re4933743 rc8bd3cd  
    6363 */
    6464
    65 console_flow ns16550_flow_RTSCTS = {
     65const console_flow ns16550_flow_RTSCTS = {
    6666  ns16550_negate_RTS,             /* deviceStopRemoteTx */
    6767  ns16550_assert_RTS              /* deviceStartRemoteTx */
    6868};
    6969
    70 console_flow ns16550_flow_DTRCTS = {
     70const console_flow ns16550_flow_DTRCTS = {
    7171  ns16550_negate_DTR,             /* deviceStopRemoteTx */
    7272  ns16550_assert_DTR              /* deviceStartRemoteTx */
    7373};
    7474
    75 console_fns ns16550_fns = {
     75const console_fns ns16550_fns = {
    7676  libchip_serial_default_probe,   /* deviceProbe */
    7777  ns16550_open,                   /* deviceFirstOpen */
     
    8585};
    8686
    87 console_fns ns16550_fns_polled = {
     87const console_fns ns16550_fns_polled = {
    8888  libchip_serial_default_probe,        /* deviceProbe */
    8989  ns16550_open,                        /* deviceFirstOpen */
  • c/src/libchip/serial/ns16550.h

    re4933743 rc8bd3cd  
    3636 */
    3737
    38 extern console_fns ns16550_fns;
    39 extern console_fns ns16550_fns_polled;
     38extern const console_fns ns16550_fns;
     39extern const console_fns ns16550_fns_polled;
    4040
    4141/*
     
    4343 */
    4444
    45 extern console_flow ns16550_flow_RTSCTS;
    46 extern console_flow ns16550_flow_DTRCTS;
     45extern const console_flow ns16550_flow_RTSCTS;
     46extern const console_flow ns16550_flow_DTRCTS;
    4747
    4848/*
  • c/src/libchip/serial/serial.h

    re4933743 rc8bd3cd  
    124124  console_devs   deviceType;
    125125  /** pDeviceFns   This is a pointer to the set of driver routines to use. */
    126   console_fns  *pDeviceFns;
     126  const console_fns *pDeviceFns;
    127127  /** This value is passed to the serial device driver for use.  In termios
    128128   *  itself the number is ignored.
     
    136136   *  when the transmitter is active.
    137137   */
    138   console_flow *pDeviceFlow;
     138  const console_flow *pDeviceFlow;
    139139  /** The high water mark in the input buffer is set to the buffer
    140140   *  size less ulMargin. Once this level is reached, the driver's
  • c/src/libchip/serial/z85c30.c

    re4933743 rc8bd3cd  
    4141 */
    4242
    43 console_flow z85c30_flow_RTSCTS = {
     43const console_flow z85c30_flow_RTSCTS = {
    4444  z85c30_negate_RTS,    /* deviceStopRemoteTx */
    4545  z85c30_assert_RTS     /* deviceStartRemoteTx */
    4646};
    4747
    48 console_flow z85c30_flow_DTRCTS = {
     48const console_flow z85c30_flow_DTRCTS = {
    4949  z85c30_negate_DTR,    /* deviceStopRemoteTx */
    5050  z85c30_assert_DTR     /* deviceStartRemoteTx */
     
    5555 */
    5656
    57 console_fns z85c30_fns = {
     57const console_fns z85c30_fns = {
    5858  libchip_serial_default_probe,  /* deviceProbe */
    5959  z85c30_open,                   /* deviceFirstOpen */
     
    6767};
    6868
    69 console_fns z85c30_fns_polled = {
     69const console_fns z85c30_fns_polled = {
    7070  libchip_serial_default_probe,      /* deviceProbe */
    7171  z85c30_open,                       /* deviceFirstOpen */
  • c/src/libchip/serial/z85c30.h

    re4933743 rc8bd3cd  
    4343 */
    4444
    45 extern console_fns z85c30_fns;
    46 extern console_fns z85c30_fns_polled;
     45extern const console_fns z85c30_fns;
     46extern const console_fns z85c30_fns_polled;
    4747
    4848/*
     
    5050 */
    5151
    52 extern console_flow z85c30_flow_RTSCTS;
    53 extern console_flow z85c30_flow_DTRCTS;
     52extern const console_flow z85c30_flow_RTSCTS;
     53extern const console_flow z85c30_flow_DTRCTS;
    5454
    5555/*
Note: See TracChangeset for help on using the changeset viewer.