mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-10 13:29:48 +08:00
leon, grspw_pkt: added grspw_link_status_clr() to API
This commit is contained in:
@@ -309,6 +309,8 @@ extern spw_link_state_t grspw_link_state(void *d);
|
||||
extern void grspw_link_ctrl(void *d, int *options, int *clkdiv);
|
||||
/* Read the current value of the status register */
|
||||
extern unsigned int grspw_link_status(void *d);
|
||||
/* Clear bits in the status register */
|
||||
extern void grspw_link_status_clr(void *d, unsigned int clearmask);
|
||||
|
||||
/*** Time Code Interface ***/
|
||||
/* Generate Tick-In (increment Time Counter, Send Time Code) */
|
||||
|
||||
@@ -719,6 +719,14 @@ unsigned int grspw_link_status(void *d)
|
||||
return REG_READ(&priv->regs->status);
|
||||
}
|
||||
|
||||
/* Clear Status Register bits */
|
||||
void grspw_link_status_clr(void *d, unsigned int mask)
|
||||
{
|
||||
struct grspw_priv *priv = d;
|
||||
|
||||
REG_WRITE(&priv->regs->status, mask);
|
||||
}
|
||||
|
||||
/* Return Current Link State */
|
||||
spw_link_state_t grspw_link_state(void *d)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user