Changeset 888fadaf in rtems


Ignore:
Timestamp:
10/12/14 13:31:32 (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
1ec8b829
Parents:
12579b2d
git-author:
Joel Sherrill <joel.sherrill@…> (10/12/14 13:31:32)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/13/14 15:33:17)
Message:

i386/pc386: Clean up and fix warnings

Location:
c/src/lib/libbsp/i386
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/clock/ckinit.c

    r12579b2d r888fadaf  
    258258} /* Clock_exit */
    259259
    260 #define Clock_driver_support_shutdown_hardware() clockOff()
    261 
    262260bool Clock_isr_enabled = false;
    263261static void Clock_isr_handler(void *param)
  • c/src/lib/libbsp/i386/pc386/console/inch.c

    r12579b2d r888fadaf  
    240240} /* _IBMPC_inch */
    241241
    242  /*
    243   * Routine that can be used before interrupt management is initialized.
    244   */
    245 
    246 int
    247 BSP_wait_polled_input(void)
     242/*
     243 * Routine that can be used before interrupt management is initialized.
     244 */
     245int BSP_wait_polled_input(void)
    248246{
    249247  char c;
  • c/src/lib/libbsp/i386/pc386/include/bsp.h

    r12579b2d r888fadaf  
    178178char          _IBMPC_inch     (void);    /* from 'inch.c'   */
    179179char          _IBMPC_inch_sleep (void);  /* from 'inch.c'   */
     180int           BSP_wait_polled_input(void); /* from 'inch.c' */
     181int           rtems_kbpoll( void );      /* from 'inch.c' */
     182int           getch( void );             /* from 'inch.c' */
     183void           add_to_queue( unsigned short b ); /* from 'inch.c' */
    180184
    181185void Wait_X_ms(unsigned int timeToWait); /* from 'timer.c'  */
     
    189193void Clock_driver_support_initialize_hardware(void); /* from 'ckinit.c'  */
    190194
     195void kbd_reset_setup(char *str, int *ints);   /* from 'pc_keyb.c' */
    191196size_t read_aux(char * buffer, size_t count); /* from 'ps2_mouse.c'  */
    192197
  • c/src/lib/libbsp/i386/shared/comm/i386-stub.c

    r12579b2d r888fadaf  
    466466
    467467/* scan for the sequence $<data>#<checksum>     */
    468 void
     468static void
    469469getpacket (char *buffer)
    470470{
     
    530530/* send the packet in buffer.  */
    531531
    532 void
     532static void
    533533putpacket (char *buffer)
    534534{
     
    632632/* convert the hex array pointed to by buf into binary to be placed in mem */
    633633/* return a pointer to the character AFTER the last byte written */
    634 char *
     634static char *
    635635hex2mem (char *buf, char *mem, int count, int may_fault)
    636636{
  • c/src/lib/libbsp/i386/shared/comm/uart.c

    r12579b2d r888fadaf  
    6161}
    6262
     63static void
     64uartError(int uart)
     65{
     66  unsigned char uartStatus, dummy;
     67
     68  uartStatus = uread(uart, LSR);
     69  (void) uartStatus; /* avoid set but not used warning */
     70  dummy = uread(uart, RBR);
     71  (void) dummy;      /* avoid set but not used warning */
     72
    6373#ifdef UARTDEBUG
    64     static void
    65 uartError(int uart)
    66 {
    67   unsigned char uartStatus, dummy;
    68 
    69   uartStatus = uread(uart, LSR);
    70   dummy = uread(uart, RBR);
    71 
    7274  if (uartStatus & OE)
    7375    printk("********* Over run Error **********\n");
     
    8082  if (uartStatus & ERFIFO)
    8183    printk("********* Error receive Fifo **********\n");
    82 
    83 }
    84 #else
    85 inline void uartError(int uart)
    86 {
    87   uread(uart, LSR);
    88   uread(uart, RBR);
    89 }
    9084#endif
     85}
    9186
    9287/*
     
    456451 * from the serial port.
    457452 */
    458 void uart_set_driver_handler( int port, void ( *handler )( void *,  char *, int ) )
     453static void uart_set_driver_handler(
     454  int port,
     455  void ( *handler )( void *,  char *, int )
     456)
    459457{
    460458  switch( port )
  • c/src/lib/libbsp/i386/shared/irq/irq_init.c

    r12579b2d r888fadaf  
    9999static rtems_raw_irq_global_settings raw_initial_config;
    100100
     101
     102/*
     103 *  This method is called from irq_asm.S and cannot be static.
     104 */
    101105void raw_idt_notify(void)
    102106{
Note: See TracChangeset for help on using the changeset viewer.