Skip to contentSkip to conversation

bna: Brocade 10Gb Ethernet device driver

PATCH Applied Rasesh Mody 1 participant 1 message Aug 23, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/6 bna: Brocade 10Gb Ethernet device driver

From: Rasesh Mody <[email protected]>

This is patch 5/6 which contains linux driver source for Brocade's BR1010/BR1020 10Gb CEE capable ethernet adapter. Source is based against net-next-2.6.

We wish this patch to be considered for inclusion in net-next-2.6

---
 bfa_cee.h           |   72 +++++
 bfa_defs.h          |  243 +++++++++++++++++++
 bfa_defs_cna.h      |  223 ++++++++++++++++++
 bfa_defs_mfg_comm.h |  244 +++++++++++++++++++
 bfa_defs_status.h   |  216 +++++++++++++++++
 bfa_ioc.h           |  343 ++++++++++++++++++++++++++++
 bfa_sm.h            |   88 +++++++
 bfa_wc.h            |   69 +++++
 bfi.h               |  392 ++++++++++++++++++++++++++++++++
 bfi_cna.h           |  199 ++++++++++++++++
 bfi_ctreg.h         |  637 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 bfi_ll.h            |  438 +++++++++++++++++++++++++++++++++++
 cna.h               |   81 ++++++
 13 files changed, 3245 insertions(+)
drivers/net/bna/bfa_cee.h +72 -0
diff -ruP net-next-2.6.35-rc1-orig/drivers/net/bna/bfa_cee.h net-next-2.6.35-rc1-mod/drivers/net/bna/bfa_cee.h
@@ -0,0 +1,72 @@
+/*
+ * Linux network driver for Brocade Converged Network Adapter.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License (GPL) Version 2 as
+ * published by the Free Software Foundation
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ */
+/*
+ * Copyright (c) 2005-2010 Brocade Communications Systems, Inc.
+ * All rights reserved
+ * www.brocade.com
+ */
+
+#ifndef __BFA_CEE_H__
+#define __BFA_CEE_H__
+
+#include "bfa_defs_cna.h"
+#include "bfa_ioc.h"
+
+typedef void (*bfa_cee_get_attr_cbfn_t) (void *dev, enum bfa_status status);
+typedef void (*bfa_cee_get_stats_cbfn_t) (void *dev, enum bfa_status status);
+typedef void (*bfa_cee_reset_stats_cbfn_t) (void *dev, enum bfa_status status);
+typedef void (*bfa_cee_hbfail_cbfn_t) (void *dev, enum bfa_status status);
+
+struct bfa_cee_cbfn {
+	bfa_cee_get_attr_cbfn_t    get_attr_cbfn;
+	void *get_attr_cbarg;
+	bfa_cee_get_stats_cbfn_t   get_stats_cbfn;
+	void *get_stats_cbarg;
+	bfa_cee_reset_stats_cbfn_t reset_stats_cbfn;
+	void *reset_stats_cbarg;
+};
+
+struct bfa_cee {
+	void *dev;
+	bool get_attr_pending;
+	bool get_stats_pending;
+	bool reset_stats_pending;
+	enum bfa_status get_attr_status;
+	enum bfa_status get_stats_status;
+	enum bfa_status reset_stats_status;
+	struct bfa_cee_cbfn cbfn;
+	struct bfa_ioc_hbfail_notify hbfail;
+	struct bfa_cee_attr *attr;
+	struct bfa_cee_stats *stats;
+	struct bfa_dma attr_dma;
+	struct bfa_dma stats_dma;
+	struct bfa_ioc *ioc;
+	struct bfa_mbox_cmd get_cfg_mb;
+	struct bfa_mbox_cmd get_stats_mb;
+	struct bfa_mbox_cmd reset_stats_mb;
+};
+
+u32 bfa_cee_meminfo(void);
+void bfa_cee_mem_claim(struct bfa_cee *cee, u8 *dma_kva,
+	u64 dma_pa);
+void bfa_cee_attach(struct bfa_cee *cee, struct bfa_ioc *ioc, void *dev);
+void bfa_cee_detach(struct bfa_cee *cee);
+enum bfa_status bfa_cee_get_attr(struct bfa_cee *cee,
+	struct bfa_cee_attr *attr, bfa_cee_get_attr_cbfn_t cbfn, void *cbarg);
+enum bfa_status bfa_cee_get_stats(struct bfa_cee *cee,
+	struct bfa_cee_stats *stats, bfa_cee_get_stats_cbfn_t cbfn,
+	void *cbarg);
+enum bfa_status bfa_cee_reset_stats(struct bfa_cee *cee,
+	bfa_cee_reset_stats_cbfn_t cbfn, void *cbarg);
+
+#endif /* __BFA_CEE_H__ */
drivers/net/bna/bfa_defs.h +243 -0

243 lines not on this page · raw message

drivers/net/bna/bfa_defs_cna.h +223 -0

223 lines not on this page · raw message

drivers/net/bna/bfa_defs_mfg_comm.h +244 -0

244 lines not on this page · raw message

drivers/net/bna/bfa_defs_status.h +216 -0

216 lines not on this page · raw message

drivers/net/bna/bfa_ioc.h +343 -0

343 lines not on this page · raw message

drivers/net/bna/bfa_sm.h +88 -0

88 lines not on this page · raw message

drivers/net/bna/bfa_wc.h +69 -0

69 lines not on this page · raw message

drivers/net/bna/bfi.h +392 -0

392 lines not on this page · raw message

drivers/net/bna/bfi_cna.h +199 -0

199 lines not on this page · raw message

drivers/net/bna/bfi_ctreg.h +637 -0

637 lines not on this page · raw message

drivers/net/bna/bfi_ll.h +438 -0

274 lines not on this page · raw message

drivers/net/bna/cna.h +81 -0

81 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.