aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/skge.h
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2005-08-16 17:00:58 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-08-16 17:03:13 -0400
commit5e1705ddc83f77da4b29a6d687da14e971912e41 (patch)
tree860a096343965350294f1a57024e14c1227d0043 /drivers/net/skge.h
parent050ec18a35f3106437da8e9c55e441c076c7b93e (diff)
[PATCH] skge: fibre vs copper detection cleanup
Cleanup the code that handles fibre vs copper detection. Signed-off-by: Stephen Hemminger <shemminger@osdl.org> drivers/net/skge.c | 26 ++++++++++++-------------- drivers/net/skge.h | 11 ++--------- 2 files changed, 14 insertions(+), 23 deletions(-) Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/skge.h')
-rw-r--r--drivers/net/skge.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/net/skge.h b/drivers/net/skge.h
index 636729fcbbaa..f1680beb8e68 100644
--- a/drivers/net/skge.h
+++ b/drivers/net/skge.h
@@ -2460,24 +2460,17 @@ struct skge_hw {
2460 2460
2461 u8 chip_id; 2461 u8 chip_id;
2462 u8 chip_rev; 2462 u8 chip_rev;
2463 u8 phy_type; 2463 u8 copper;
2464 u8 pmd_type;
2465 u16 phy_addr;
2466 u8 ports; 2464 u8 ports;
2467 2465
2468 u32 ram_size; 2466 u32 ram_size;
2469 u32 ram_offset; 2467 u32 ram_offset;
2468 u16 phy_addr;
2470 2469
2471 struct tasklet_struct ext_tasklet; 2470 struct tasklet_struct ext_tasklet;
2472 spinlock_t phy_lock; 2471 spinlock_t phy_lock;
2473}; 2472};
2474 2473
2475
2476static inline int iscopper(const struct skge_hw *hw)
2477{
2478 return (hw->pmd_type == 'T');
2479}
2480
2481enum { 2474enum {
2482 FLOW_MODE_NONE = 0, /* No Flow-Control */ 2475 FLOW_MODE_NONE = 0, /* No Flow-Control */
2483 FLOW_MODE_LOC_SEND = 1, /* Local station sends PAUSE */ 2476 FLOW_MODE_LOC_SEND = 1, /* Local station sends PAUSE */