Changeset f05b2ac in rtems


Ignore:
Timestamp:
04/21/04 16:01:48 (18 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
7dd6e8d
Parents:
6128a4a
Message:

Remove duplicate white lines.

Location:
c/src/lib
Files:
403 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/arm_bare_bsp/clock/clockdrv.c

    r6128a4a rf05b2ac  
    1515  do { _old = 0; } while(0)
    1616
    17 
    1817#define Clock_driver_support_initialize_hardware()
    1918
  • c/src/lib/libbsp/arm/arm_bare_bsp/include/bsp.h

    r6128a4a rf05b2ac  
    1414|  $Id$
    1515+--------------------------------------------------------------------------*/
    16 
    1716
    1817#ifndef __BSP_H_
  • c/src/lib/libbsp/arm/arm_bare_bsp/include/registers.h

    r6128a4a rf05b2ac  
    1111 */
    1212
    13 
    1413#ifndef  __REGS_H__
    1514#define __REGS_H__
     
    2322#endif
    2423
    25 
    26 
    2724/*
    2825 * Here must be "defined" each register, to use with Regs as
     
    3229#define REGISTER1      1
    3330#define REGISTER2      2
    34 
    3531
    3632/*
  • c/src/lib/libbsp/arm/arm_bare_bsp/irq/bsp_irq_init.c

    r6128a4a rf05b2ac  
    1717#include <registers.h>
    1818
    19 
    2019void BSP_rtems_irq_mngt_init() {
    2120
  • c/src/lib/libbsp/arm/arm_bare_bsp/irq/irq.c

    r6128a4a rf05b2ac  
    1313 */
    1414
    15 
    1615#include <bsp.h>
    1716#include <irq.h>
     
    1918#include <rtems/score/thread.h>
    2019#include <rtems/score/apiext.h>
    21 
    2220
    2321/*
     
    104102}
    105103
    106 
    107 
    108104void _ThreadProcessSignalsFromIrq (CPU_Exception_frame* ctx)
    109105{
  • c/src/lib/libbsp/arm/arm_bare_bsp/irq/irq.h

    r6128a4a rf05b2ac  
    111111void BSP_rtems_irq_mngt_init();
    112112
    113 
    114113/*
    115114 * function to connect a particular irq handler. This hanlder will NOT be called
     
    160159int BSP_remove_rtems_irq_handler        (const rtems_irq_connect_data*);
    161160
    162 
    163161#ifdef __cplusplus
    164162}
  • c/src/lib/libbsp/arm/arm_bare_bsp/start/start.S

    r6128a4a rf05b2ac  
    3030.equ F_Bit,                  0x40
    3131
    32 
    3332        .text
    3433        .globl  _start
    35 
    3634
    3735_start:
     
    4038 * Here is the code to initialize the low-level BSP environment
    4139 * (Chip Select, PLL, ....?)
    42 
    4340
    4441/* Copy data from FLASH to RAM */
     
    6158        STRLOT   r2, [r0], #4
    6259        BLO     zi_init
    63 
    6460
    6561/* Load basic ARM7 interrupt table */
  • c/src/lib/libbsp/arm/arm_bare_bsp/startup/bspstart.c

    r6128a4a rf05b2ac  
    1313|
    1414+--------------------------------------------------------------------------*/
    15 
    1615
    1716#include <bsp.h>
     
    8281  rtemsFreeMemStart += _heap_size;           /* HEAP_SIZE  in KBytes */
    8382
    84 
    8583#ifdef RTEMS_DEBUG
    8684
     
    9088
    9189} /* bsp_pretasking_hook */
    92 
    9390
    9491/*-------------------------------------------------------------------------+
  • c/src/lib/libbsp/arm/arm_bare_bsp/startup/exit.c

    r6128a4a rf05b2ac  
    1313|
    1414+--------------------------------------------------------------------------*/
    15 
    1615
    1716#include <stdio.h>
  • c/src/lib/libbsp/arm/armulator/clock/clockdrv.c

    r6128a4a rf05b2ac  
    1515  do { _old = 0; } while(0)
    1616
    17 
    1817#define Clock_driver_support_initialize_hardware()
    1918
  • c/src/lib/libbsp/arm/armulator/console/mon-syscalls.S

    r6128a4a rf05b2ac  
    1111#define ENTRY(name)     \
    1212        _ENTRY(_C_LABEL(name))
    13 
    14 
    1513
    1614ENTRY(_sys_exit)
  • c/src/lib/libbsp/arm/armulator/start/start.S

    r6128a4a rf05b2ac  
    6464        ldr     a3, .LC2
    6565        sub     a3, a3, a1              /* Third arg: length of block */
    66 
    6766
    6867#ifdef __thumb__                /* Enter Thumb mode.... */
  • c/src/lib/libbsp/arm/armulator/startup/libcfunc.c

    r6128a4a rf05b2ac  
    2626#endif /* ARM_RDI_MONITOR */
    2727
    28 
    2928void
    3029abort_program (void)
  • c/src/lib/libbsp/arm/armulator/startup/swi.h

    r6128a4a rf05b2ac  
    3030#define SWI_InstallHandler         0x70
    3131#define SWI_GenerateError          0x71
    32 
    3332
    3433/* Now the SWI numbers and reason codes for RDI (Angel) monitors */
  • c/src/lib/libbsp/arm/edb7312/clock/clockdrv.c

    r6128a4a rf05b2ac  
    1616#include <bsp.h>
    1717#include <irq.h>
    18 
    1918
    2019rtems_isr clock_isr(rtems_vector_number vector);
     
    4342      BSP_install_rtems_irq_handler(&clock_isr_data);                       \
    4443     } while(0)
    45 
    4644
    4745/*
     
    7573}
    7674
    77 
    7875#include "../../../shared/clockdrv_shell.c"
  • c/src/lib/libbsp/arm/edb7312/console/uart.c

    r6128a4a rf05b2ac  
    101101    }
    102102
    103 
    104 
    105103    err  = *data_reg;
    106104    c    = err & 0xff;
     
    158156                 0x17);              /* 9600 baud */
    159157
    160 
    161158}
  • c/src/lib/libbsp/arm/edb7312/include/bsp.h

    r6128a4a rf05b2ac  
    5151#define Lower_tm27_intr()
    5252
    53 
    54 
    5553/*
    5654 * Network driver configuration
     
    5957#define RTEMS_BSP_NETWORK_DRIVER_ATTACH cs8900_driver_attach
    6058
    61 
    62 
    63 
    6459#ifdef __cplusplus
    6560}
  • c/src/lib/libbsp/arm/edb7312/irq/irq.h

    r6128a4a rf05b2ac  
    6868} rtems_irq_symbolic_name;
    6969
    70 
    71 
    7270/*
    7371 * Type definition for RTEMS managed interrupts
     
    138136void BSP_rtems_irq_mngt_init();
    139137
    140 
    141138/*
    142139 * function to connect a particular irq handler. This hanlder will NOT be called
  • c/src/lib/libbsp/arm/edb7312/start/start.S

    r6128a4a rf05b2ac  
    1515*/
    1616
    17 
    1817/* Some standard definitions...*/
    1918
     
    3029.equ F_Bit,                  0x40
    3130
    32 
    3331        .text
    3432        .globl  _start
    35 
    3633
    3734_start:
  • c/src/lib/libbsp/arm/edb7312/startup/bspstart.c

    r6128a4a rf05b2ac  
    7979    uint32_t   heap_size;
    8080
    81 
    8281    /*
    8382     * Set up the heap. It uses all free SDRAM except that reserved
     
    9897
    9998} /* bsp_pretasking_hook */
    100 
    10199
    102100/**************************************************************************/
     
    153151    rtems_irq_mngt_init();
    154152
    155 
    156153    /*
    157154     *  The following information is very useful when debugging.
     
    176173} /* bsp_start */
    177174
    178 
    179 
    180 
    181175/*
    182176 *  By making this a weak alias for bsp_start_default, a brave soul
  • c/src/lib/libbsp/arm/shared/comm/console.c

    r6128a4a rf05b2ac  
    4848int BSPBaseBaud    = 115200;
    4949
    50 
    5150/*-------------------------------------------------------------------------+
    5251| External Prototypes
     
    7069BSP_polling_getchar_function_type BSP_poll_char =
    7170   (BSP_polling_getchar_function_type) BSP_poll_char_via_serial;
    72 
    7371
    7472static rtems_irq_connect_data console_isr_data = {BSP_UART,
     
    126124}
    127125
    128 
    129126/*-------------------------------------------------------------------------+
    130127| Console device driver INITIALIZE entry point.
     
    150147  /* 38400-8-N-1 */
    151148  BSP_uart_init(BSPConsolePort, 38400, 0);
    152 
    153149
    154150  /* Set interrupt handler */
     
    179175  return RTEMS_SUCCESSFUL;
    180176} /* console_initialize */
    181 
    182177
    183178static int console_last_close(int major, int minor, void *arg)
     
    244239} /* console_close */
    245240
    246 
    247241/*-------------------------------------------------------------------------+
    248242| Console device driver READ entry point.
     
    260254} /* console_read */
    261255
    262 
    263256/*-------------------------------------------------------------------------+
    264257| Console device driver WRITE entry point.
     
    275268
    276269} /* console_write */
    277 
    278 
    279270
    280271/*
  • c/src/lib/libbsp/arm/shared/comm/uart.c

    r6128a4a rf05b2ac  
    223223}
    224224
    225 
    226225/*
    227226 * Status function, -1 if error
     
    270269}
    271270
    272 
    273271/*
    274272 * Polled mode write function
     
    330328        return BSP_uart_polled_read(BSPConsolePort);
    331329}
    332 
    333330
    334331/* ================ Termios support  =================*/
     
    423420    }
    424421
    425 
    426422  /* If there TX buffer is busy - something is royally screwed up */
    427423  assert((uread(BSP_UART_COM2, LSR) & THRE) != 0);
     
    453449  return 0;
    454450}
    455 
    456451
    457452void
  • c/src/lib/libbsp/arm/shared/irq/irq_asm.S

    r6128a4a rf05b2ac  
    2626        stmdb   sp!, {r0, r1, r2, r3, r12}   /* save regs on INT stack */
    2727        stmdb   sp!, {lr}               /*    now safe to call C funcs */
    28 
    2928
    3029/* one nest level deeper */
     
    112111        stmdb   sp!, {lr}                 /*    in with the new (lr) */
    113112
    114 
    115113        orr     r0, r0, #0xc0
    116114        msr     spsr, r0
     
    120118        ldmia   sp!, {r0, r1, r2, r3, r12}    /* restore regs from INT stack */
    121119        subs    pc, lr, #4                /* return */
    122 
    123 
    124120
    125121        /* on entry to _ISR_Dispatch, we're in SVC mode */
  • c/src/lib/libbsp/arm/vegaplus/clock/clockdrv.c

    r6128a4a rf05b2ac  
    1515  do { _old = 0; } while(0)
    1616
    17 
    1817#define Clock_driver_support_initialize_hardware()
    1918
  • c/src/lib/libbsp/arm/vegaplus/include/bsp.h

    r6128a4a rf05b2ac  
    1414|  $Id$
    1515+--------------------------------------------------------------------------*/
    16 
    1716
    1817#ifndef __BSP_H_
  • c/src/lib/libbsp/arm/vegaplus/include/registers.h

    r6128a4a rf05b2ac  
    1111 */
    1212
    13 
    1413#ifndef  __LMREGS_H__
    1514#define __LMREGS_H__
     
    2827extern volatile unsigned long *Regs;        /* Chip registers        */
    2928#endif
    30 
    31 
    3229
    3330/******************************************************************************
     
    7269#define SYNTIOCNTL      ((RC_BASE+0x80)/4)   /* added 30/08/99 */
    7370
    74 
    7571/* modified 30/08/99 by LHT */
    7672#define SHAPE0          ((RC_BASE+0x100)/4)  /* previously 0x80 */
     
    121117#define TSTRXD          ((PLP_BASE+0x78)/4)
    122118#define PLPID           ((PLP_BASE+0x7C)/4)
    123 
    124119
    125120/** ENCRYPTION ENGINE                       0x1800 - 0x1BFF                   */
     
    251246/*PRODUCT_VERSION*/
    252247
    253 
    254248/** THUMB and INTERFACES BLOCK              0x3400 - 0x4FFF                   */
    255249
     
    334328#define SLEEPCNTL       ((TI_BASE+0x208)/4)
    335329
    336 
    337 
    338330/******************************************************************************
    339331 * BIT MASKS for Chip registers
     
    358350#define MSK_TADCMD      0x0F                /* Mask on TADCMD                 */
    359351#define CONTINUE        0x10
    360 
    361 
    362352
    363353/** RADIO CONTROLER BLOCK (RC3)                                               */
     
    462452#define RCCNTL_ENABLE   0x80
    463453
    464 
    465454/* ADCCNTL1 register                                                          */
    466455#define ADCSTART        0x80
     
    474463#define ADCDWN1         0x04
    475464#define ADCDWN2         0x08
    476 
    477 
    478465
    479466/** PLP BLOCK                                                                 */
     
    512499#define MSK_PRES        0x0F                /* mask on PRES field             */
    513500
    514 
    515501/* PLPALIN register                                                           */
    516502#define SYNM            0x08
     
    537523/* Bit ENABLE already defined                                                 */
    538524#define EECNTL_ENABLE   0x80
    539 
    540525
    541526/** PAINT+ BLOCK                                                              */
     
    555540#define FORCE13         0x4000
    556541#define PAINTENB        0x8000
    557 
    558542
    559543/* PAINTPLLCNTL register                                                      */
     
    650634#define G726ENB1        0x0003
    651635
    652 
    653636/** GENERAL REGISTERS BLOCK                                                   */
    654637
     
    731714#define MIRROR          0x10
    732715
    733 
    734716/* LCDEECNTL1 register                                                        */
    735717/* Bit ENABLE already defined                                                 */
     
    788770#define CSMODE_16_WHWL  0x0002
    789771#define CSMODE_16_BHBL  0x0003
    790 
    791772
    792773/* MUXADCNTL register                                                         */
     
    816797#define ADDRESS_2M      0x4000
    817798
    818 
    819799/* CSGCNTL register                                                           */
    820800#define CSSWITCH        0x0040
    821 
    822801
    823802/* SLEEPCNTL register                                                         */
     
    829808#define WDFLAG          0x80                /* same bit                       */
    830809
    831 
    832810/* DCC register                                                               */
    833811/* bit ENABLE=0x80 already defined */
    834812#define DCC_ENABLE   0x80
    835 
    836813
    837814/* TIMERCNTL[0:1] register                                                    */
     
    844821#define TIMER_216kHz    0x0001
    845822#define TIMER_27kHz     0x0000
    846 
    847823
    848824/* INTMASKALL register                                                        */
     
    881857#define AUTOACK         0x0080
    882858
    883 
    884859/******************************************************************************
    885860 * Memory Mapping definition
     
    899874#define REGS_BASE_ADR   0x000F0000          /* Base Address of registers      */
    900875#define RADRAM_BASE_ADR 0x000F0000          /* Base Address of registers      */
    901 
    902876
    903877/******************************************************************************
     
    10681042#define MSK_WINSZ   0x3F
    10691043
    1070 
    1071 
    1072 
    1073 
    10741044/*
    10751045 * Some macros to mask the VEGA+ interrupt sources
     
    10851055#define LM_MaskSTX()           (LM_Regs[RSIER]   &= ~TX_INT_ENABLE)
    10861056#define LM_MaskUARTStatus()    (LM_Regs[RSIER]   &= ~LINE_STATUS_ENABLE)
    1087 
    10881057
    10891058#define LM_MaskTMR0()          (LM_Regs[INTMASK] |= TMR0)
  • c/src/lib/libbsp/arm/vegaplus/irq/bsp_irq_init.c

    r6128a4a rf05b2ac  
    1616#include <bsp.h>
    1717#include <registers.h>
    18 
    1918
    2019void BSP_rtems_irq_mngt_init() {
  • c/src/lib/libbsp/arm/vegaplus/irq/irq.c

    r6128a4a rf05b2ac  
    1313 */
    1414
    15 
    1615#include <bsp.h>
    1716#include <irq.h>
     
    1918#include <rtems/score/thread.h>
    2019#include <rtems/score/apiext.h>
    21 
    2220
    2321/*
     
    122120}
    123121
    124 
    125 
    126122void _ThreadProcessSignalsFromIrq (CPU_Exception_frame* ctx)
    127123{
  • c/src/lib/libbsp/arm/vegaplus/irq/irq.h

    r6128a4a rf05b2ac  
    136136void BSP_rtems_irq_mngt_init();
    137137
    138 
    139138/*
    140139 * function to connect a particular irq handler. This hanlder will NOT be called
     
    185184int BSP_remove_rtems_irq_handler        (const rtems_irq_connect_data*);
    186185
    187 
    188186#ifdef __cplusplus
    189187}
  • c/src/lib/libbsp/arm/vegaplus/start/start.S

    r6128a4a rf05b2ac  
    4141.equ F_Bit,                  0x40
    4242
    43 
    4443.equ Mode_SVC_MIRQ,     Mode_SVC | I_Bit | F_Bit
    4544.equ Mode_SVC_UIRQ,     Mode_SVC
    4645.equ Mode_IRQ_MIRQ,     Mode_SVC | I_Bit | F_Bit
    47 
    4846
    4947.equ MARK_STACK,  0    /*Fill every stack with a pattern for debug (0 or 1)*/
     
    130128        STR     r1, [r0,#CSCNTL1_2]
    131129
    132 
    133130        MOV             r0,#CNTL_CLK_ADR
    134131/* Load clock mode 55 MHz */
     
    155152        STRLOT   r2, [r0], #4
    156153        BLO     zi_init
    157 
    158154
    159155/* Load basic ARM7 interrupt table */
  • c/src/lib/libbsp/arm/vegaplus/startup/bspstart.c

    r6128a4a rf05b2ac  
    1313|
    1414+--------------------------------------------------------------------------*/
    15 
    1615
    1716#include <bsp.h>
     
    7877  rtemsFreeMemStart += _heap_size;           /* HEAP_SIZE  in KBytes */
    7978
    80 
    8179#ifdef RTEMS_DEBUG
    8280
     
    8684
    8785} /* bsp_pretasking_hook */
    88 
    8986
    9087/*-------------------------------------------------------------------------+
  • c/src/lib/libbsp/arm/vegaplus/startup/exit.c

    r6128a4a rf05b2ac  
    1313|
    1414+--------------------------------------------------------------------------*/
    15 
    1615
    1716#include <stdio.h>
  • c/src/lib/libbsp/c4x/c4xsim/clock/clock.c

    r6128a4a rf05b2ac  
    5353
    5454void Clock_exit( void );
    55 
    5655
    5756/*
  • c/src/lib/libbsp/c4x/c4xsim/console/console.c

    r6128a4a rf05b2ac  
    108108  };
    109109
    110 
    111110  assert( minor <= 1 );
    112111  if ( minor > 2 )
  • c/src/lib/libbsp/c4x/c4xsim/include/bsp.h

    r6128a4a rf05b2ac  
    3131#include <rtems/iosupp.h>
    3232
    33 
    3433/*
    3534 *  Define the time limits for RTEMS Test Suite test durations.
     
    4241#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
    4342#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
    44 
    4543
    4644/*
     
    8482 */
    8583
    86 
    8784/*
    8885 *  Information placed in the linkcmds file.
  • c/src/lib/libbsp/c4x/c4xsim/timer/timer.c

    r6128a4a rf05b2ac  
    3535   *  implemenations of timer but ....
    3636   */
    37 
    3837
    3938  c4x_timer_stop(C4X_TIMER_0);
  • c/src/lib/libbsp/i386/i386ex/clock/ckinit.c

    r6128a4a rf05b2ac  
    8282                                              ClockOff,
    8383                                              ClockIsOn};
    84 
    8584
    8685rtems_device_driver Clock_initialize(
  • c/src/lib/libbsp/i386/i386ex/console/console.c

    r6128a4a rf05b2ac  
    117117  BSP_uart_init(BSPConsolePort, 9600, CHR_8_BITS, 0, 0, 0);
    118118
    119 
    120119  /* Set interrupt handler */
    121120  if(BSPConsolePort == BSP_UART_COM1)
     
    159158  return RTEMS_SUCCESSFUL;
    160159} /* console_initialize */
    161 
    162160
    163161static int console_last_close(int major, int minor, void *arg)
     
    227225} /* console_close */
    228226
    229 
    230227/*-------------------------------------------------------------------------+
    231228| Console device driver READ entry point.
     
    250247} /* console_read */
    251248
    252 
    253249/*-------------------------------------------------------------------------+
    254250| Console device driver WRITE entry point.
     
    264260
    265261} /* console_write */
    266 
    267 
    268262
    269263/*
  • c/src/lib/libbsp/i386/i386ex/include/bsp.h

    r6128a4a rf05b2ac  
    5757#define MUST_WAIT_FOR_INTERRUTPT 0
    5858
    59 
    6059#define Install_tm27_vector(handler) \
    6160{ \
     
    104103
    105104#define Is_tx_ready( _status ) ( (_status) & 0x40 )
    106 
    107105
    108106#define Is_rx_ready( _status ) ( (_status) & 0x01 )
  • c/src/lib/libbsp/i386/i386ex/network/network.c

    r6128a4a rf05b2ac  
    1414
    1515#define KERNEL
    16 
    1716
    1817/*
     
    6362#include <string.h>
    6463
    65 
    6664/* #include "../misc/utils.h" */
    6765
    6866static struct uti596_softc uti596_softc;
    69 
    7067
    7168static    int scbStatus;
     
    104101#define RBUF_SIZE       1520
    105102
    106 
    107103/*
    108104 * Local Routines
     
    178174}
    179175
    180 
    181 
    182176static void uti596_maskOn(const rtems_irq_connect_data* irq)
    183177{
     
    203197}
    204198
    205 
    206199/***********************************************************************
    207200 *  Function:   uti596initRFA(int num) ( New )
     
    214207 *
    215208 ***********************************************************************/
    216 
    217209
    218210int uti596_initRFA(int num)
     
    220212    struct i596_rfd *pRfd;
    221213    int i = 0;
    222 
    223214
    224215#ifdef DBG_596
     
    286277#endif
    287278
    288 
    289279    uti596_softc.pSavedRfdQueue =
    290280      uti596_softc.pEndSavedQueue = I596_NULL;   /* initially empty */
     
    309299{
    310300 struct i596_rfd *pLastRfd;
    311 
    312301
    313302 UTI_596_ASSERT(pRfd != I596_NULL, "Supplying NULL RFD!\n");
     
    407396   uti596_softc.savedCount++;
    408397
    409 
    410398   return;
    411399 }
     
    522510  struct i596_cmd *pCmd;
    523511
    524 
    525512  printf("uti596_reset_hardware\n");
    526513  pCmd = sc->pCmdHead;  /* This is a tx command for sure (99.99999%)  */
     
    544531  printf("reset_hardware:change scp address to : %p\n",sc->pScp);
    545532#endif
    546 
    547533
    548534  /* change the scp address */
     
    628614 ***********************************************************************/
    629615
    630 
    631616 void
    632617uti596_initMem(struct uti596_softc * sc)
     
    741726
    742727
    743 
    744728/***********************************************************************
    745729 *  Function:   uti596dump
     
    754738  struct i596_dump dumpCmd;
    755739  int boguscnt = 25000000; /* over a second! */
    756 
    757740
    758741#ifdef DBG_596
     
    775758    }
    776759
    777 
    778760}
    779761
     
    856838#endif
    857839            frames++;
    858 
    859840
    860841            /*
     
    10481029
    10491030#endif
    1050 
    10511031
    10521032  /* restore the RFA */
     
    11551135#endif
    11561136
    1157 
    1158 
    11591137     pCmd->status = 0;
    11601138     pCmd->command |= (CMD_EOL | CMD_INTR ); /* all commands last in list & return an interrupt */
     
    11861164     _ISR_Enable(level);
    11871165       }
    1188 
    11891166
    11901167#ifdef DBG_596
     
    14071384  } while( m != NULL && ++bd_count < 16 );
    14081385
    1409 
    14101386  /* This should never happen */
    14111387  if ( bd_count == 16 ) {
     
    14131389    printf("Must coalesce!\n");
    14141390  }
    1415 
    14161391
    14171392  if ( length < UTI_596_ETH_MIN_SIZE ) {
     
    14401415  if (pTbd->size <= 0) return ;
    14411416
    1442 
    14431417#ifdef DEBUG_INIT_2
    14441418  printf("\nTransmitter adds packet\n");
     
    14501424          BREAKPOINT();
    14511425#endif
    1452 
    14531426
    14541427  /* add the command to the output command queue */
     
    15111484  }
    15121485
    1513 
    15141486}
    15151487
     
    16181590        }
    16191591
    1620 
    16211592 }
    16221593#ifdef DEBUG_INIT
     
    16561627
    16571628     printf ("frame type %2.2X%2.2X\n", add[12], add[13]);
    1658 
    16591629
    16601630 }
     
    17451715        }
    17461716
    1747 
    17481717 }
    17491718 /***********************************************************************
     
    18381807  ***********************************************************************/
    18391808
    1840 
    18411809int uti596_attach(struct rtems_bsdnet_ifconfig * pConfig )
    18421810{
     
    18481816  printf("attach");
    18491817#endif
    1850 
    18511818
    18521819  sc->started = 0; /* The NIC is not started yet */
     
    19051872  sc->started = 1;
    19061873  sc->pInboundFrameQueue = I596_NULL;
    1907 
    19081874
    19091875  ifp->if_ioctl = uti596_ioctl;
     
    22322198   }
    22332199 }  /* end if command complete */
    2234 
    22352200
    22362201 /* if the receiver has stopped,
     
    23312296       uti596_softc.savedCount = 0;
    23322297     }
    2333 
    23342298
    23352299#ifdef DBG_596_RFD
     
    23752339                pISR_Rfd, pISR_Rfd->stat, pISR_Rfd->cmd);
    23762340
    2377 
    23782341       printk("\nSaved: \n");
    23792342       for ( pISR_Rfd = uti596_softc.pSavedRfdQueue;
     
    24082371 }
    24092372
    2410 
    24112373/***********************************************************************
    24122374 *  Function:   void uti596dequeue
     
    24352397     *ppQ = pRfd->next;      /* advance the queue pointer     */
    24362398     pRfd->next = I596_NULL; /* unlink the rfd being returned */
    2437 
    24382399
    24392400   _ISR_Enable(level);
     
    24982459 ***********************************************************************/
    24992460
    2500 
    25012461/* static */
    25022462void uti596_stop(struct uti596_softc *sc)
     
    25142474
    25152475}
    2516 
    25172476
    25182477static int
     
    25832542 *
    25842543 ***********************************************************************/
    2585 
    25862544
    25872545void
     
    26832641               pRfd, pRfd->stat, pRfd->cmd);
    26842642
    2685 
    26862643      printf("\nSaved: \n");
    26872644      for ( pRfd = uti596_softc.pSavedRfdQueue;
     
    26972654    struct i596_rfd *pRfd;
    26982655
    2699 
    27002656      printf("CMD: 0x%x, Status: 0x%x\n",
    27012657             uti596_softc.scb.command,
     
    27212677}
    27222678
    2723 
    27242679void uti596_init(void * arg){
    27252680
    27262681  struct uti596_softc  *sc = arg;
    27272682  struct ifnet *ifp = &sc->arpcom.ac_if;
    2728 
    27292683
    27302684  if (sc->txDaemonTid == 0) {
     
    27402694    sc->resetDaemonTid = rtems_bsdnet_newproc ("UTrt", 2*4096,
    27412695                                               uti596_resetDaemon, sc);
    2742 
    27432696
    27442697#ifdef DBG_INIT
  • c/src/lib/libbsp/i386/i386ex/network/uti596.h

    r6128a4a rf05b2ac  
    5656};
    5757
    58 
    59 
    6058enum commands {
    6159  CmdNOp           = 0,
     
    6967};
    7068
    71 
    7269#define UTI596_MUTEX   1
    73 
    7470
    7571#define CMD_EOL         0x8000  /* The last command of the list, stop. */
     
    8682#define SCB_CUS_SUSPENDED 0x0100
    8783#define SCB_CUS_ACTIVE    0x0200
    88 
    8984
    9085#define STAT_C          0x8000  /* Set to 1 after execution              */
     
    10297#define STAT_MAX_COLLS  0x000F
    10398
    104 
    10599#define RBD_STAT_P      0x4000  /* prefetch */
    106100#define RBD_STAT_F      0x4000  /* used */
     
    119113#define  RU_READY        0x0040
    120114
    121 
    122115#define IO_ADDR         0x360
    123116#define PORT_ADDR       IO_ADDR
     
    168161    unsigned short pad;
    169162} ;
    170 
    171163
    172164/*
     
    182174    char data [1532 ];
    183175} ;
    184 
    185176
    186177struct i596_dump {
     
    227218    volatile unsigned short t_off;
    228219};
    229 
    230220
    231221/*
  • c/src/lib/libbsp/i386/i386ex/start/80386ex.h

    r6128a4a rf05b2ac  
    4848#define OCW3SDOS          0x00A0
    4949
    50 
    5150/* CONFIGURATION Registers */
    5251#define DMACFG    0xF830
  • c/src/lib/libbsp/i386/i386ex/start/start.S

    r6128a4a rf05b2ac  
    2929 *  $Id$
    3030
    31 
    3231changes:
    3332    SetExRegByte(ICW3S  , 0x02 ) # MUST be 0x02 according to intel
     
    3635 */
    3736
    38 
    3937#include <rtems/asm.h>
    4038#include "macros.inc"
    4139#include "80386ex.inc"
    42 
    4340
    4441/*
     
    7673
    7774END_DATA
    78 
    7975
    8076/* This section is the section that is used by the interrupt
     
    131127        orb     $0x02   , al   # Bit 1 Fast A20 = 0 (always 0) else enabled.
    132128        outb    al      , dx
    133 
    134129
    135130SYM(Watchdog):
     
    285280        SetExRegByte(TMR0   , 0x00 ) # sfa
    286281
    287 
    288282        SetExRegByte(TMRCON , 0x70 ) # mode 0 disables on Gate= Vcc
    289283        SetExRegByte(TMR1   , 0x00 ) # sfa
     
    343337        SetExRegByte(INTCFG , 0x00 )
    344338
    345 
    346339SYM(SetCS4):
    347340        SetExRegWord(CS4ADL , 0x702)         #Configure chip select 4
     
    383376        lgdt SYM(GDTR) #  location of GDT
    384377#endif
    385 
    386378
    387379SYM(SetUCS):
     
    473465        stosl                           #   clear a long in the bss
    474466
    475 
    476467/*
    477468 *  Transfer control to User's Board Support Package
  • c/src/lib/libbsp/i386/i386ex/startup/bspstart.c

    r6128a4a rf05b2ac  
    8181    bsp_libc_init((void *) heap_start, heap_size, 0);
    8282
    83 
    8483#ifdef RTEMS_DEBUG
    8584    rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
  • c/src/lib/libbsp/i386/i386ex/timer/timer.c

    r6128a4a rf05b2ac  
    2323 *  $Id$
    2424 */
    25 
    2625
    2726#include <rtems.h>
  • c/src/lib/libbsp/i386/pc386/3c509/3c509.c

    r6128a4a rf05b2ac  
    5959 * MODIFICATION/HISTORY:
    6060 * $Log$
     61 * Revision 1.3  2004/04/21 10:42:43  ralf
     62 * Remove stray white spaces.
     63 *
    6164 * Revision 1.2  1999/12/13 21:21:31  joel
    6265 * Warning removal patch from Philip A. Prindeville <philipp@zembu.com>.
     
    152155};
    153156
    154 
    155157struct ep_board
    156158{
     
    162164  u_short res_cfg;              /* resource configuration */
    163165};
    164 
    165166
    166167/*
     
    193194};
    194195
    195 
    196196/*  static unsigned long loopc; */
    197197static volatile unsigned long overrun;
     
    216216#define ep_fset(f) (sc->stat|=(f))
    217217#define ep_frst(f) (sc->stat&=~(f))
    218 
    219218
    220219/* forward declarations for functions */
     
    232231extern void Wait_X_ms( unsigned int timeToWait );  /* timer.c ??? */
    233232
    234 
    235233/**********************************************************************************
    236234 *
     
    286284}
    287285
    288 
    289286/**********************************************************************************
    290287 *
     
    339336}
    340337
    341 
    342338/**********************************************************************************
    343339 *
     
    355351}
    356352
    357 
    358353/**********************************************************************************
    359354 *
     
    395390  return in_data;
    396391}
    397 
    398392
    399393/**********************************************************************************
     
    424418}
    425419
    426 
    427420/**********************************************************************************
    428421 *
     
    465458}
    466459
    467 
    468460/**********************************************************************************
    469461 *
     
    486478}
    487479
    488 
    489480/**********************************************************************************
    490481 *
     
    510501  return BSP_irq_enabled_at_i8259s (irq->name);
    511502}
    512 
    513503
    514504/**********************************************************************************
     
    568558  printf ("3C509: RX Daemon is finishing.\n");
    569559}
    570 
    571560
    572561/**********************************************************************************
     
    602591}
    603592
    604 
    605593/**********************************************************************************
    606594 *
     
    680668  outw(BASE + EP_COMMAND, SET_RX_FILTER);
    681669}
    682 
    683670
    684671/**********************************************************************************
     
    858845}
    859846
    860 
    861847/**********************************************************************************
    862848 *
     
    972958}
    973959
    974 
    975 
    976960/**********************************************************************************
    977961 *
     
    10401024}
    10411025
    1042 
    1043 
    10441026/**********************************************************************************
    10451027 *
     
    11271109    return 0;
    11281110}
    1129 
    11301111
    11311112/**********************************************************************************
     
    12561237    ifp->if_flags &= ~IFF_OACTIVE;      /* just in case */
    12571238
    1258 
    12591239    sc->rx_no_first = sc->rx_no_mbuf =
    12601240        sc->rx_bpf_disc = sc->rx_overrunf = sc->rx_overrunl =
     
    12781258    GO_WINDOW(1);
    12791259}
    1280 
    12811260
    12821261static const char padmap[] = {0, 3, 2, 1};
     
    13861365    goto startagain;
    13871366}
    1388 
    1389 
    13901367
    13911368/**********************************************************************************
     
    15301507    outw(BASE + EP_COMMAND, SET_RX_EARLY_THRESH | RX_INIT_EARLY_THRESH);
    15311508}
    1532 
    1533 
    15341509
    15351510/**********************************************************************************
  • c/src/lib/libbsp/i386/pc386/3c509/elink.c

    r6128a4a rf05b2ac  
    3838#include "elink.h"
    3939
    40 
    4140extern void outb( unsigned short io_addr, unsigned char out_data );
    4241
  • c/src/lib/libbsp/i386/pc386/clock/ckinit.c

    r6128a4a rf05b2ac  
    3131+--------------------------------------------------------------------------*/
    3232
    33 
    3433#include <stdlib.h>
    3534
     
    110109} /* Clock_exit */
    111110
    112 
    113111/*-------------------------------------------------------------------------+
    114112|         Function: Install_clock
     
    178176                                              clockIsOn};
    179177
    180 
    181 
    182178/*-------------------------------------------------------------------------+
    183179| Clock device driver INITIALIZE entry point.
     
    202198  return RTEMS_SUCCESSFUL;
    203199} /* Clock_initialize */
    204 
    205200
    206201/*-------------------------------------------------------------------------+
     
    246241+--------------------------------------------------------------------------*/
    247242
    248 
    249243#if 0 && defined(pentium)
    250244
  • c/src/lib/libbsp/i386/pc386/clock/rtc.c

    r6128a4a rf05b2ac  
    3131|  $Id$
    3232+--------------------------------------------------------------------------*/
    33 
    3433
    3534#include <string.h>
     
    7170#define RTC_CENTURY    0x32  /* current century - increment in Dec99   */
    7271
    73 
    7472/*-------------------------------------------------------------------------+
    7573| Auxiliary Functions
     
    108106} /* ytos */
    109107
    110 
    111108/*-------------------------------------------------------------------------+
    112109|         Function: mtos
     
    144141    return r;
    145142} /* rtcin */
    146 
    147143
    148144/*-------------------------------------------------------------------------+
     
    175171       printf("RTC BIOS diagnostic error %b\n", s, RTCDG_BITS); */
    176172} /* init_rtc */
    177 
    178173
    179174/*-------------------------------------------------------------------------+
  • c/src/lib/libbsp/i386/pc386/console/console.c

    r6128a4a rf05b2ac  
    126126}
    127127
    128 
    129128int kbd_poll_read( int minor )
    130129{
     
    175174}
    176175
    177 
    178176/*-------------------------------------------------------------------------+
    179177| Console device driver INITIALIZE entry point.
     
    187185{
    188186  rtems_status_code status;
    189 
    190187
    191188  /* Initialize the KBD interface */
     
    241238      /* 9600-8-N-1 */
    242239      BSP_uart_init(BSPConsolePort, 9600, CHR_8_BITS, 0, 0, 0);
    243 
    244240
    245241      /* Set interrupt handler */
     
    304300} /* console_initialize */
    305301
    306 
    307302static int console_open_count = 0;
    308303
     
    392387} /* console_close */
    393388
    394 
    395389/*-------------------------------------------------------------------------+
    396390| Console device driver READ entry point.
     
    405399 return rtems_termios_read( arg );
    406400} /* console_read */
    407 
    408401
    409402/*-------------------------------------------------------------------------+
     
    431424  return RTEMS_SUCCESSFUL;
    432425} /* console_write */
    433 
    434426
    435427extern int vt_ioctl( unsigned int cmd, unsigned long arg);
  • c/src/lib/libbsp/i386/pc386/console/fb_vga.c

    r6128a4a rf05b2ac  
    1212//
    1313// $Log$
     14// Revision 1.2  2004/04/21 10:42:44  ralf
     15// Remove stray white spaces.
     16//
    1417// Revision 1.1  2000/08/30 08:15:30  joel
    1518// 2000-08-26  Rosimildo da Silva  <rdasilva@connecttel.com>
     
    6770extern void ega_hwterm( void );
    6871
    69 
    7072/* screen information for the VGA driver */
    7173static struct fb_screeninfo fb_info =
     
    7981        FB_VISUAL_PSEUDOCOLOR         /* color scheme used */
    8082};
    81 
    8283
    8384static __u16 red16[] = {
     
    117118}
    118119
    119 
    120120/*
    121121 * fbvga device driver OPEN entry point
     
    143143}
    144144
    145 
    146145/*
    147146 * fbvga device driver READ entry point.
     
    159158}
    160159
    161 
    162160/*
    163161 * fbvga device driver WRITE entry point.
     
    175173}
    176174
    177 
    178175static int get_screen_info( struct fb_screeninfo *info )
    179176{
     
    181178  return 0;
    182179}
    183 
    184180
    185181static int get_palette( struct fb_cmap *cmap )
     
    199195}
    200196
    201 
    202197static int set_palette( struct fb_cmap *cmap )
    203198{
     
    215210  return 0;
    216211}
    217 
    218212
    219213/*
  • c/src/lib/libbsp/i386/pc386/console/fb_vga.h

    r6128a4a rf05b2ac  
    1717 *
    1818 * $Log$
     19 * Revision 1.3  2004/04/21 10:42:44  ralf
     20 * Remove stray white spaces.
     21 *
    1922 * Revision 1.2  2004/04/15 13:26:12  ralf
    2023 * Remove stray white spaces.
     
    8588);
    8689
    87 
    8890rtems_device_driver fbvga_read(
    8991  rtems_device_major_number,
  • c/src/lib/libbsp/i386/pc386/console/i386kbd.h

    r6128a4a rf05b2ac  
    5959#define aux_free_irq(dev_id)   /* free_irq(AUX_IRQ, dev_id) */
    6060
    61 
    62 
    6361/*
    6462 *      include/linux/pc_keyb.h
     
    7876#undef KBD_IS_FOCUS_9000                /* We have the brain-damaged FOCUS-9000 keyboard */
    7977#undef INITIALIZE_MOUSE                 /* Define if your PS/2 mouse needs initialization. */
    80 
    81 
    8278
    8379#define KBD_INIT_TIMEOUT 1000           /* Timeout in ms for initializing the keyboard */
  • c/src/lib/libbsp/i386/pc386/console/inch.c

    r6128a4a rf05b2ac  
    6767}; /* Keyboard scancode -> character map with SHIFT key modifier. */
    6868
    69 
    7069static unsigned short   kbd_buffer[KBD_BUF_SIZE];
    7170static uint16_t         kbd_first = 0;
     
    8584  outport_byte(0x64, 0xFE);      /* use keyboard controler to do the job... */
    8685} /* rtemsReboot */
    87 
    8886
    8987/*-------------------------------------------------------------------------+
     
    239237} /* _IBMPC_chrdy */
    240238
    241 
    242239/*-------------------------------------------------------------------------+
    243240|         Function: _IBMPC_inch
     
    256253    return c;
    257254} /* _IBMPC_inch */
    258 
    259255
    260256 /*
  • c/src/lib/libbsp/i386/pc386/console/kd.h

    r6128a4a rf05b2ac  
    1111// MODIFICATION/HISTORY:
    1212// $Log$
     13// Revision 1.2  2004/04/21 10:42:44  ralf
     14// Remove stray white spaces.
     15//
    1316// Revision 1.1  2000/08/30 08:15:30  joel
    1417// 2000-08-26  Rosimildo da Silva  <rdasilva@connecttel.com>
     
    111114};
    112115
    113 
    114116struct kbdiacr {
    115117        unsigned char diacr, base, result;
  • c/src/lib/libbsp/i386/pc386/console/keyboard.c

    r6128a4a rf05b2ac  
    5757extern void rtemsReboot( void );
    5858
    59 
    60 
    6159int set_bit(int nr, unsigned long * addr)
    6260{
     
    9795#define  test_and_clear_bit(x,y)    clear_bit(x,y)
    9896
    99 
    10097/*
    10198 * global state includes the following, and various static variables
     
    123120/* default console for RTEMS */
    124121static int  fg_console = 0;
    125 
    126122
    127123struct kbd_struct kbd_table[MAX_NR_CONSOLES];
     
    150146typedef void (*void_fnp)(void);
    151147typedef void (void_fn)(void);
    152 
    153148
    154149static void show_mem(void)
     
    212207}
    213208
    214 
    215209/*
    216210 * Translation of escaped scancodes to keycodes.
     
    278272                rep = test_and_set_bit(keycode, key_down);
    279273
    280 
    281274#ifdef CONFIG_MAGIC_SYSRQ               /* Handle the SysRq Hack */
    282275        if (keycode == SYSRQ_KEY) {
     
    289282        }
    290283#endif
    291 
    292284
    293285        if (kbd->kbdmode == VC_MEDIUMRAW) {
     
    320312                int shift_final = shift_state ^ kbd->lockstate ^ kbd->slockstate;
    321313                ushort *key_map = key_maps[shift_final];
    322 
    323314
    324315                if (key_map != NULL) {
     
    384375}
    385376
    386 
    387377static void puts_queue(char *cp)
    388378{
     
    578568        diacr = (diacr ? handle_diacr(value) : value);
    579569}
    580 
    581570
    582571/*
     
    847836static inline unsigned char getleds(void){
    848837
    849 
    850838    struct kbd_struct *kbd = kbd_table + fg_console;
    851839
     
    900888}
    901889
    902 
    903890void set_leds(void)
    904891{
    905892  kbd_bh();
    906893}
    907 
    908894
    909895int kbd_init(void)
  • c/src/lib/libbsp/i386/pc386/console/keyboard.h

    r6128a4a rf05b2ac  
    1111// MODIFICATION/HISTORY:
    1212// $Log$
     13// Revision 1.3  2004/04/21 10:42:44  ralf
     14// Remove stray white spaces.
     15//
    1316// Revision 1.2  2000/08/30 17:06:23  joel
    1417// 2000-08-30   Joel Sherrill <joel@OARcorp.com>
     
    8285#define MAX_NR_FUNC     256     /* max nr of strings assigned to keys */
    8386#define MAX_NR_CONSOLES 1
    84 
    8587
    8688extern char *func_table[MAX_NR_FUNC];
     
    361363#define K_UNDO          K(KT_FN,255)
    362364
    363 
    364365#define K_HOLE          K(KT_SPEC,0)
    365366#define K_ENTER         K(KT_SPEC,1)
     
    624625extern unsigned int keymap_count;
    625626
    626 
    627627#endif
  • c/src/lib/libbsp/i386/pc386/console/mouse_parser.c

    r6128a4a rf05b2ac  
    3030#include "mouse_parser.h"
    3131#include "serial_mouse.h"
    32 
    3332
    3433/* NOTE NOTE NOTE NOTE:
     
    226225}
    227226
    228 
    229227/*
    230228 * Input routine for Microsoft mouse.
     
    395393}
    396394
    397 
    398395void unregister_kbd_msg_queue( int port )
    399396{
  • c/src/lib/libbsp/i386/pc386/console/mouse_parser.h

    r6128a4a rf05b2ac  
    3232#endif
    3333
    34 
    3534#endif /*  __mouse_parser_h__  */
  • c/src/lib/libbsp/i386/pc386/console/outch.c

    r6128a4a rf05b2ac  
    1717 * $Id$
    1818 */
    19 
    2019
    2120#include <bsp.h>
     
    7776}
    7877
    79 
    8078int (*videoHook)(char, int *)=0;
    8179
     
    10199/* erase current location without moving the cursor */
    102100#define BLANK   ((char)0x7f)
    103 
    104101
    105102static void
     
    274271} /* _IBMPC_outch */
    275272
    276 
    277273/*-------------------------------------------------------------------------+
    278274|         Function: _IBMPC_initVideo
     
    310306} /* _IBMPC_initVideo */
    311307
    312 
    313308/* for old DOS compatibility n-curses type of applications */
    314309void gotoxy( int x, int y )
     
    317312}
    318313
    319 
    320314int whereX( void )
    321315{
  • c/src/lib/libbsp/i386/pc386/console/pc_keyb.c

    r6128a4a rf05b2ac  
    165165  0, 0, 0, 0, 0, 0, 0, 0                              /* 0x78-0x7f */
    166166};
    167 
    168167
    169168static void mdelay( unsigned long t )
     
    218217{
    219218        static int prev_scancode = 0;
    220 
    221219
    222220        /* special prefix scancodes.. */
     
    319317}
    320318
    321 
    322 
    323319static void kb_wait(void)
    324320{
     
    341337#endif
    342338}
    343 
    344339
    345340/*
     
    389384        return status;
    390385}
    391 
    392386
    393387void keyboard_interrupt( void )
     
    596590        }
    597591
    598 
    599592        kbd_write_output_w(KBD_CMD_ENABLE);
    600593        if (kbd_wait_for_input() != KBD_REPLY_ACK)
     
    612605}
    613606
    614 
    615607void pckbd_init_hw(void)
    616608{
  • c/src/lib/libbsp/i386/pc386/console/ps2_drv.h

    r6128a4a rf05b2ac  
    1616 *
    1717 * $Log$
     18 * Revision 1.3  2004/04/21 10:42:44  ralf
     19 * Remove stray white spaces.
     20 *
    1821 * Revision 1.2  2004/04/15 13:26:12  ralf
    1922 * Remove stray white spaces.
     
    8487);
    8588
    86 
    8789rtems_device_driver paux_read(
    8890  rtems_device_major_number,
  • c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c

    r6128a4a rf05b2ac  
    7575}
    7676
    77 
    7877static void*    termios_ttyp_paux = NULL;
    7978
     
    9594}
    9695
    97 
    9896static rtems_irq_connect_data ps2_isr_data = { AUX_IRQ,
    9997                                                   ps2_mouse_interrupt, isr_on,  isr_off, isr_is_on };
    100 
    10198
    10299/*
     
    162159}
    163160
    164 
    165161static inline void handle_mouse_event(unsigned char scancode)
    166162{
     
    228224        return status;
    229225}
    230 
    231226
    232227static void ps2_mouse_interrupt()
     
    405400}
    406401
    407 
    408402static int queue_empty(void)
    409403{
     
    439433        }
    440434        queue->head = queue->tail = 0;          /* Flush input queue */
    441 
    442435
    443436   status = BSP_install_rtems_irq_handler( &ps2_isr_data );
     
    579572} /* tty_initialize */
    580573
    581 
    582574static int paux_last_close(int major, int minor, void *arg)
    583575{
     
    595587   return 0;
    596588}
    597 
    598589
    599590/*
     
    607598   return RTEMS_SUCCESSFUL;
    608599}
    609 
    610600
    611601/*
     
    646636}
    647637
    648 
    649638/*
    650639 * paux device driver READ entry point.
     
    658647  return rtems_termios_read (arg);
    659648} /* tty_read */
    660 
    661649
    662650/*
     
    676664} /* tty_write */
    677665
    678 
    679666/*
    680667 * Handle ioctl request.
  • c/src/lib/libbsp/i386/pc386/console/ps2_mouse.h

    r6128a4a rf05b2ac  
    1919#undef KBD_IS_FOCUS_9000                /* We have the brain-damaged FOCUS-9000 keyboard */
    2020#undef INITIALIZE_MOUSE                 /* Define if your PS/2 mouse needs initialization. */
    21 
    22 
    2321
    2422#define KBD_INIT_TIMEOUT 1000           /* Timeout in ms for initializing the keyboard */
  • c/src/lib/libbsp/i386/pc386/console/serial_mouse.c

    r6128a4a rf05b2ac  
    1919 *
    2020 * $Log$
     21 * Revision 1.6  2004/04/21 10:42:44  ralf
     22 * Remove stray white spaces.
     23 *
    2124 * Revision 1.5  2000/12/05 16:37:38  joel
    2225 * 2000-12-01   Joel Sherrill <joel@OARcorp.com>
     
    5962static void isr_off(const rtems_irq_connect_data *);
    6063static int  isr_is_on(const rtems_irq_connect_data *);
    61 
    6264
    6365extern BSP_polling_getchar_function_type BSP_poll_char;
     
    162164  return RTEMS_SUCCESSFUL;
    163165} /* tty_initialize */
    164 
    165166
    166167static int serial_mouse_last_close(int major, int minor, void *arg)
     
    221222} /* tty_close */
    222223
    223 
    224224/*
    225225 * TTY device driver READ entry point.
     
    233233  return rtems_termios_read (arg);
    234234} /* tty_read */
    235 
    236235
    237236/*
     
    286285  return serial_mouse_control_internal( BSP_UART_PORT, arg );
    287286}
    288 
    289 
    290287
    291288static int
  • c/src/lib/libbsp/i386/pc386/console/serial_mouse.h

    r6128a4a rf05b2ac  
    1616 *
    1717 * $Log$
     18 * Revision 1.3  2004/04/21 10:42:44  ralf
     19 * Remove stray white spaces.
     20 *
    1821 * Revision 1.2  2004/04/15 13:26:12  ralf
    1922 * Remove stray white spaces.
     
    5962#endif
    6063
    61 
    6264/* ttyS1 entry points */
    6365rtems_device_driver serial_mouse_initialize(
     
    7981);
    8082
    81 
    8283/* serial_mouse  entry points */
    8384rtems_device_driver serial_mouse_close(
     
    8687  void *
    8788);
    88 
    8989
    9090rtems_device_driver serial_mouse_read(
     
    100100);
    101101
    102 
    103102/* Select the mouse type:  "ms","pc","ps2" */
    104103#define  MOUSE_TYPE        "ms"
     
    107106#define  SERIAL_MOUSE_COM1  1
    108107/* #define  SERIAL_MOUSE_COM2  1  */
    109 
    110108
    111109#define SERIAL_MOUSE_DRIVER_TABLE_ENTRY \
  • c/src/lib/libbsp/i386/pc386/console/vgainit.c

    r6128a4a rf05b2ac  
    2222#define  MODE_MAX       3
    2323typedef int MODE;    /* drawing mode*/
    24 
    2524
    2625/* Define one and only one of the following to be nonzero*/
     
    151150}
    152151
    153 
    154152/* Values for the data rotate register to implement drawing modes. */
    155153static unsigned char mode_table[MODE_MAX + 1] = {
     
    168166  outp(GRVAL, mode_table[mode]);
    169167}
    170 
    171168
    172169#if VGA_ET4000
     
    269266};
    270267
    271 
    272268/* VGA 80x25 text (BIOS mode 3).
    273269 */
     
    369365#endif
    370366
    371 
    372367#if VGA_STANDARD
    373368
     
    469464};
    470465
    471 
    472466/* VGA 80x25 text (BIOS mode 3).
    473467 */
     
    569563#endif
    570564
    571 
    572565#if EGA_STANDARD
    573566
     
    669662};
    670663
    671 
    672664/* EGA 80x25 text (BIOS mode 3).
    673665 */
  • c/src/lib/libbsp/i386/pc386/console/vt.c

    r6128a4a rf05b2ac  
    110110void (*kd_mksound)(unsigned int hz, unsigned int ticks) = _kd_mksound;
    111111
    112 
    113112#define i (tmp.kb_index)
    114113#define s (tmp.kb_table)
     
    145144#undef v
    146145
    147 
    148146#define  HZ  100
    149147
  • c/src/lib/libbsp/i386/pc386/ide/idecfg.c

    r6128a4a rf05b2ac  
    2323#include <libchip/ide_ctrl_cfg.h>
    2424#include <libchip/ide_ctrl_io.h>
    25 
    2625
    2726/*
  • c/src/lib/libbsp/i386/pc386/include/bsp.h

    r6128a4a rf05b2ac  
    3838|  $Id$
    3939+--------------------------------------------------------------------------*/
    40 
    4140
    4241#ifndef __BSP_H_
     
    212211void Wait_X_ms(unsigned int timeToWait); /* from 'timer.c'  */
    213212
    214 
    215213/* Definitions for BSPConsolePort */
    216214#define BSP_CONSOLE_PORT_CONSOLE (-1)
  • c/src/lib/libbsp/i386/pc386/include/crt.h

    r6128a4a rf05b2ac  
    2525        /* In color      */
    2626#define V_COLOR 0xb8000
    27 
    2827
    2928/*
     
    7372#define ON              1
    7473
    75 
    7674/*
    7775 * CRT Controller register offset definitions
  • c/src/lib/libbsp/i386/pc386/start/start.S

    r6128a4a rf05b2ac  
    6464        EXTERN (debugPollingGetChar)
    6565        EXTERN (checkCPUtypeSetCr0)
    66 
    6766
    6867/*
  • c/src/lib/libbsp/i386/pc386/startup/bspstart.c

    r6128a4a rf05b2ac  
    3131+--------------------------------------------------------------------------*/
    3232
    33 
    3433#include <bsp.h>
    3534#include <rtems/libio.h>
     
    8483  uint32_t         topAddr, val;
    8584  int i;
    86 
    8785
    8886  if (rtemsFreeMemStart & (CPU_ALIGNMENT - 1))  /* not aligned => align it */
     
    120118  rtemsFreeMemStart += _heap_size;           /* HEAP_SIZE  in KBytes */
    121119
    122 
    123120#ifdef RTEMS_DEBUG
    124121
     
    127124#endif /* RTEMS_DEBUG */
    128125} /* bsp_pretasking_hook */
    129 
    130126
    131127/*-------------------------------------------------------------------------+
  • c/src/lib/libbsp/i386/pc386/startup/exit.c

    r6128a4a rf05b2ac  
    3131+--------------------------------------------------------------------------*/
    3232
    33 
    3433#include <stdio.h>
    3534#include <bsp.h>
  • c/src/lib/libbsp/i386/pc386/startup/ldsegs.S

    r6128a4a rf05b2ac  
    205205        .byte 0, 0x92, 0xcf, 0
    206206
    207 
    208207/*---------------------------------------------------------------------------+
    209208| Descriptor of GDT
     
    212211        .word (3*8 - 1)
    213212        .long SYM (_Global_descriptor_table)
    214 
    215213
    216214/*---------------------------------------------------------------------------+
  • c/src/lib/libbsp/i386/pc386/timer/timer.c

    r6128a4a rf05b2ac  
    3939+--------------------------------------------------------------------------*/
    4040
    41 
    4241#include <stdlib.h>
    4342
     
    9190} /* rdtsc */
    9291
    93 
    9492/*-------------------------------------------------------------------------+
    9593|         Function: Timer_exit
     
    105103} /* Timer_exit */
    106104
    107 
    108105/*-------------------------------------------------------------------------+
    109106|         Function: Timer_initialize
     
    126123  Ttimer_val = rdtsc(); /* read starting time */
    127124} /* Timer_initialize */
    128 
    129125
    130126/*-------------------------------------------------------------------------+
     
    156152+--------------------------------------------------------------------------*/
    157153#define US_PER_ISR   250  /* Number of micro-seconds per timer interruption */
    158 
    159154
    160155/*-------------------------------------------------------------------------+
     
    179174} /* Timer_exit */
    180175
    181 
    182176static void
    183177timerOn(const rtems_raw_irq_connect_data* used)
     
    249243} /* Timer_initialize */
    250244
    251 
    252245/*-------------------------------------------------------------------------+
    253246|         Function: Read_timer
     
    279272#endif /* pentium */
    280273
    281 
    282274/*-------------------------------------------------------------------------+
    283275|         Function: Empty_function
     
    291283  return RTEMS_SUCCESSFUL;
    292284} /* Empty function */
    293 
    294285
    295286/*-------------------------------------------------------------------------+
     
    319310  outport_byte(TIMER_CNTR0, (loadedValue >> 8) & 0xff);
    320311}
    321 
    322312
    323313/*-------------------------------------------------------------------------+
  • c/src/lib/libbsp/i386/pc386/timer/timerisr.S

    r6128a4a rf05b2ac  
    3131+--------------------------------------------------------------------------*/
    3232
    33 
    3433#include <rtems/asm.h>
    3534
  • c/src/lib/libbsp/i386/pc386/tools/bin2boot.c

    r6128a4a rf05b2ac  
    3333}
    3434
    35 
    3635int main(int argc, char* argv[])
    3736{
     
    131130    }
    132131
    133 
    134132  /* Copy first image out and remember its length */
    135133  cnt  = 0;
     
    178176    }
    179177
    180 
    181178  /* Let us check agains overlapping */
    182179  if(!(addr1 >= (headerAddr + sizeof(buf)) || (headerAddr >= addr1+size1)))
     
    199196      return 1;
    200197    }
    201 
    202198
    203199  if(optind == (argc - 1))
     
    365361      buf[0x23] = 4;
    366362
    367 
    368363      /* Load address */
    369364      buf[0x24] = addr2 & 0xff;
  • c/src/lib/libbsp/i386/pc386/wd8003/wd8003.c

    r6128a4a rf05b2ac  
    288288  for (;;){
    289289
    290 
    291290    rtems_bsdnet_event_receive (INTERRUPT_EVENT,
    292291                                RTEMS_WAIT|RTEMS_EVENT_ANY,
     
    491490}
    492491
    493 
    494492/*
    495493 * Show interface statistics
     
    606604        else
    607605                mtu = ETHERMTU;
    608 
    609606
    610607        if (config->irno)
  • c/src/lib/libbsp/i386/shared/comm/gdb_glue.c

    r6128a4a rf05b2ac  
    4646  set_debug_traps();
    4747
    48 
    4948  printf( "Remote GDB: waiting remote connection....\n" );
    5049
  • c/src/lib/libbsp/i386/shared/comm/i386-stub-glue.c

    r6128a4a rf05b2ac  
    1414#include <uart.h>
    1515#include <assert.h>
    16 
    1716
    1817int  putDebugChar(int ch);     /* write a single character      */
     
    5554  return BSP_irq_enabled_at_i8259s(used->idtIndex - BSP_IRQ_VECTOR_BASE);
    5655}
    57 
    5856
    5957/*
     
    116114}
    117115
    118 
    119116int
    120117putDebugChar(int ch)
  • c/src/lib/libbsp/i386/shared/comm/i386-stub.c

    r6128a4a rf05b2ac  
    465465}
    466466
    467 
    468467/* scan for the sequence $<data>#<checksum>     */
    469468void
     
    530529
    531530/* send the packet in buffer.  */
    532 
    533531
    534532void
  • c/src/lib/libbsp/i386/shared/comm/tty_drv.c

    r6128a4a rf05b2ac  
    1919 *
    2020 * $Log$
     21 * Revision 1.6  2004/04/21 10:42:44  ralf
     22 * Remove stray white spaces.
     23 *
    2124 * Revision 1.5  2001/08/16 20:52:05  joel
    2225 * 2001-08-16   Mike Siers <mikes@poliac.com>
     
    8588static int  isr_is_on(const rtems_irq_connect_data *);
    8689
    87 
    8890extern BSP_polling_getchar_function_type BSP_poll_char;
    8991extern int BSPConsolePort;
    9092extern void rtems_set_waiting_id_comx( int port,  rtems_id id, rtems_event_set event );
    91 
    9293
    9394/*
     
    183184  return RTEMS_SUCCESSFUL;
    184185} /* tty_initialize */
    185 
    186186
    187187static int tty1_last_close(int major, int minor, void *arg)
     
    256256} /* tty_close */
    257257
    258 
    259258/*
    260259 * TTY device driver READ entry point.
     
    268267  return rtems_termios_read (arg);
    269268} /* tty_read */
    270 
    271269
    272270/*
     
    300298}
    301299
    302 
    303 
    304300/*
    305301 * Handle ioctl request for ttyS1.
     
    313309  return tty_control( BSP_UART_COM1, arg );
    314310}
    315 
    316311
    317312static int
     
    425420}
    426421
    427 
    428 
    429422/*
    430423 * TTY2 device driver INITIALIZE entry point.
     
    473466  return RTEMS_SUCCESSFUL;
    474467} /* tty_initialize */
    475 
    476468
    477469static int tty2_last_close(int major, int minor, void *arg)
  • c/src/lib/libbsp/i386/shared/comm/tty_drv.h

    r6128a4a rf05b2ac  
    1616 *
    1717 * $Log$
     18 * Revision 1.3  2004/04/21 10:42:44  ralf
     19 * Remove stray white spaces.
     20 *
    1821 * Revision 1.2  2004/04/15 13:26:12  ralf
    1922 * Remove stray white spaces.
     
    3942#endif
    4043
    41 
    4244/* ttyS1 entry points */
    4345rtems_device_driver tty1_initialize(
     
    5961);
    6062
    61 
    6263/* tty1 & tty2 shared entry points */
    6364rtems_device_driver tty_close(
     
    6667  void *
    6768);
    68 
    6969
    7070rtems_device_driver tty_read(
     
    7979  void *
    8080);
    81 
    82 
    8381
    8482/* tty2 entry points */
     
    10199);
    102100
    103 
    104 
    105101#define TTY1_DRIVER_TABLE_ENTRY \
    106102  { tty1_initialize, tty1_open, tty_close, \
    107103    tty_read, tty_write, tty1_control }
    108104
    109 
    110105#define TTY2_DRIVER_TABLE_ENTRY \
    111106  { tty2_initialize, tty2_open, tty_close, \
    112107    tty_read, tty_write, tty2_control }
    113 
    114 
    115108
    116109#ifdef __cplusplus
  • c/src/lib/libbsp/i386/shared/comm/uart.c

    r6128a4a rf05b2ac  
    147147  uwrite(uart, LCR, databits | parity | stopbits);
    148148
    149 
    150149  /* Set DTR, RTS and OUT2 high */
    151150  uwrite(uart, MCR, DTR | RTS | OUT_2);
     
    355354}
    356355
    357 
    358356/*
    359357 * Polled mode write function
     
    443441}
    444442
    445 
    446443/* ================ Termios support  =================*/
    447444
     
    478475  }
    479476}
    480 
    481477
    482478/*
     
    620616    }
    621617
    622 
    623618  /* If there TX buffer is busy - something is royally screwed up */
    624619  assert((uread(BSP_UART_COM2, LSR) & THRE) != 0);
     
    644639  return 0;
    645640}
    646 
    647641
    648642void
     
    837831}
    838832
    839 
    840833/* ================= GDB support     ===================*/
    841834static int sav[4] __attribute__ ((unused));
     
    919912asm ("   iret");                 /* Done */
    920913
    921 
    922914/*
    923915 * Interrupt service routine for COM2 - all,
  • c/src/lib/libbsp/i386/shared/comm/uart.h

    r6128a4a rf05b2ac  
    175175#endif
    176176
    177 
    178177#endif /* _BSPUART_H */
  • c/src/lib/libbsp/i386/shared/irq/idt.c

    r6128a4a rf05b2ac  
    6464    unsigned                    limit;
    6565    unsigned int                level;
    66 
    6766
    6867    i386_get_info_from_IDTR (&idt_entry_tbl, &limit);
     
    242241    segment_descriptors*        gdt_entry_tbl;
    243242
    244 
    245243    i386_get_info_from_GDTR (&gdt_entry_tbl, &gdt_limit);
    246244
  • c/src/lib/libbsp/i386/shared/irq/irq.c

    r6128a4a rf05b2ac  
    1212 */
    1313
    14 
    1514#include <bsp.h>
    1615#include <irq.h>
     
    138137  return  (~(i8259s_cache & mask));
    139138}
    140 
    141139
    142140/*-------------------------------------------------------------------------+
     
    205203}
    206204
    207 
    208205/*
    209206 * This function check that the value given for the irq line
     
    263260    return 1;
    264261}
    265 
    266262
    267263int BSP_get_current_rtems_irq_handler   (rtems_irq_connect_data* irq)
  • c/src/lib/libbsp/i386/shared/irq/irq.h

    r6128a4a rf05b2ac  
    6161} rtems_irq_symbolic_name;
    6262
    63 
    64 
    65 
    6663/*
    6764 * Type definition for RTEMS managed interrupts
     
    140137    rtems_irq_prio*             irqPrioTbl;
    141138}rtems_irq_global_settings;
    142 
    143 
    144 
    145139
    146140/*-------------------------------------------------------------------------+
  • c/src/lib/libbsp/i386/shared/irq/irq_asm.S

    r6128a4a rf05b2ac  
    131131        outb      $PIC_SLAVE_IMR_IO_PORT
    132132
    133 
    134133        decl      SYM (_ISR_Nest_level)     /* one less ISR nest level */
    135134                                            /* If interrupts are nested, */
     
    149148                                            /*   while in interrupt handler? */
    150149        je        .exit                     /* No, exit */
    151 
    152150
    153151.bframe:
     
    203201        popl    eax
    204202        iret
    205 
    206203
    207204#define DISTINCT_INTERRUPT_ENTRY(_vector) \
  • c/src/lib/libbsp/i386/shared/irq/irq_asm.h

    r6128a4a rf05b2ac  
    2727#define PIC_EOI         0x20    /* Generic End of Interrupt (EOI) */
    2828
    29 
    3029#endif
  • c/src/lib/libbsp/i386/shared/irq/irq_init.c

    r6128a4a rf05b2ac  
    4949 */
    5050static int not_connected() {return 0;}
    51 
    5251
    5352static rtems_raw_irq_connect_data       idtHdl[IDT_SIZE];
     
    101100};
    102101
    103 
    104 
    105102static interrupt_gate_descriptor        idtEntry;
    106103
     
    130127    }
    131128
    132 
    133129    _CPU_ISR_Disable(level);
    134130
  • c/src/lib/libbsp/i386/shared/pci/pcibios.c

    r6128a4a rf05b2ac  
    1818 * is flat and that stack is big enough
    1919 */
    20 
    2120
    2221static int pcibInitialized = 0;
     
    212211}
    213212
    214 
    215 
    216 
    217213#define PCI_MULTI_FUNCTION       0x80
    218214#define PCI_MAX_DEVICES          16
    219215#define PCI_MAX_FUNCTIONS        8
    220 
    221216
    222217int
     
    274269}
    275270
    276 
    277 
    278 
    279271/*
    280272 * Generate Special Cycle
     
    307299}
    308300
    309 
    310301/*
    311302 * Read byte from config space
     
    345336}
    346337
    347 
    348338/*
    349339 * Read word from config space
     
    383373}
    384374
    385 
    386375/*
    387376 * Read dword from config space
     
    420409  return PCIB_ERR_SUCCESS;
    421410}
    422 
    423411
    424412/*
     
    484472}
    485473
    486 
    487 
    488474/*
    489475 * Write dword into config space
     
    516502  return pcib_convert_err((pcibExchg[0] >> 8) & 0xff);
    517503}
    518 
    519504
    520505static int
  • c/src/lib/libbsp/i386/ts_386ex/clock/ckinit.c

    r6128a4a rf05b2ac  
    7777                                              ClockOff,
    7878                                              ClockIsOn};
    79 
    8079
    8180rtems_device_driver Clock_initialize(
  • c/src/lib/libbsp/i386/ts_386ex/clock/rtc.c

    r6128a4a rf05b2ac  
    3131|  $Id$
    3232+--------------------------------------------------------------------------*/
    33 
    3433
    3534#include <string.h>
     
    7170#define RTC_CENTURY    0x32  /* current century - increment in Dec99   */
    7271
    73 
    7472/*-------------------------------------------------------------------------+
    7573| Auxiliary Functions
     
    108106} /* ytos */
    109107
    110 
    111108/*-------------------------------------------------------------------------+
    112109|         Function: mtos
     
    144141    return r;
    145142} /* rtcin */
    146 
    147143
    148144/*-------------------------------------------------------------------------+
     
    175171       printf("RTC BIOS diagnostic error %b\n", s, RTCDG_BITS); */
    176172} /* init_rtc */
    177 
    178173
    179174/*-------------------------------------------------------------------------+
  • c/src/lib/libbsp/i386/ts_386ex/console/console.c

    r6128a4a rf05b2ac  
    159159} /* console_initialize */
    160160
    161 
    162161static int console_last_close(int major, int minor, void *arg)
    163162{
     
    226225} /* console_close */
    227226
    228 
    229227/*-------------------------------------------------------------------------+
    230228| Console device driver READ entry point.
     
    248246} /* console_read */
    249247
    250 
    251248/*-------------------------------------------------------------------------+
    252249| Console device driver WRITE entry point.
     
    262259
    263260} /* console_write */
    264 
    265 
    266261
    267262/*
  • c/src/lib/libbsp/i386/ts_386ex/include/bsp.h

    r6128a4a rf05b2ac  
    1111 *  $Id$
    1212 */
    13 
    1413
    1514#ifndef __TS386_h
     
    10099#define MUST_WAIT_FOR_INTERRUTPT 0
    101100
    102 
    103101#define Install_tm27_vector(handler) \
    104102{ \
     
    147145
    148146#define Is_tx_ready( _status ) ( (_status) & 0x40 )
    149 
    150147
    151148#define Is_rx_ready( _status ) ( (_status) & 0x01 )
  • c/src/lib/libbsp/i386/ts_386ex/start/80386ex.h

    r6128a4a rf05b2ac  
    4848#define OCW3SDOS          0x00A0
    4949
    50 
    5150/* CONFIGURATION Registers */
    5251#define DMACFG    0xF830
  • c/src/lib/libbsp/i386/ts_386ex/start/start.S

    r6128a4a rf05b2ac  
    4949
    5050        PUBLIC( SYM(_init_i386ex) )
    51 
    5251
    5352        .section .initial, "ax"
     
    273272        SetExRegByte(TMR0   , 0x00 ) # sfa
    274273        SetExRegByte(TMR0   , 0x00 ) # sfa
    275 
    276274
    277275        SetExRegByte(TMRCON , 0x70 ) # mode 0 disables on Gate= Vcc
     
    479477        hlt                              # shutdown
    480478
    481 
    482479        .balign 4                        # align tables to 4 byte boundary
    483480
     
    488485        .word 0,0,0,0
    489486        .endr
    490 
    491487
    492488/*
  • c/src/lib/libbsp/i386/ts_386ex/startup/bspstart.c

    r6128a4a rf05b2ac  
    7979    bsp_libc_init((void *) heap_start, heap_size, 0);
    8080
    81 
    8281#ifdef RTEMS_DEBUG
    8382    rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
  • c/src/lib/libbsp/i386/ts_386ex/timer/timer.c

    r6128a4a rf05b2ac  
    2323 *  $Id$
    2424 */
    25 
    2625
    2726#include <rtems.h>
     
    131130}
    132131
    133 
    134132#define AVG_OVERHEAD      3  /* It typically takes 3.0 microseconds */
    135133                             /* (3 ticks) to start/stop the timer. */
  • c/src/lib/libbsp/i386/ts_386ex/tools/debug_c/serial_gdb.c

    r6128a4a rf05b2ac  
    2121void i386_stub_glue_init_breakin(void);
    2222void set_debug_traps(void);
    23 
    2423
    2524 /* Init GDB glue  */
     
    4948  set_debug_traps();
    5049
    51 
    5250  printk( "Remote GDB: waiting for remote connection...\n" );
    5351
  • c/src/lib/libbsp/i960/cvme961/clock/ckinit.c

    r6128a4a rf05b2ac  
    3838rtems_device_major_number rtems_clock_major = ~0;
    3939rtems_device_minor_number rtems_clock_minor;
    40 
    4140
    4241/* this is later in the file to avoid it being inlined */
  • c/src/lib/libbsp/i960/cvme961/console/console.c

    r6128a4a rf05b2ac  
    8686  return ch;
    8787}
    88 
    8988
    9089/*  outbyte
  • c/src/lib/libbsp/i960/cvme961/shmsupp/getcfg.c

    r6128a4a rf05b2ac  
    5151#define POLLING   0                   /* polling and interrupt modes  */
    5252
    53 
    5453shm_config_table BSP_shm_cfgtbl;
    5554
  • c/src/lib/libbsp/i960/cvme961/timer/timer.c

    r6128a4a rf05b2ac  
    2525 *  $Id$
    2626 */
    27 
    2827
    2928#include <rtems.h>
  • c/src/lib/libbsp/i960/i960sim/clock/clockdrv.c

    r6128a4a rf05b2ac  
    1515  do { _old = 0; } while(0)
    1616
    17 
    1817#define Clock_driver_support_initialize_hardware()
    1918
  • c/src/lib/libbsp/i960/i960sim/console/mon-syscalls.S

    r6128a4a rf05b2ac  
    1111#define ENTRY(name)     \
    1212        _ENTRY(_C_LABEL(name))
    13 
    14 
    1513
    1614ENTRY(_sys_exit)
  • c/src/lib/libbsp/i960/i960sim/start/start.c

    r6128a4a rf05b2ac  
    3333  __asm__ volatile ("mov %0,fp" : : "d" (ptr));
    3434
    35 
    3635  init_Cregs();
    3736  boot_card();
  • c/src/lib/libbsp/i960/rxgen960/clock/ckinit.c

    r6128a4a rf05b2ac  
    5858  volatile unsigned int *imsk = (unsigned int *) IMSK_ADDR;
    5959  void clockHandler();
    60 
    6160
    6261  Clock_driver_ticks = 0;
  • c/src/lib/libbsp/i960/rxgen960/console/console.c

    r6128a4a rf05b2ac  
    4242     if ( console_pmr_init(*(uint32_t*)arg) )
    4343        return RTEMS_INVALID_NUMBER;
    44 
    4544
    4645  status = rtems_io_register_name(
     
    5655}
    5756
    58 
    5957/*  is_character_ready
    6058 *
     
    120118    outbyte( minor, '\r' );
    121119}
    122 
    123120
    124121/*
  • c/src/lib/libbsp/i960/rxgen960/console/serial.c

    r6128a4a rf05b2ac  
    55#include "serial.h"
    66#include "rtems.h"
    7 
    87
    98typedef unsigned char uchar ;           /* Abbreviations */
     
    2322}cons_input[MAX_CONSOLE];
    2423
    25 
    26 
    2724/* This uses the message out and in buffers as serial emulator.
    2825        Pretty stupid eh?
     
    3633static volatile unsigned int * uart_rx = { uart1_rx };
    3734
    38 
    3935extern void     display_msg(void);
    4036/*extern int    sprintf();*/
    41 
    42 
    4337
    4438int
     
    5145        return(0);
    5246}
    53 
    5447
    5548/* Introduce a new console channel */
     
    7265#endif
    7366}
    74 
    75 
    7667
    7768    /***********************************************************************
     
    127118
    128119}
    129 
    130120
    131121    /*
     
    306296}
    307297
    308 
    309298void cons_isr()
    310299{
  • c/src/lib/libbsp/i960/rxgen960/start/rxgen_romld.S

    r6128a4a rf05b2ac  
    109109        b       _romExit
    110110
    111 
    112 
    113111SYM(led_array):
    114112        .byte 99
     
    125123        .byte 0xb
    126124        .byte 0xc
    127 
    128125
    129126/* just to compile and link application XXX JOEL */
  • c/src/lib/libbsp/i960/rxgen960/startup/asmstub.S

    r6128a4a rf05b2ac  
    8686        ret
    8787
    88 
    8988########################################################################
    9089#
  • c/src/lib/libbsp/i960/rxgen960/startup/bspstart.c

    r6128a4a rf05b2ac  
    7878    bsp_libc_init((void *) heap_start, 64 * 1024, 0);
    7979
    80 
    8180#ifdef RTEMS_DEBUG
    8281    rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
     
    8483*(unsigned char *)(0x120f) = 0xf;
    8584}
    86 
    8785
    8886/* we need to have the top of memory remembered later to start libc_init with
     
    133131     top_of_used_memory +=  (BSP_Configuration.work_space_size + 0x1000);
    134132
    135 
    136133*(unsigned char *)(0x120f) = 0x0a;
    137134
  • c/src/lib/libbsp/i960/rxgen960/startup/cntrltbl.c

    r6128a4a rf05b2ac  
    1818#define IMAP2           0xA90000
    1919#define ICON    (VECTOR_CACHE | MSK_UNCHNG | I_ENABLE)
    20 
    2120
    2221/* Bus configuration */
     
    4443/*Bus Control Initial value */
    4544#define BCON CONF_TBL_VALID
    46 
    47 
    4845
    4946ControlTblEntry controlTbl[] = {
  • c/src/lib/libbsp/i960/rxgen960/startup/cntrltbl.h

    r6128a4a rf05b2ac  
    3333#define VECTOR_CACHE    (0x1<<13)
    3434
    35 
    36 
    3735  /* BreakPoint Control Register Initial.
    3836   */
     
    4442#define PROTECT_RAM_SUP 0x4
    4543
    46 
    47 
    4844#endif
    4945/*-------------*/
  • c/src/lib/libbsp/i960/rxgen960/startup/intrtbl.c

    r6128a4a rf05b2ac  
    1010#include "intrtbl.h"
    1111/*-------------------------------------*/
    12 
    1312
    1413  /* Interrupt Table. Dedicated Interrupts are cached.
  • c/src/lib/libbsp/i960/rxgen960/startup/prcb.c

    r6128a4a rf05b2ac  
    3939#define REG_CACHE_CONFIG        0x000
    4040
    41 
    4241struct PRCB ram_prcb = {
    4342  & faultTbl[0],                        /* Fault Table Base */
  • c/src/lib/libbsp/i960/rxgen960/startup/rom_cntrltbl.c

    r6128a4a rf05b2ac  
    1818#define IMAP2           0xA90000
    1919#define ICON    (VECTOR_CACHE | MSK_UNCHNG | I_ENABLE)
    20 
    2120
    2221/* Bus configuration */
     
    4443/*Bus Control Initial value */
    4544#define BCON CONF_TBL_VALID
    46 
    47 
    4845
    4946ControlTblEntry rom_controlTbl[] = {
  • c/src/lib/libbsp/i960/rxgen960/startup/rom_ibr.c

    r6128a4a rf05b2ac  
    1414/*-------------------------------------*/
    1515extern void romStart(void);
    16 
    1716
    1817struct IBR rom_ibr = {
  • c/src/lib/libbsp/i960/rxgen960/startup/rom_prcb.c

    r6128a4a rf05b2ac  
    4040#define REG_CACHE_CONFIG        0x200
    4141
    42 
    4342struct PRCB rom_prcb = {
    4443  & faultTbl[0],                        /* Fault Table Base */
  • c/src/lib/libbsp/i960/rxgen960/startup/setvec.c

    r6128a4a rf05b2ac  
    112112  volatile unsigned int *imsk = (unsigned int *) IMSK_ADDR;
    113113
    114 
    115114  cached_intr_tbl = (i960_isr_entry *) 0;
    116115  intr_tbl        = (i960_isr_entry *) Prcb->intr_tbl;
  • c/src/lib/libbsp/i960/rxgen960/timer/timer.c

    r6128a4a rf05b2ac  
    2626 */
    2727
    28 
    2928#include <bsp.h>
    3029#include <stdlib.h>
    3130#include <rtems/libio.h>
    32 
    3331
    3432#define TIMER_VECTOR 34
     
    5957     *icon = 0x6000;
    6058
    61 
    6259    set_vector( (((unsigned int) timerisr) | 0x2), TIMER_VECTOR, 1 );
    6360
     
    7673
    7774}
    78 
    79 
    8075
    8176rtems_isr timerisr(
  • c/src/lib/libbsp/m68k/dmv152/configure.ac

    r6128a4a rf05b2ac  
    2424[set to 1 to indicate this serial port to be used as RTEMS_CONSOLE])
    2525
    26 
    2726# Explicitly list all Makefiles here
    2827AC_CONFIG_FILES([Makefile])
  • c/src/lib/libbsp/m68k/dmv152/console/console.c

    r6128a4a rf05b2ac  
    111111  /* should enable interrupts here */
    112112}
    113 
    114113
    115114/*
  • c/src/lib/libbsp/m68k/dmv152/timer/timer.c

    r6128a4a rf05b2ac  
    1717 *  $Id$
    1818 */
    19 
    2019
    2120#include <rtems.h>
  • c/src/lib/libbsp/m68k/gen68302/console/console.c

    r6128a4a rf05b2ac  
    123123}
    124124
    125 
    126125/*  inbyte
    127126 *
     
    155154    return ch;
    156155}
    157 
    158156
    159157/*  outbyte
  • c/src/lib/libbsp/m68k/gen68302/include/m302_int.h

    r6128a4a rf05b2ac  
    4343#define EDMA_BLIM_MASK      0x0007
    4444#define EDMA_BLIM_8ACCESS    0x0003
    45 
    4645
    4746/* Ethernet Maximum Receive Buffer Length EMRBLR */
     
    104103
    105104#define AR_CNTRL_MULTI_MASK      (AR_CNTRL_BIT_MULTI0 | AR_CNTRL_BIT_MULTI1)
    106 
    107105
    108106/* Ethernet buffer Status TX */
     
    120118#define BUF_STAT_TO              0x4000
    121119#define BUF_STAT_READY          0x8000
    122 
    123120
    124121/* Ethernet buffer Status RX */
     
    281278  uchar  reserved_3[0x74A];
    282279
    283 
    284 
    285280/****************** 68 EN 302 specific registers **********************/
    286281/** only available here if
     
    303298
    304299  uchar  dram_reserved[0x7E8];
    305 
    306300
    307301    /* Ethernet Controller Registers */
     
    388382#define M68302imp_sccs(i)            (M68302imp_ scc_regs[i].sccs)
    389383
    390 
    391384/*----------------------------------------------------------------------------*/
    392385
     
    399392#define M68en302imp_drfrsh           (M68302imp_ drfrsh)
    400393#define M68en302imp_dba(i)           (M68302imp_ dba[i])
    401 
    402394
    403395#define M68en302imp_ecntrl           (M68302imp_ ecntrl)
     
    518510#define M68302_CS_READ_AND_WRITE 0x00 /* read and write memory access */
    519511
    520 
    521512#define M68302_cs_install(cs_nb,base_add,range,nb_wait_state,read_write) \
    522513  do { \
  • c/src/lib/libbsp/m68k/gen68302/network/network.c

    r6128a4a rf05b2ac  
    159159#define FDE             0x0020
    160160
    161 
    162 
    163161        /*
    164162         * standard loopback
     
    166164        M68302imp_port_data     (1) &= ~(LBK);
    167165        M68302imp_port_data     (1) |= (FDE);
    168 
    169166
    170167        M68en302imp_ecntrl=0x0001;
     
    189186         */
    190187        M68en302imp_intr_vect = M302_ETHER_IVECTOR;
    191 
    192188
    193189        M68en302imp_intr_mask=0x0;
     
    233229        cam[6] = (hwaddr[4] << 8) | hwaddr[5];
    234230
    235 
    236231        /*
    237232         * Set receiver and transmitter buffer descriptor bases
    238233         */
    239234        a_bd = M68302imp_a_eth_bd (0);                  /* point to first BD */
    240 
    241235
    242236        for (i=0;i<128;i++){
     
    246240                M68302_scc_bd_p_buffer  (a_bd + i) = NULL;
    247241        }
    248 
    249242
    250243        sc->txBdBase = M68302imp_a_eth_bd (  0 );                       /* point to first BD */
     
    306299                                BUF_STAT_UNDERRUN)) {
    307300                        int j;
    308 
    309301
    310302                        if (status & BUF_STAT_LATE_COLLISION)
     
    404396                rxBd->p_buffer = mtod (m, void *);
    405397
    406 
    407398                if (++rxBdIndex == sc->rxBdCount) {
    408399                        rxBd->stat_ctrl = BUF_STAT_EMPTY | BUF_STAT_INTERRUPT | BUF_STAT_WRAP;
     
    452443                        }
    453444                }
    454 
    455445
    456446                /*
     
    778768                m302Enet_initialize_hardware (sc);
    779769
    780 
    781770                sc->txDaemonTid = rtems_bsdnet_newproc ("SCtx", 4096, scc_txDaemon, sc);
    782771                sc->rxDaemonTid = rtems_bsdnet_newproc ("SCrx", 4096, scc_rxDaemon, sc);
     
    821810
    822811}
    823 
    824812
    825813/*
     
    904892}
    905893
    906 
    907894/*
    908895 * Attach an SCC driver to the system
  • c/src/lib/libbsp/m68k/gen68302/start/start.S

    r6128a4a rf05b2ac  
    4141  .set  FLASH_BASE,     0xc00000        | start of FLASH''s normal location
    4242
    43 
    4443BEGIN_CODE
    4544         PUBLIC (M68Kvec)               | Vector Table
     
    233232END_CODE
    234233
    235 
    236234BEGIN_DATA
    237235
     
    258256        .set   SYM (stack_size),0x1000
    259257
    260 
    261258END_DATA
    262259END
  • c/src/lib/libbsp/m68k/gen68302/timer/timer.c

    r6128a4a rf05b2ac  
    2020 */
    2121
    22 
    2322#include <rtems.h>
    2423#include <bsp.h>
    2524#include <rtems/m68k/m68302.h>
    26 
    2725
    2826#define TMR2_VAL 0x071b /* Timer mode register
     
    111109}
    112110
    113 
    114111/*
    115112 *  Empty function call used in loops to measure basic cost of looping
  • c/src/lib/libbsp/m68k/gen68340/console/Modif_cpu_asm.S

    r6128a4a rf05b2ac  
    1515 *  $Id$
    1616 */
    17 
    1817
    1918#include <rtems/asm.h>
     
    7675        movew   a7@(SAVED+FVO_OFFSET),d0 | d0 = F/VO
    7776        andl    #0x0fff,d0               | d0 = vector offset in vbr
    78 
    7977
    8078#if ( CPU_HAS_SOFTWARE_INTERRUPT_STACK == 1 )
     
    148146        beq     Debug_exit               | No, then Debug_exit
    149147
    150 
    151148bframe: clrl    SYM (_ISR_Signals_to_thread_executing)
    152149                                         | If sent, will be processed
  • c/src/lib/libbsp/m68k/gen68340/include/m340timer.h

    r6128a4a rf05b2ac  
    7878#define m340_COM                (1<<8)
    7979
    80 
    8180#endif
  • c/src/lib/libbsp/m68k/gen68340/start/start.S

    r6128a4a rf05b2ac  
    623623/*      move.b          #0x3F,crt0_pdcs                                         pour test */
    624624
    625 
    626625        /*---------------------------------------*/
    627626        /* -- EPLD chip-select initialization -- */
     
    720719        move.l          #68349,crt0_cpu_type
    721720
    722 
    723721        /* -- jump back to PROM -- */
    724722
     
    762760        move.b  #0,crt0_csswitch                                | CPU
    763761        move.b  #1,crt0_buswidth                                | 16 bits
    764 
    765762
    766763        /*-------------------------------------------------
  • c/src/lib/libbsp/m68k/gen68340/start/startfor340only.S

    r6128a4a rf05b2ac  
    336336_crt0_init_stktop:
    337337
    338 
    339338BEGIN_CODE
    340339        dc.l    _crt0_init_stktop        /* reset SP */
  • c/src/lib/libbsp/m68k/gen68360/network/network.c

    r6128a4a rf05b2ac  
    859859}
    860860
    861 
    862861/*
    863862 * Show interface statistics
  • c/src/lib/libbsp/m68k/gen68360/startup/bspstart.c

    r6128a4a rf05b2ac  
    5959   */
    6060
    61 
    6261  /*
    6362   *  Allocate the memory for the RTEMS Work Space.  This can come from
  • c/src/lib/libbsp/m68k/idp/clock/ckinit.c

    r6128a4a rf05b2ac  
    4848rtems_device_major_number rtems_clock_major = ~0;
    4949rtems_device_minor_number rtems_clock_minor;
    50 
    5150
    5251/*
  • c/src/lib/libbsp/m68k/idp/console/console.c

    r6128a4a rf05b2ac  
    7575}
    7676
    77 
    7877/*  is_character_ready
    7978 *
     
    146145  return tmp_char;
    147146}
    148 
    149147
    150148/*  outbyte
  • c/src/lib/libbsp/m68k/idp/console/duart.c

    r6128a4a rf05b2ac  
    153153  MC68681_WRITE(DUART_ADDR, MC68681_CLOCK_SELECT_REG_B, MC68681_BAUD_RATE_MASK_9600);
    154154
    155 
    156155#define EIGHT_BITS_NO_PARITY
    157156#ifdef EIGHT_BITS_NO_PARITY
     
    168167                (MC68681_WITH_PARITY |  MC68681_7BIT_CHARS) );
    169168#endif
    170 
    171169
    172170  /*
     
    247245}
    248246
    249 
    250247/*#####################################################################
    251248# This is the routine that actually transmits a character one at a time
  • c/src/lib/libbsp/m68k/idp/startup/bspstart.c

    r6128a4a rf05b2ac  
    7979    M68Kvec[ index ] = monitors_vector_table[ 32 ];
    8080
    81 
    8281  M68Kvec[  2 ] = monitors_vector_table[  2 ];   /* bus error vector */
    8382  M68Kvec[  4 ] = monitors_vector_table[  4 ];   /* breakpoints vector */
  • c/src/lib/libbsp/m68k/idp/timer/timer.c

    r6128a4a rf05b2ac  
    2525 *  $Id$
    2626 */
    27 
    2827
    2928#include <rtems.h>
  • c/src/lib/libbsp/m68k/mcf5206elite/console/console.c

    r6128a4a rf05b2ac  
    2121#include "mcf5206/mcf5206e.h"
    2222#include "mcf5206/mcfuart.h"
    23 
    2423
    2524/* Descriptor structures for two on-chip UART channels */
  • c/src/lib/libbsp/m68k/mcf5206elite/i2c/i2c.c

    r6128a4a rf05b2ac  
    156156}
    157157
    158 
    159158/* i2c_write --
    160159 *     Send single message over specified I2C bus to addressed device and
  • c/src/lib/libbsp/m68k/mcf5206elite/i2c/i2cdrv.c

    r6128a4a rf05b2ac  
    7979/* Forward function declaration */
    8080static void i2cdrv_unload(void);
    81 
    8281
    8382/* i2cdrv_done --
     
    190189}
    191190
    192 
    193191/* i2cdrv_initialize --
    194192 *     I2C driver initialization (rtems I/O driver primitive)
     
    250248}
    251249
    252 
    253250/* i2c_poll --
    254251 *     Poll I2C bus controller for events and hanle it. This function is
  • c/src/lib/libbsp/m68k/mcf5206elite/include/bsp.h

    r6128a4a rf05b2ac  
    2727
    2828/*** Board resources allocation ***/
    29 
    3029
    3130/*
  • c/src/lib/libbsp/m68k/mcf5206elite/nvram/nvram.c

    r6128a4a rf05b2ac  
    2525#include <i2c.h>
    2626#include <ds1307.h>
    27 
    2827
    2928/* nvram_driver_initialize --
  • c/src/lib/libbsp/m68k/mcf5206elite/start/start.S

    r6128a4a rf05b2ac  
    415415        jmp     _unexp_int
    416416
    417 
    418417END_CODE
    419418
  • c/src/lib/libbsp/m68k/mcf5206elite/startup/init5206e.c

    r6128a4a rf05b2ac  
    6060#define mcf5206e_enable_cache() \
    6161  m68k_set_cacr( MCF5206E_CACR_CENB )
    62 
    6362
    6463#define mcf5206e_disable_cache() \
  • c/src/lib/libbsp/m68k/mrm332/console/console.c

    r6128a4a rf05b2ac  
    139139  rtems_termios_initialize();
    140140
    141 
    142141  /*
    143142   * register the SCI device name for termios
     
    151150    rtems_fatal_error_occurred(status);
    152151  }
    153 
    154152
    155153  /*
  • c/src/lib/libbsp/m68k/mrm332/console/sci.c

    r6128a4a rf05b2ac  
    3737*
    3838* $Log$
     39* Revision 1.7  2004/04/21 10:42:52  ralf
     40* Remove stray white spaces.
     41*
    3942* Revision 1.6  2004/04/15 13:26:13  ralf
    4043* Remove stray white spaces.
     
    167170#define SCI_MINOR       0                   // minor device number
    168171
    169 
    170172// IMPORTANT - if the device driver api is opened, it means the sci is being
    171173// used for direct hardware access, so other users (like termios) get ignored
     
    173175#define DRIVER_CLOSED   0                   // the device driver api is closed
    174176#define DRIVER_OPENED   1                   // the device driver api is opened
    175 
    176177
    177178// system clock definitions, i dont have documentation on this...
     
    197198
    198199
    199 
    200200/*****************************************************************************
    201201  Section D - External Functions
     
    275275static struct rtems_termios_tty *SciTermioTty;
    276276
    277 
    278277static uint8_t   SciInited = 0;             // has the driver been inited
    279278
     
    300299
    301300#endif
    302 
    303301
    304302// cvs id string so you can use the unix ident command on the object
     
    349347};
    350348
    351 
    352349/*****************************************************************************
    353350  Section I - RTEMS termios callbacks for the polled version of the driver
     
    375372/////////////////////////////////////////////////////////////////////////////
    376373
    377 
    378374/****************************************************************************
    379375* Func:     SCI_output_char
     
    433429    uint8_t   ch;
    434430
    435 
    436431    if ( (*SCSR) & SCI_ERROR_PARITY  )   SciErrorsParity  ++;
    437432    if ( (*SCSR) & SCI_ERROR_FRAMING )   SciErrorsFraming ++;
    438433    if ( (*SCSR) & SCI_ERROR_NOISE   )   SciErrorsNoise   ++;
    439434    if ( (*SCSR) & SCI_ERROR_OVERRUN )   SciErrorsOverrun ++;
    440 
    441435
    442436    // see if it was a transmit interrupt
     
    489483/////////////////////////////////////////////////////////////////////////////
    490484
    491 
    492485/****************************************************************************
    493486* Func:     SciRcvBufGetChar
     
    524517    return ch;                                  // return the char
    525518}
    526 
    527519
    528520
     
    601593//
    602594/////////////////////////////////////////////////////////////////////////////
    603 
    604595
    605596/****************************************************************************
     
    653644    SciSetDataBits(SCI_8_DATA_BITS);            // set data bits to 8
    654645
    655 
    656646    // Install our interrupt handler into RTEMS, where does 66 come from?
    657647
     
    799789    }
    800790
    801 
    802791    //  set the number of data bits, 8 is most common
    803792
     
    815804    }
    816805
    817 
    818806    //  the number of stop bits; always 1 for SCI
    819807
     
    823811    }
    824812
    825 
    826813    // setup the hardware with these serial port parameters
    827814
     
    831818
    832819    SciSetDataBits(sci_databits);               // set the data bits
    833 
    834820
    835821    return RTEMS_SUCCESSFUL;
     
    1003989//
    1004990/////////////////////////////////////////////////////////////////////////////
    1005 
    1006991
    1007992/****************************************************************************
     
    10261011//printk("%s\r\n", __FUNCTION__);
    10271012
    1028 
    10291013    // register the SCI device name for termios console i/o
    10301014    // this is done over in console.c which doesn't seem exactly right
     
    10361020//      rtems_fatal_error_occurred(status);
    10371021
    1038 
    10391022    SciMajor = major;                           // save the rtems major number
    10401023
    10411024    SciOpened = DRIVER_CLOSED;                  // initial state is closed
    10421025
    1043 
    10441026    // if you have an interrupt handler, install it here
    1045 
    10461027
    10471028    SciInited = 1;                              // set the inited flag
     
    11581139    rw_args = (rtems_libio_rw_args_t *) arg;    // arguments to read()
    11591140
    1160 
    11611141    if (minor != SCI_MINOR)
    11621142    {
     
    13131293/////////////////////////////////////////////////////////////////////////////
    13141294
    1315 
    13161295/****************************************************************************
    13171296* Func:     SciSetBaud
     
    13301309// when you open the console you need to set the termio struct baud rate
    13311310// it has a default value of 9600, when someone calls tcsetattr it reverts!
    1332 
    13331311
    13341312    SciBaud = rate;                             // save the rate
     
    15361514}
    15371515
    1538 
    15391516/****************************************************************************
    15401517* Func:     SciWriteCharNoWait
     
    15921569}
    15931570
    1594 
    15951571/****************************************************************************
    15961572* Func:     SciReadCharNoWait
     
    16151591    return ch;                                  // return the char
    16161592}
    1617 
    16181593
    16191594
     
    16691644/////////////////////////////////////////////////////////////////////////////
    16701645
    1671 
    16721646/****************************************************************************
    16731647* Func:     SciUnitTest
     
    16871661    uint16_t   result;                          // result of ioctl
    16881662
    1689 
    16901663    fd = open("/dev/sci",O_RDWR);               // open the device
    16911664
    16921665printk("SCI open fd=%d\r\n",fd);
    16931666
    1694 
    16951667    result = write(fd, "abcd\r\n", 6);          // send a string
    16961668
    16971669printk("SCI write result=%d\r\n",result);
    1698 
    16991670
    17001671    result = read(fd, &byte, 1);                // read a byte
  • c/src/lib/libbsp/m68k/mrm332/console/sci.h

    r6128a4a rf05b2ac  
    99*******