Changeset c442647f in rtems


Ignore:
Timestamp:
Mar 22, 2016, 10:42:10 AM (4 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
master
Children:
fad4324d
Parents:
61cc024
git-author:
Daniel Hellstrom <daniel@…> (03/22/16 10:42:10)
git-committer:
Daniel Hellstrom <daniel@…> (03/06/17 06:54:55)
Message:

leon, grspw_pkt: code style clean-ups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c

    r61cc024 rc442647f  
    546546         *  - 128 RX descriptors per DMA Channel
    547547         *  - 64 TX descriptors per DMA Channel
     548         * Specified address must be in CPU RAM.
    548549         */
    549550        bdtabsize = 2 * BDTAB_SIZE * priv->hwsup.ndma_chans;
     
    828829void grspw_tc_time(void *d, int *time)
    829830{
    830         struct grspw_priv *priv = d;
    831         struct grspw_regs *regs = priv->regs;
    832 
    833         if (time == NULL)
    834                 return;
    835         if (*time != -1)
    836                 REG_WRITE(&regs->time, *time & (GRSPW_TIME_TCNT | GRSPW_TIME_CTRL));
    837         *time = REG_READ(&regs->time) & (GRSPW_TIME_TCNT | GRSPW_TIME_CTRL);
     831        struct grspw_priv *priv = d;
     832        struct grspw_regs *regs = priv->regs;
     833
     834        if (time == NULL)
     835                return;
     836        if (*time != -1)
     837                REG_WRITE(&regs->time, *time & (GRSPW_TIME_TCNT | GRSPW_TIME_CTRL));
     838        *time = REG_READ(&regs->time) & (GRSPW_TIME_TCNT | GRSPW_TIME_CTRL);
    838839}
    839840
     
    18331834
    18341835        /* 3. Schedule as many packets as possible (SEND->SCHED) */
    1835         if ((started > 0 ) && ((opts & 2) == 0))
     1836        if ((started > 0) && ((opts & 2) == 0))
    18361837                grspw_tx_schedule_send(dma);
    18371838
Note: See TracChangeset for help on using the changeset viewer.