Changeset b070d69 in rtems


Ignore:
Timestamp:
Jul 25, 1998, 4:18:27 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
c1da250
Parents:
f600da3f
Message:

Removed mc68681_flush and corrected spacing.

Location:
c/src
Files:
4 edited

Legend:

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

    rf600da3f rb070d69  
    411411
    412412/*
    413  *  mc68681_flush
    414  *
    415  *  This routine waits before all output is completed before closing
    416  *  the requested port.
    417  *
    418  *  NOTE:  This is the "interrupt mode" close entry point.
    419  */
    420 
    421 /* XXX remove me */
    422 MC68681_STATIC int mc68681_flush(int major, int minor, void *arg)
    423 {
    424 #if 0
    425   while(!Ring_buffer_Is_empty(&Console_Port_Data[minor].TxBuffer)) {
    426     /*
    427      * Yield while we wait
    428      */
    429     if(_System_state_Is_up(_System_state_Get())) {
    430       rtems_task_wake_after(RTEMS_YIELD_PROCESSOR);
    431     }
    432   }
    433 
    434   mc68681_close(major, minor, arg);
    435 
    436 #endif
    437   return(RTEMS_SUCCESSFUL);
    438 }
    439 
    440 /*
    441413 *  mc68681_initialize_interrupts
    442414 *
     
    476448
    477449  /*
    478    *  We are using interrupt driven output and termios only sends us one character
    479    *  at a time.
     450   *  We are using interrupt driven output and termios only sends us
     451   *  one character at a time.
    480452   */
    481453
     
    484456
    485457  /*
    486    * Wake up the device
    487    */
     458   *  Put the character out and enable interrupts if necessary.
     459   */
     460
    488461  rtems_interrupt_disable(Irql);
    489462    if ( Console_Port_Data[minor].bActive == FALSE ) {
     
    493466    (*setReg)(pMC68681_port, MC68681_TX_BUFFER, *buf);
    494467  rtems_interrupt_enable(Irql);
     468
    495469  return 1;
    496470}
  • c/src/lib/libchip/serial/mc68681_p.h

    rf600da3f rb070d69  
    281281MC68681_STATIC void mc68681_initialize_interrupts(int minor);
    282282
    283 MC68681_STATIC int mc68681_flush(int major, int minor, void *arg);
    284 
    285283MC68681_STATIC int mc68681_write_support_int(
    286284  int   minor,
  • c/src/libchip/serial/mc68681.c

    rf600da3f rb070d69  
    411411
    412412/*
    413  *  mc68681_flush
    414  *
    415  *  This routine waits before all output is completed before closing
    416  *  the requested port.
    417  *
    418  *  NOTE:  This is the "interrupt mode" close entry point.
    419  */
    420 
    421 /* XXX remove me */
    422 MC68681_STATIC int mc68681_flush(int major, int minor, void *arg)
    423 {
    424 #if 0
    425   while(!Ring_buffer_Is_empty(&Console_Port_Data[minor].TxBuffer)) {
    426     /*
    427      * Yield while we wait
    428      */
    429     if(_System_state_Is_up(_System_state_Get())) {
    430       rtems_task_wake_after(RTEMS_YIELD_PROCESSOR);
    431     }
    432   }
    433 
    434   mc68681_close(major, minor, arg);
    435 
    436 #endif
    437   return(RTEMS_SUCCESSFUL);
    438 }
    439 
    440 /*
    441413 *  mc68681_initialize_interrupts
    442414 *
     
    476448
    477449  /*
    478    *  We are using interrupt driven output and termios only sends us one character
    479    *  at a time.
     450   *  We are using interrupt driven output and termios only sends us
     451   *  one character at a time.
    480452   */
    481453
     
    484456
    485457  /*
    486    * Wake up the device
    487    */
     458   *  Put the character out and enable interrupts if necessary.
     459   */
     460
    488461  rtems_interrupt_disable(Irql);
    489462    if ( Console_Port_Data[minor].bActive == FALSE ) {
     
    493466    (*setReg)(pMC68681_port, MC68681_TX_BUFFER, *buf);
    494467  rtems_interrupt_enable(Irql);
     468
    495469  return 1;
    496470}
  • c/src/libchip/serial/mc68681_p.h

    rf600da3f rb070d69  
    281281MC68681_STATIC void mc68681_initialize_interrupts(int minor);
    282282
    283 MC68681_STATIC int mc68681_flush(int major, int minor, void *arg);
    284 
    285283MC68681_STATIC int mc68681_write_support_int(
    286284  int   minor,
Note: See TracChangeset for help on using the changeset viewer.