diff options
author | Alexandre Bounine <alexandre.bounine@idt.com> | 2011-01-12 20:00:40 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 11:03:18 -0500 |
commit | e6536927e64a2511864f2141d3e5b198b3f25ba6 (patch) | |
tree | 5fafa02d6542e9ba215fd6606590b3fc34095359 /drivers/rapidio | |
parent | ded05782719d0f7e79af98be7cf88c7e23a90435 (diff) |
rapidio: add definitions of Component Tag fields
Add definition of the unique device identifier field in the component tag.
RIO_CTAG_UDEVID does not take all 32 bits of the component tag value to
allow future extensions to the component tag use.
Selected size of the RIO_CTAG_UDEVID field (17 bits) is sufficient to
accommodate maximum number of endpoints in large RIO network (16-bit id)
plus switches.
Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Li Yang <leoli@freescale.com>
Cc: Thomas Moll <thomas.moll@sysgo.com>
Cc: Micha Nelissen <micha@neli.hopto.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rapidio')
-rw-r--r-- | drivers/rapidio/rio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rapidio/rio.c b/drivers/rapidio/rio.c index c13289e10bb1..cc2a3b74d0f0 100644 --- a/drivers/rapidio/rio.c +++ b/drivers/rapidio/rio.c | |||
@@ -710,7 +710,7 @@ int rio_inb_pwrite_handler(union rio_pw_msg *pw_msg) | |||
710 | u32 err_status, em_perrdet, em_ltlerrdet; | 710 | u32 err_status, em_perrdet, em_ltlerrdet; |
711 | int rc, portnum; | 711 | int rc, portnum; |
712 | 712 | ||
713 | rdev = rio_get_comptag(pw_msg->em.comptag, NULL); | 713 | rdev = rio_get_comptag((pw_msg->em.comptag & RIO_CTAG_UDEVID), NULL); |
714 | if (rdev == NULL) { | 714 | if (rdev == NULL) { |
715 | /* Device removed or enumeration error */ | 715 | /* Device removed or enumeration error */ |
716 | pr_debug("RIO: %s No matching device for CTag 0x%08x\n", | 716 | pr_debug("RIO: %s No matching device for CTag 0x%08x\n", |