mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 13:11:14 +00:00
rapidio: move rio_pw_enable into core code
Make rio_pw_enable() routine available to other RapidIO drivers. Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com> Cc: Matt Porter <mporter@kernel.crashing.org> Cc: Aurelien Jacquiot <a-jacquiot@ti.com> Cc: Andre van Herk <andre.van.herk@prodrive-technologies.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
5024622f58
commit
b6cb95e8eb
4 changed files with 22 additions and 11 deletions
|
@ -266,6 +266,7 @@ enum rio_phy_type {
|
|||
* @dma: DMA device associated with mport
|
||||
* @nscan: RapidIO network enumeration/discovery operations
|
||||
* @state: mport device state
|
||||
* @pwe_refcnt: port-write enable ref counter to track enable/disable requests
|
||||
*/
|
||||
struct rio_mport {
|
||||
struct list_head dbells; /* list of doorbell events */
|
||||
|
@ -296,6 +297,7 @@ struct rio_mport {
|
|||
#endif
|
||||
struct rio_scan *nscan;
|
||||
atomic_t state;
|
||||
unsigned int pwe_refcnt;
|
||||
};
|
||||
|
||||
static inline int rio_mport_is_running(struct rio_mport *mport)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue