aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ehea/ehea.h
diff options
context:
space:
mode:
authorJan-Bernd Themann <ossthema@de.ibm.com>2007-02-28 12:34:02 -0500
committerJeff Garzik <jeff@garzik.org>2007-04-28 11:00:56 -0400
commit1acf2318dd136edfbfa30f1f33b43f69f2e2ec6c (patch)
tree2d79a977fc773f43e6f8be76f5fdaf0b8c251226 /drivers/net/ehea/ehea.h
parent459e536b1ddfd217ec8a3437a3214968a98223c7 (diff)
ehea: dynamic add / remove port
This patch introduces functionality to dynamically add / remove ehea ports via an userspace DLPAR tool. It creates a subnode for each logical port in the sysfs. Signed-off-by: Jan-Bernd Themann <themann@de.ibm.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/ehea/ehea.h')
-rw-r--r--drivers/net/ehea/ehea.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/ehea/ehea.h b/drivers/net/ehea/ehea.h
index 42295d61ecd8..e595d6b38e7c 100644
--- a/drivers/net/ehea/ehea.h
+++ b/drivers/net/ehea/ehea.h
@@ -39,7 +39,7 @@
39#include <asm/io.h> 39#include <asm/io.h>
40 40
41#define DRV_NAME "ehea" 41#define DRV_NAME "ehea"
42#define DRV_VERSION "EHEA_0046" 42#define DRV_VERSION "EHEA_0048"
43 43
44#define EHEA_MSG_DEFAULT (NETIF_MSG_LINK | NETIF_MSG_TIMER \ 44#define EHEA_MSG_DEFAULT (NETIF_MSG_LINK | NETIF_MSG_TIMER \
45 | NETIF_MSG_RX_ERR | NETIF_MSG_TX_ERR) 45 | NETIF_MSG_RX_ERR | NETIF_MSG_TX_ERR)
@@ -380,10 +380,11 @@ struct ehea_port_res {
380}; 380};
381 381
382 382
383#define EHEA_MAX_PORTS 16
383struct ehea_adapter { 384struct ehea_adapter {
384 u64 handle; 385 u64 handle;
385 u8 num_ports; 386 struct ibmebus_dev *ebus_dev;
386 struct ehea_port *port[16]; 387 struct ehea_port *port[EHEA_MAX_PORTS];
387 struct ehea_eq *neq; /* notification event queue */ 388 struct ehea_eq *neq; /* notification event queue */
388 struct workqueue_struct *ehea_wq; 389 struct workqueue_struct *ehea_wq;
389 struct tasklet_struct neq_tasklet; 390 struct tasklet_struct neq_tasklet;
@@ -406,7 +407,7 @@ struct ehea_port {
406 struct net_device *netdev; 407 struct net_device *netdev;
407 struct net_device_stats stats; 408 struct net_device_stats stats;
408 struct ehea_port_res port_res[EHEA_MAX_PORT_RES]; 409 struct ehea_port_res port_res[EHEA_MAX_PORT_RES];
409 struct device_node *of_dev_node; /* Open Firmware Device Node */ 410 struct of_device ofdev; /* Open Firmware Device */
410 struct ehea_mc_list *mc_list; /* Multicast MAC addresses */ 411 struct ehea_mc_list *mc_list; /* Multicast MAC addresses */
411 struct vlan_group *vgrp; 412 struct vlan_group *vgrp;
412 struct ehea_eq *qp_eq; 413 struct ehea_eq *qp_eq;