diff options
author | Dai Haruki <dai.haruki@freescale.com> | 2008-12-17 19:51:32 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-17 19:51:32 -0500 |
commit | c50a5d9aedef5b0b289d07f6d73934d394e50b3f (patch) | |
tree | 10b8310c60f448683bbb80ec7a01c42035a3052f /drivers/net/gianfar.h | |
parent | 4669bc907488f5a3ee399ced132deb6165e489a3 (diff) |
gianfar: Use interface name in interrupt name to distinguish the source.
Interface name (ex. eth0) is used as the prefix for the interrupt name,
with _rx, _tx, and _er appended to distinguish multiple interrupts on
the same interface.
Signed-off-by: Dai Haruki <dai.haruki@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/gianfar.h')
-rw-r--r-- | drivers/net/gianfar.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/gianfar.h b/drivers/net/gianfar.h index 7ef3cc5cabe9..06bac34c3b52 100644 --- a/drivers/net/gianfar.h +++ b/drivers/net/gianfar.h | |||
@@ -374,6 +374,8 @@ extern const char gfar_driver_version[]; | |||
374 | #define RXFCB_PERR_MASK 0x000c | 374 | #define RXFCB_PERR_MASK 0x000c |
375 | #define RXFCB_PERR_BADL3 0x0008 | 375 | #define RXFCB_PERR_BADL3 0x0008 |
376 | 376 | ||
377 | #define GFAR_INT_NAME_MAX IFNAMSIZ + 4 | ||
378 | |||
377 | struct txbd8 | 379 | struct txbd8 |
378 | { | 380 | { |
379 | union { | 381 | union { |
@@ -796,6 +798,11 @@ struct gfar_private { | |||
796 | uint32_t msg_enable; | 798 | uint32_t msg_enable; |
797 | 799 | ||
798 | struct work_struct reset_task; | 800 | struct work_struct reset_task; |
801 | |||
802 | char int_name_tx[GFAR_INT_NAME_MAX]; | ||
803 | char int_name_rx[GFAR_INT_NAME_MAX]; | ||
804 | char int_name_er[GFAR_INT_NAME_MAX]; | ||
805 | |||
799 | /* Network Statistics */ | 806 | /* Network Statistics */ |
800 | struct gfar_extra_stats extra_stats; | 807 | struct gfar_extra_stats extra_stats; |
801 | }; | 808 | }; |