diff options
Diffstat (limited to 'drivers/net/enic/vnic_intr.h')
-rw-r--r-- | drivers/net/enic/vnic_intr.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/enic/vnic_intr.h b/drivers/net/enic/vnic_intr.h index 2fe6c6339e3c..09dc0b73ff46 100644 --- a/drivers/net/enic/vnic_intr.h +++ b/drivers/net/enic/vnic_intr.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright 2008 Cisco Systems, Inc. All rights reserved. | 2 | * Copyright 2008-2010 Cisco Systems, Inc. All rights reserved. |
3 | * Copyright 2007 Nuova Systems, Inc. All rights reserved. | 3 | * Copyright 2007 Nuova Systems, Inc. All rights reserved. |
4 | * | 4 | * |
5 | * This program is free software; you may redistribute it and/or modify | 5 | * This program is free software; you may redistribute it and/or modify |
@@ -61,7 +61,11 @@ static inline void vnic_intr_unmask(struct vnic_intr *intr) | |||
61 | static inline void vnic_intr_mask(struct vnic_intr *intr) | 61 | static inline void vnic_intr_mask(struct vnic_intr *intr) |
62 | { | 62 | { |
63 | iowrite32(1, &intr->ctrl->mask); | 63 | iowrite32(1, &intr->ctrl->mask); |
64 | (void)ioread32(&intr->ctrl->mask); | 64 | } |
65 | |||
66 | static inline int vnic_intr_masked(struct vnic_intr *intr) | ||
67 | { | ||
68 | return ioread32(&intr->ctrl->mask); | ||
65 | } | 69 | } |
66 | 70 | ||
67 | static inline void vnic_intr_return_credits(struct vnic_intr *intr, | 71 | static inline void vnic_intr_return_credits(struct vnic_intr *intr, |