diff options
author | Arthur Jones <arthur.jones@qlogic.com> | 2007-03-15 17:45:05 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-04-18 23:20:58 -0400 |
commit | 569b87b47f906d65ee35d6ecc4767f20a6390b9b (patch) | |
tree | d674574d3db6b25fe6bb41da8c64e1641bcc0d03 /drivers/infiniband/hw/ipath/ipath_common.h | |
parent | 7b196e2ff3953063b656212ff517f6115a1477b2 (diff) |
IB/ipath: Force PIOAvail update entry point
Due to a chip bug, the PIOAvail register is not always updated to
memory. This patch allows userspace to force an update.
Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_common.h')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_common.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_common.h b/drivers/infiniband/hw/ipath/ipath_common.h index 048b928bb4bf..10c008f22ba6 100644 --- a/drivers/infiniband/hw/ipath/ipath_common.h +++ b/drivers/infiniband/hw/ipath/ipath_common.h | |||
@@ -352,7 +352,7 @@ struct ipath_base_info { | |||
352 | * may not be implemented; the user code must deal with this if it | 352 | * may not be implemented; the user code must deal with this if it |
353 | * cares, or it must abort after initialization reports the difference. | 353 | * cares, or it must abort after initialization reports the difference. |
354 | */ | 354 | */ |
355 | #define IPATH_USER_SWMINOR 4 | 355 | #define IPATH_USER_SWMINOR 5 |
356 | 356 | ||
357 | #define IPATH_USER_SWVERSION ((IPATH_USER_SWMAJOR<<16) | IPATH_USER_SWMINOR) | 357 | #define IPATH_USER_SWVERSION ((IPATH_USER_SWMAJOR<<16) | IPATH_USER_SWMINOR) |
358 | 358 | ||
@@ -429,8 +429,11 @@ struct ipath_user_info { | |||
429 | #define __IPATH_CMD_SLAVE_INFO 22 /* return info on slave processes (for old user code) */ | 429 | #define __IPATH_CMD_SLAVE_INFO 22 /* return info on slave processes (for old user code) */ |
430 | #define IPATH_CMD_ASSIGN_PORT 23 /* allocate HCA and port */ | 430 | #define IPATH_CMD_ASSIGN_PORT 23 /* allocate HCA and port */ |
431 | #define IPATH_CMD_USER_INIT 24 /* set up userspace */ | 431 | #define IPATH_CMD_USER_INIT 24 /* set up userspace */ |
432 | #define IPATH_CMD_UNUSED_1 25 | ||
433 | #define IPATH_CMD_UNUSED_2 26 | ||
434 | #define IPATH_CMD_PIOAVAILUPD 27 /* force an update of PIOAvail reg */ | ||
432 | 435 | ||
433 | #define IPATH_CMD_MAX 24 | 436 | #define IPATH_CMD_MAX 27 |
434 | 437 | ||
435 | struct ipath_port_info { | 438 | struct ipath_port_info { |
436 | __u32 num_active; /* number of active units */ | 439 | __u32 num_active; /* number of active units */ |