diff options
author | Scott Feldman <scofeldm@cisco.com> | 2009-09-03 13:02:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-03 23:19:23 -0400 |
commit | d73149f51e165f5872bc431ae181650396145265 (patch) | |
tree | f737b65590919989546fdea996e76407e67b14d8 /drivers/net/enic/vnic_dev.c | |
parent | 9f63a7c6aef00a8eafa7521342099f199f68c575 (diff) |
enic: changes to driver/firmware interface
Deprecate some old APIa; change arguments to stats dump all API; add new
interrupt assert API
Signed-off-by: Scott Feldman <scofeldm@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/enic/vnic_dev.c')
-rw-r--r-- | drivers/net/enic/vnic_dev.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/enic/vnic_dev.c b/drivers/net/enic/vnic_dev.c index c8d3fc7517b0..29a48e8b59d3 100644 --- a/drivers/net/enic/vnic_dev.c +++ b/drivers/net/enic/vnic_dev.c | |||
@@ -560,6 +560,20 @@ void vnic_dev_del_addr(struct vnic_dev *vdev, u8 *addr) | |||
560 | printk(KERN_ERR "Can't del addr [%pM], %d\n", addr, err); | 560 | printk(KERN_ERR "Can't del addr [%pM], %d\n", addr, err); |
561 | } | 561 | } |
562 | 562 | ||
563 | int vnic_dev_raise_intr(struct vnic_dev *vdev, u16 intr) | ||
564 | { | ||
565 | u64 a0 = intr, a1 = 0; | ||
566 | int wait = 1000; | ||
567 | int err; | ||
568 | |||
569 | err = vnic_dev_cmd(vdev, CMD_IAR, &a0, &a1, wait); | ||
570 | if (err) | ||
571 | printk(KERN_ERR "Failed to raise INTR[%d], err %d\n", | ||
572 | intr, err); | ||
573 | |||
574 | return err; | ||
575 | } | ||
576 | |||
563 | int vnic_dev_notify_set(struct vnic_dev *vdev, u16 intr) | 577 | int vnic_dev_notify_set(struct vnic_dev *vdev, u16 intr) |
564 | { | 578 | { |
565 | u64 a0, a1; | 579 | u64 a0, a1; |