aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlexandre Bounine <alexandre.bounine@idt.com>2013-05-24 18:55:06 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-05-24 19:22:50 -0400
commitbc8fcfea18249640f2728c46d70999dcb7e4dc49 (patch)
tree7d24b4132c4dd821c998649f21344bec6f4a3453 /include
parenta11650e11093ed57dca78bf16e7836517c599098 (diff)
rapidio: add enumeration/discovery start from user space
Add RapidIO enumeration/discovery start from user space. User space start allows to defer RapidIO fabric scan until the moment when all participating endpoints are initialized avoiding mandatory synchronized start of all endpoints (which may be challenging in systems with large number of RapidIO endpoints). Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com> Cc: Matt Porter <mporter@kernel.crashing.org> Cc: Li Yang <leoli@freescale.com> Cc: Kumar Gala <galak@kernel.crashing.org> Cc: Andre van Herk <andre.van.herk@Prodrive.nl> Cc: Micha Nelissen <micha.nelissen@Prodrive.nl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/rio.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/rio.h b/include/linux/rio.h
index cd3796ee7410..18e099342e6f 100644
--- a/include/linux/rio.h
+++ b/include/linux/rio.h
@@ -265,6 +265,11 @@ struct rio_mport {
265 struct rio_scan *nscan; 265 struct rio_scan *nscan;
266}; 266};
267 267
268/*
269 * Enumeration/discovery control flags
270 */
271#define RIO_SCAN_ENUM_NO_WAIT 0x00000001 /* Do not wait for enum completed */
272
268struct rio_id_table { 273struct rio_id_table {
269 u16 start; /* logical minimal id */ 274 u16 start; /* logical minimal id */
270 u32 max; /* max number of IDs in table */ 275 u32 max; /* max number of IDs in table */
@@ -467,8 +472,8 @@ static inline struct rio_mport *dma_to_mport(struct dma_device *ddev)
467 * @discover: Callback to perform RapidIO fabric discovery. 472 * @discover: Callback to perform RapidIO fabric discovery.
468 */ 473 */
469struct rio_scan { 474struct rio_scan {
470 int (*enumerate)(struct rio_mport *mport); 475 int (*enumerate)(struct rio_mport *mport, u32 flags);
471 int (*discover)(struct rio_mport *mport); 476 int (*discover)(struct rio_mport *mport, u32 flags);
472}; 477};
473 478
474/* Architecture and hardware-specific functions */ 479/* Architecture and hardware-specific functions */