diff options
author | Dai Haruki <dai.haruki@freescale.com> | 2008-12-17 16:51:32 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-17 16:51:32 -0800 |
commit | c50a5d9aedef5b0b289d07f6d73934d394e50b3f (patch) | |
tree | 10b8310c60f448683bbb80ec7a01c42035a3052f /drivers/net/gianfar.h | |
parent | 4669bc907488f5a3ee399ced132deb6165e489a3 (diff) | |
download | kernel_samsung_smdk4412-c50a5d9aedef5b0b289d07f6d73934d394e50b3f.zip kernel_samsung_smdk4412-c50a5d9aedef5b0b289d07f6d73934d394e50b3f.tar.gz kernel_samsung_smdk4412-c50a5d9aedef5b0b289d07f6d73934d394e50b3f.tar.bz2 |
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 7ef3cc5..06bac34 100644 --- a/drivers/net/gianfar.h +++ b/drivers/net/gianfar.h @@ -374,6 +374,8 @@ extern const char gfar_driver_version[]; #define RXFCB_PERR_MASK 0x000c #define RXFCB_PERR_BADL3 0x0008 +#define GFAR_INT_NAME_MAX IFNAMSIZ + 4 + struct txbd8 { union { @@ -796,6 +798,11 @@ struct gfar_private { uint32_t msg_enable; struct work_struct reset_task; + + char int_name_tx[GFAR_INT_NAME_MAX]; + char int_name_rx[GFAR_INT_NAME_MAX]; + char int_name_er[GFAR_INT_NAME_MAX]; + /* Network Statistics */ struct gfar_extra_stats extra_stats; }; |