Changeset c592a7f in rtems


Ignore:
Timestamp:
Nov 3, 2008, 8:54:33 PM (12 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.8
Children:
47927b0
Parents:
f3a4c7a
Message:

2008-11-03 Till Straumann <strauman@…>

PR 1332: call BSP_uart_termios_set()/BSP_uart_intr_ctrl()
only from 'firstOpen' and only if this is a serial console.

Location:
c/src/lib/libbsp/i386/pc386
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/ChangeLog

    rf3a4c7a rc592a7f  
     12008-11-03      Till Straumann <strauman@slac.stanford.edu>
     2
     3        PR 1332: call BSP_uart_termios_set()/BSP_uart_intr_ctrl()
     4        only from 'firstOpen' and only if this is a serial console.
     5
    162008-03-03      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • c/src/lib/libbsp/i386/pc386/console/console.c

    rf3a4c7a rc592a7f  
    275275}
    276276
     277static int ser_console_first_open(int major, int minor, void *arg)
     278{
     279  /*
     280   * Pass data area info down to driver
     281   */
     282  BSP_uart_termios_set(BSPConsolePort,
     283                         ((rtems_libio_open_close_args_t *)arg)->iop->data1);
     284
     285  /* Enable interrupts  on channel */
     286  BSP_uart_intr_ctrl(BSPConsolePort, BSP_UART_INTR_CTRL_TERMIOS);
     287
     288  return 0;
     289}
     290
    277291/*-------------------------------------------------------------------------+
    278292| Console device driver OPEN entry point
     
    322336    }
    323337
     338  cb.firstOpen = ser_console_first_open;
     339
    324340  status = rtems_termios_open (major, minor, arg, &cb);
    325341
     
    329345      return status;
    330346    }
    331 
    332   /*
    333    * Pass data area info down to driver
    334    */
    335   BSP_uart_termios_set(BSPConsolePort,
    336                          ((rtems_libio_open_close_args_t *)arg)->iop->data1);
    337 
    338   /* Enable interrupts  on channel */
    339   BSP_uart_intr_ctrl(BSPConsolePort, BSP_UART_INTR_CTRL_TERMIOS);
    340347
    341348  return RTEMS_SUCCESSFUL;
Note: See TracChangeset for help on using the changeset viewer.