diff options
author | Eddie Wai <eddie.wai@broadcom.com> | 2014-01-01 08:18:34 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-02 04:08:08 +0100 |
commit | d15e2a92c4c263fd44a0b41e637a032bd618e6c9 (patch) | |
tree | aa545877a174e1c3986d6dbe3ed42d08fce97940 /drivers/net/ethernet/broadcom/cnic.h | |
parent | bnx2: Update version to 2.2.5. (diff) | |
download | linux-d15e2a92c4c263fd44a0b41e637a032bd618e6c9.tar.xz linux-d15e2a92c4c263fd44a0b41e637a032bd618e6c9.zip |
cnic: Add a signature to indicate valid doorbell offset.
The buffer that is used to pass doorbell offset to the userspace UIO
driver may contain nonzero value in older versions of bnx2x driver.
Userspace cannot easily tell whether it contains a valid doorbell
offset or not. With the added signature, userspace will only use
the doorbell offset if the signature is present.
Update version to 2.5.19.
Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/cnic.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/cnic.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/cnic.h b/drivers/net/ethernet/broadcom/cnic.h index 0121a5d55192..0d6b13f854d9 100644 --- a/drivers/net/ethernet/broadcom/cnic.h +++ b/drivers/net/ethernet/broadcom/cnic.h @@ -186,6 +186,8 @@ struct kcq_info { u16 (*hw_idx)(u16); }; +#define UIO_USE_TX_DOORBELL 0x017855DB + struct cnic_uio_dev { struct uio_info cnic_uinfo; u32 uio_dev; |