aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bcma/bcma.h
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2014-01-04 19:10:43 -0500
committerDavid S. Miller <davem@davemloft.net>2014-01-04 20:25:19 -0500
commitb2395b8aeaa2f181ee87f5840c6268992b30ed95 (patch)
tree513c73c57a8e3f76e18f42e38eee60ad125b2d2d /include/linux/bcma/bcma.h
parenteec73f1c968d6d6cafa5ca19d53b6618bbd20e1e (diff)
bcma: export bcma_find_core_unit()
This function is used to get a specific core when there is more than one core of that specific type. This is used in bgmac to reset all GMAC cores. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Acked-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/bcma/bcma.h')
-rw-r--r--include/linux/bcma/bcma.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/bcma/bcma.h b/include/linux/bcma/bcma.h
index 4d043c30216f..0b3bb16c705a 100644
--- a/include/linux/bcma/bcma.h
+++ b/include/linux/bcma/bcma.h
@@ -418,7 +418,14 @@ static inline void bcma_maskset16(struct bcma_device *cc,
418 bcma_write16(cc, offset, (bcma_read16(cc, offset) & mask) | set); 418 bcma_write16(cc, offset, (bcma_read16(cc, offset) & mask) | set);
419} 419}
420 420
421extern struct bcma_device *bcma_find_core(struct bcma_bus *bus, u16 coreid); 421extern struct bcma_device *bcma_find_core_unit(struct bcma_bus *bus, u16 coreid,
422 u8 unit);
423static inline struct bcma_device *bcma_find_core(struct bcma_bus *bus,
424 u16 coreid)
425{
426 return bcma_find_core_unit(bus, coreid, 0);
427}
428
422extern bool bcma_core_is_enabled(struct bcma_device *core); 429extern bool bcma_core_is_enabled(struct bcma_device *core);
423extern void bcma_core_disable(struct bcma_device *core, u32 flags); 430extern void bcma_core_disable(struct bcma_device *core, u32 flags);
424extern int bcma_core_enable(struct bcma_device *core, u32 flags); 431extern int bcma_core_enable(struct bcma_device *core, u32 flags);