aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlge/qlge.h
diff options
context:
space:
mode:
authorRon Mercer <ron.mercer@qlogic.com>2009-03-02 03:07:32 -0500
committerDavid S. Miller <davem@davemloft.net>2009-03-03 01:45:24 -0500
commitbcc2cb3b97e37317c301309d7052bb61e6cce2c4 (patch)
treee1eed42ab44980713cc6b8d38e917e0d27ff9bcd /drivers/net/qlge/qlge.h
parentcdca8d02ea4229c2ccf3c27fb537b150843f67c9 (diff)
qlge: Add support for getting/setting port config.
This patch adds functionality to get and set port parameters. Currently it is used to set maximum TX/RX frame sizes. This process is also capable of setting: 1) Pause type: Standard or Priority based. 2) Loop back mode. 3) Enable Jumbo frame mode (included here...) Signed-off-by: Ron Mercer <ron.mercer@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlge/qlge.h')
-rw-r--r--drivers/net/qlge/qlge.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/qlge/qlge.h b/drivers/net/qlge/qlge.h
index 5f60ec4efb3c..6f9fd24bf384 100644
--- a/drivers/net/qlge/qlge.h
+++ b/drivers/net/qlge/qlge.h
@@ -1450,6 +1450,7 @@ struct ql_adapter {
1450 1450
1451 u32 mailbox_in; 1451 u32 mailbox_in;
1452 u32 mailbox_out; 1452 u32 mailbox_out;
1453 struct mbox_params idc_mbc;
1453 struct mutex mpi_mutex; 1454 struct mutex mpi_mutex;
1454 1455
1455 int tx_ring_size; 1456 int tx_ring_size;
@@ -1486,6 +1487,8 @@ struct ql_adapter {
1486 u32 port_link_up; 1487 u32 port_link_up;
1487 u32 port_init; 1488 u32 port_init;
1488 u32 link_status; 1489 u32 link_status;
1490 u32 link_config;
1491 u32 max_frame_size;
1489 1492
1490 union flash_params flash; 1493 union flash_params flash;
1491 1494
@@ -1495,6 +1498,8 @@ struct ql_adapter {
1495 struct delayed_work asic_reset_work; 1498 struct delayed_work asic_reset_work;
1496 struct delayed_work mpi_reset_work; 1499 struct delayed_work mpi_reset_work;
1497 struct delayed_work mpi_work; 1500 struct delayed_work mpi_work;
1501 struct delayed_work mpi_port_cfg_work;
1502 struct completion ide_completion;
1498 struct nic_operations *nic_ops; 1503 struct nic_operations *nic_ops;
1499 u16 device_id; 1504 u16 device_id;
1500}; 1505};
@@ -1569,6 +1574,7 @@ void ql_queue_asic_error(struct ql_adapter *qdev);
1569u32 ql_enable_completion_interrupt(struct ql_adapter *qdev, u32 intr); 1574u32 ql_enable_completion_interrupt(struct ql_adapter *qdev, u32 intr);
1570void ql_set_ethtool_ops(struct net_device *ndev); 1575void ql_set_ethtool_ops(struct net_device *ndev);
1571int ql_read_xgmac_reg64(struct ql_adapter *qdev, u32 reg, u64 *data); 1576int ql_read_xgmac_reg64(struct ql_adapter *qdev, u32 reg, u64 *data);
1577void ql_mpi_port_cfg_work(struct work_struct *work);
1572int ql_mb_get_fw_state(struct ql_adapter *qdev); 1578int ql_mb_get_fw_state(struct ql_adapter *qdev);
1573 1579
1574#if 1 1580#if 1