Changeset fad4324d in rtems


Ignore:
Timestamp:
Mar 22, 2016, 12:59:56 PM (4 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
master
Children:
49cf776e
Parents:
c442647f
git-author:
Daniel Hellstrom <daniel@…> (03/22/16 12:59:56)
git-committer:
Daniel Hellstrom <daniel@…> (03/06/17 06:54:55)
Message:

leon, grspw_pkt: added grspw_link_status_clr() to API

Location:
c/src/lib/libbsp/sparc/shared
Files:
2 edited

Legend:

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

    rc442647f rfad4324d  
    310310/* Read the current value of the status register */
    311311extern unsigned int grspw_link_status(void *d);
     312/* Clear bits in the status register */
     313extern void grspw_link_status_clr(void *d, unsigned int clearmask);
    312314
    313315/*** Time Code Interface ***/
  • c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c

    rc442647f rfad4324d  
    718718
    719719        return REG_READ(&priv->regs->status);
     720}
     721
     722/* Clear Status Register bits */
     723void grspw_link_status_clr(void *d, unsigned int mask)
     724{
     725        struct grspw_priv *priv = d;
     726
     727        REG_WRITE(&priv->regs->status, mask);
    720728}
    721729
Note: See TracChangeset for help on using the changeset viewer.