Changeset cae0504 in rtems


Ignore:
Timestamp:
Jul 25, 1998, 5:19:45 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
749c54e
Parents:
8739322
Message:

Corrected spacing and added headers.

Location:
c/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libchip/serial/ns16550.c

    r8739322 rcae0504  
    3333 * Flow control is only supported when using interrupts
    3434 */
    35 console_flow ns16550_flow_RTSCTS =
    36 {
     35
     36console_flow ns16550_flow_RTSCTS = {
    3737  ns16550_negate_RTS,             /* deviceStopRemoteTx */
    3838  ns16550_assert_RTS              /* deviceStartRemoteTx */
    3939};
    4040
    41 console_flow ns16550_flow_DTRCTS =
    42 {
     41console_flow ns16550_flow_DTRCTS = {
    4342  ns16550_negate_DTR,             /* deviceStopRemoteTx */
    4443  ns16550_assert_DTR              /* deviceStartRemoteTx */
    4544};
    4645
    47 console_fns ns16550_fns =
    48 {
     46console_fns ns16550_fns = {
    4947  libchip_serial_default_probe,   /* deviceProbe */
    5048  ns16550_open,                   /* deviceFirstOpen */
     
    5856};
    5957
    60 console_fns ns16550_fns_polled =
    61 {
     58console_fns ns16550_fns_polled = {
    6259  libchip_serial_default_probe,        /* deviceProbe */
    6360  ns16550_open,                        /* deviceFirstOpen */
     
    7370extern void set_vector( rtems_isr_entry, rtems_vector_number, int );
    7471
     72/*
     73 *  ns16550_init
     74 */
     75
    7576NS16550_STATIC void ns16550_init(int minor)
    7677{
     
    132133}
    133134
     135/*
     136 *  ns16550_open
     137 */
     138
    134139NS16550_STATIC int ns16550_open(
    135140  int      major,
     
    148153  return(RTEMS_SUCCESSFUL);
    149154}
     155
     156/*
     157 *  ns16550_close
     158 */
    150159
    151160NS16550_STATIC int ns16550_close(
     
    211220 * These routines provide control of the RTS and DTR lines
    212221 */
     222
    213223/*
    214224 *  ns16550_assert_RTS
    215225 */
     226
    216227NS16550_STATIC int ns16550_assert_RTS(int minor)
    217228{
     
    239250 *  ns16550_negate_RTS
    240251 */
     252
    241253NS16550_STATIC int ns16550_negate_RTS(int minor)
    242254{
     
    265277 * line to the remote CTS line
    266278 */
     279
    267280/*
    268281 *  ns16550_assert_DTR
    269282 */
     283
    270284NS16550_STATIC int ns16550_assert_DTR(int minor)
    271285{
     
    412426
    413427/*
    414  *  ns16550_isr
    415  *
    416  *  This routine is the console interrupt handler for COM1 and COM2
    417  *
    418  *  Input parameters:
    419  *    vector - vector number
    420  *
    421  *  Output parameters: NONE
    422  *
    423  *  Return values:     NONE
     428 *  ns16550_process
     429 *
     430 *  This routine is the console interrupt handler for A port.
    424431 */
    425432
     
    494501}
    495502
     503/*
     504 *  ns16550_isr
     505 */
     506
    496507NS16550_STATIC rtems_isr ns16550_isr(
    497508  rtems_vector_number vector
  • c/src/libchip/serial/ns16550.c

    r8739322 rcae0504  
    3333 * Flow control is only supported when using interrupts
    3434 */
    35 console_flow ns16550_flow_RTSCTS =
    36 {
     35
     36console_flow ns16550_flow_RTSCTS = {
    3737  ns16550_negate_RTS,             /* deviceStopRemoteTx */
    3838  ns16550_assert_RTS              /* deviceStartRemoteTx */
    3939};
    4040
    41 console_flow ns16550_flow_DTRCTS =
    42 {
     41console_flow ns16550_flow_DTRCTS = {
    4342  ns16550_negate_DTR,             /* deviceStopRemoteTx */
    4443  ns16550_assert_DTR              /* deviceStartRemoteTx */
    4544};
    4645
    47 console_fns ns16550_fns =
    48 {
     46console_fns ns16550_fns = {
    4947  libchip_serial_default_probe,   /* deviceProbe */
    5048  ns16550_open,                   /* deviceFirstOpen */
     
    5856};
    5957
    60 console_fns ns16550_fns_polled =
    61 {
     58console_fns ns16550_fns_polled = {
    6259  libchip_serial_default_probe,        /* deviceProbe */
    6360  ns16550_open,                        /* deviceFirstOpen */
     
    7370extern void set_vector( rtems_isr_entry, rtems_vector_number, int );
    7471
     72/*
     73 *  ns16550_init
     74 */
     75
    7576NS16550_STATIC void ns16550_init(int minor)
    7677{
     
    132133}
    133134
     135/*
     136 *  ns16550_open
     137 */
     138
    134139NS16550_STATIC int ns16550_open(
    135140  int      major,
     
    148153  return(RTEMS_SUCCESSFUL);
    149154}
     155
     156/*
     157 *  ns16550_close
     158 */
    150159
    151160NS16550_STATIC int ns16550_close(
     
    211220 * These routines provide control of the RTS and DTR lines
    212221 */
     222
    213223/*
    214224 *  ns16550_assert_RTS
    215225 */
     226
    216227NS16550_STATIC int ns16550_assert_RTS(int minor)
    217228{
     
    239250 *  ns16550_negate_RTS
    240251 */
     252
    241253NS16550_STATIC int ns16550_negate_RTS(int minor)
    242254{
     
    265277 * line to the remote CTS line
    266278 */
     279
    267280/*
    268281 *  ns16550_assert_DTR
    269282 */
     283
    270284NS16550_STATIC int ns16550_assert_DTR(int minor)
    271285{
     
    412426
    413427/*
    414  *  ns16550_isr
    415  *
    416  *  This routine is the console interrupt handler for COM1 and COM2
    417  *
    418  *  Input parameters:
    419  *    vector - vector number
    420  *
    421  *  Output parameters: NONE
    422  *
    423  *  Return values:     NONE
     428 *  ns16550_process
     429 *
     430 *  This routine is the console interrupt handler for A port.
    424431 */
    425432
     
    494501}
    495502
     503/*
     504 *  ns16550_isr
     505 */
     506
    496507NS16550_STATIC rtems_isr ns16550_isr(
    497508  rtems_vector_number vector
Note: See TracChangeset for help on using the changeset viewer.