Changeset e4b50853 in rtems


Ignore:
Timestamp:
Mar 13, 2014, 1:35:43 PM (6 years ago)
Author:
Daniel Cederman <cederman@…>
Branches:
4.11, master
Children:
3b5e7dc
Parents:
3240325
git-author:
Daniel Cederman <cederman@…> (03/13/14 13:35:43)
git-committer:
Joel Sherrill <joel.sherrill@…> (03/21/14 14:57:27)
Message:

greth: Make local functions static, remove overflow and correct printf call.

Location:
c/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/leon3/leon_greth/leon_greth.c

    r3240325 re4b50853  
    4848    *(volatile int *) base_addr = GRETH_CTRL_RST;
    4949    *(volatile int *) base_addr = 0;
    50     leon_greth_configuration.base_address = base_addr;
     50    leon_greth_configuration.base_address = (void*)base_addr;
    5151    leon_greth_configuration.vector = eth_irq; /* on LEON vector is IRQ no. */
    5252    leon_greth_configuration.txd_count = TDA_COUNT;
  • c/src/libchip/network/greth.c

    r3240325 re4b50853  
    8989const struct timespec greth_tan = {
    9090   GRETH_AUTONEGO_TIMEOUT_MS/1000,
    91    GRETH_AUTONEGO_TIMEOUT_MS*1000000
     91   (GRETH_AUTONEGO_TIMEOUT_MS % 1000) *1000000
    9292};
    9393
     
    179179/* GRETH interrupt handler */
    180180
    181 void greth_interrupt_handler (void *arg)
     181static void greth_interrupt_handler (void *arg)
    182182{
    183183        uint32_t status;
     
    259259#ifdef GRETH_AUTONEGO_PRINT_TIME
    260260        if ( sc->auto_neg ) {
    261           printf("Autonegotiation Time: %dms\n", sc->auto_neg_time.tv_sec*1000 +
     261          printf("Autonegotiation Time: %ldms\n", sc->auto_neg_time.tv_sec*1000 +
    262262                 sc->auto_neg_time.tv_nsec/1000000);
    263263        }
     
    534534#endif
    535535
    536 void
     536static void
    537537greth_Daemon (void *arg)
    538538{
     
    545545    rtems_interrupt_level level;
    546546    int first;
     547#ifdef CPU_U32_FIX
    547548    unsigned int tmp;
     549#endif
    548550
    549551    for (;;)
     
    628630                                    tmp = GRETH_MEM_LOAD(8+(uintptr_t)eh);
    629631                                    tmp = GRETH_MEM_LOAD(12+(uintptr_t)eh);
    630 
     632                                    (void)tmp;
    631633                                    ipalign(m); /* Align packet on 32-bit boundary */
    632634                            }
     
    739741
    740742
    741 int
     743static int
    742744sendpacket_gbit (struct ifnet *ifp, struct mbuf *m)
    743745{
Note: See TracChangeset for help on using the changeset viewer.