diff options
Diffstat (limited to 'drivers/rapidio/rio.h')
-rw-r--r-- | drivers/rapidio/rio.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/rapidio/rio.h b/drivers/rapidio/rio.h index 80e3f03b5041..7786d02581f2 100644 --- a/drivers/rapidio/rio.h +++ b/drivers/rapidio/rio.h | |||
@@ -51,10 +51,5 @@ extern struct rio_route_ops __end_rio_route_ops[]; | |||
51 | DECLARE_RIO_ROUTE_SECTION(.rio_route_ops, \ | 51 | DECLARE_RIO_ROUTE_SECTION(.rio_route_ops, \ |
52 | vid, did, add_hook, get_hook) | 52 | vid, did, add_hook, get_hook) |
53 | 53 | ||
54 | #ifdef CONFIG_RAPIDIO_8_BIT_TRANSPORT | 54 | #define RIO_GET_DID(size, x) (size ? (x & 0xffff) : ((x & 0x00ff0000) >> 16)) |
55 | #define RIO_GET_DID(x) ((x & 0x00ff0000) >> 16) | 55 | #define RIO_SET_DID(size, x) (size ? (x & 0xffff) : ((x & 0x000000ff) << 16)) |
56 | #define RIO_SET_DID(x) ((x & 0x000000ff) << 16) | ||
57 | #else | ||
58 | #define RIO_GET_DID(x) (x & 0xffff) | ||
59 | #define RIO_SET_DID(x) (x & 0xffff) | ||
60 | #endif | ||