diff options
Diffstat (limited to 'drivers/net/enic/vnic_intr.c')
-rw-r--r-- | drivers/net/enic/vnic_intr.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/enic/vnic_intr.c b/drivers/net/enic/vnic_intr.c index 1f8786d7195e..3934309a9498 100644 --- a/drivers/net/enic/vnic_intr.c +++ b/drivers/net/enic/vnic_intr.c | |||
@@ -50,12 +50,18 @@ int vnic_intr_alloc(struct vnic_dev *vdev, struct vnic_intr *intr, | |||
50 | void vnic_intr_init(struct vnic_intr *intr, unsigned int coalescing_timer, | 50 | void vnic_intr_init(struct vnic_intr *intr, unsigned int coalescing_timer, |
51 | unsigned int coalescing_type, unsigned int mask_on_assertion) | 51 | unsigned int coalescing_type, unsigned int mask_on_assertion) |
52 | { | 52 | { |
53 | iowrite32(coalescing_timer, &intr->ctrl->coalescing_timer); | 53 | vnic_intr_coalescing_timer_set(intr, coalescing_timer); |
54 | iowrite32(coalescing_type, &intr->ctrl->coalescing_type); | 54 | iowrite32(coalescing_type, &intr->ctrl->coalescing_type); |
55 | iowrite32(mask_on_assertion, &intr->ctrl->mask_on_assertion); | 55 | iowrite32(mask_on_assertion, &intr->ctrl->mask_on_assertion); |
56 | iowrite32(0, &intr->ctrl->int_credits); | 56 | iowrite32(0, &intr->ctrl->int_credits); |
57 | } | 57 | } |
58 | 58 | ||
59 | void vnic_intr_coalescing_timer_set(struct vnic_intr *intr, | ||
60 | unsigned int coalescing_timer) | ||
61 | { | ||
62 | iowrite32(coalescing_timer, &intr->ctrl->coalescing_timer); | ||
63 | } | ||
64 | |||
59 | void vnic_intr_clean(struct vnic_intr *intr) | 65 | void vnic_intr_clean(struct vnic_intr *intr) |
60 | { | 66 | { |
61 | iowrite32(0, &intr->ctrl->int_credits); | 67 | iowrite32(0, &intr->ctrl->int_credits); |