sparc64: expand LDC interface
authorJag Raman <jag.raman@oracle.com>
Fri, 9 Jun 2017 16:29:28 +0000 (12:29 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Jun 2017 21:10:54 +0000 (14:10 -0700)
commit85762a65c1106daa0930bc2ed0d7792511647168
treeac67d12eade283effe9f871c6866d05dfc9f1a52
parent95c4629d92d15d10e5f7c55bfb72583f96a91374
sparc64: expand LDC interface

Add the following LDC APIs which are planned to be used by
LDC clients in the future:
- ldc_set_state: Sets given LDC channel to given state
- ldc_mode: Returns the mode of given LDC channel
- ldc_print: Prints info about given LDC channel
- ldc_rx_reset: Reset the RX queue of given LDC channel

Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: Aaron Young <aaron.young@oracle.com>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Reviewed-by: Bijan Mottahedeh <bijan.mottahedeh@oracle.com>
Reviewed-by: Liam Merwick <liam.merwick@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/ldc.h
arch/sparc/kernel/ldc.c