Changeset 8c49701 in rtems


Ignore:
Timestamp:
Oct 18, 2000, 3:46:07 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
1fc2292d
Parents:
21c8738
Message:

2000-10-18 Joel Sherrill <joel@…>

  • mpc8xx/console-generic/console-generic.c: Removed include of <bsp.h> by adding BSP dependent routine mbx8xx_console_use_maximum_buffer_size() which can be hard coded or check non-volatile memory for configuration.
Location:
c/src/lib/libcpu/powerpc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/ChangeLog

    r21c8738 r8c49701  
     12000-10-18      Joel Sherrill <joel@OARcorp.com>
     2
     3        * mpc8xx/console-generic/console-generic.c: Removed include of
     4        <bsp.h> by adding BSP dependent routine
     5        mbx8xx_console_use_maximum_buffer_size() which can be hard coded
     6        or check non-volatile memory for configuration.
     7
    182000-10-18      Joel Sherrill <joel@OARcorp.com>
    29
  • c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c

    r21c8738 r8c49701  
    5454#include <unistd.h>
    5555#include <termios.h>
    56 #include <bsp.h>            /* for nvram interface to board */
    5756
    5857extern rtems_cpu_table Cpu_table;
     58
     59/* BSP supplied routine */
     60extern int mbx8xx_console_use_maximum_buffer_size(void);
    5961
    6062#ifdef EPPCBUG_SMC1
     
    704706  sccparms->rfcr = M8xx_RFCR_MOT | M8xx_RFCR_DMA_SPACE(0);
    705707  sccparms->tfcr = M8xx_TFCR_MOT | M8xx_TFCR_DMA_SPACE(0);
    706 #if NVRAM_CONFIGURE == 1
    707   if ( (nvram->console_mode & 0x06) == 0x02 )
     708  if ( mbx8xx_console_use_maximum_buffer_size() )
    708709    sccparms->mrblr = RXBUFSIZE;    /* Maximum Rx buffer size */
    709710  else
    710711    sccparms->mrblr = 1;            /* Maximum Rx buffer size */
    711 #else
    712 #if UARTS_IO_MODE == 1
    713   sccparms->mrblr = RXBUFSIZE;      /* Maximum Rx buffer size */
    714 #else
    715   sccparms->mrblr = 1;              /* Maximum Rx buffer size */
    716 #endif
    717 #endif
    718712  sccparms->un.uart.max_idl = 10;   /* Set nb of idle chars to close buffer */
    719713  sccparms->un.uart.brkcr = 0;      /* Set nb of breaks to send for STOP Tx */
Note: See TracChangeset for help on using the changeset viewer.