blob: 75f8f1ac9fb73bb2b2a52f439c21fe508d10870f [file] [log] [blame]
Rasesh Mody8b230ed2010-08-23 20:24:12 -07001/*
Rasesh Mody2732ba52015-02-19 16:02:31 -05002 * Linux network driver for QLogic BR-series Converged Network Adapter.
Rasesh Mody8b230ed2010-08-23 20:24:12 -07003 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License (GPL) Version 2 as
6 * published by the Free Software Foundation
7 *
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
12 */
13/*
Rasesh Mody2732ba52015-02-19 16:02:31 -050014 * Copyright (c) 2006-2014 Brocade Communications Systems, Inc.
15 * Copyright (c) 2014-2015 QLogic Corporation
Rasesh Mody8b230ed2010-08-23 20:24:12 -070016 * All rights reserved
Rasesh Mody2732ba52015-02-19 16:02:31 -050017 * www.qlogic.com
Rasesh Mody8b230ed2010-08-23 20:24:12 -070018 */
19
20#ifndef __CNA_H__
21#define __CNA_H__
22
Rasesh Mody8b230ed2010-08-23 20:24:12 -070023#include <linux/kernel.h>
24#include <linux/types.h>
Rasesh Mody19dbff92011-08-30 15:27:41 +000025#include <linux/mutex.h>
Rasesh Mody8b230ed2010-08-23 20:24:12 -070026#include <linux/pci.h>
27#include <linux/delay.h>
28#include <linux/bitops.h>
29#include <linux/timer.h>
30#include <linux/interrupt.h>
Rasesh Mody19dbff92011-08-30 15:27:41 +000031#include <linux/if_vlan.h>
Rasesh Mody8b230ed2010-08-23 20:24:12 -070032#include <linux/if_ether.h>
Rasesh Mody8b230ed2010-08-23 20:24:12 -070033
Rasesh Modyac51f602011-07-22 08:07:43 +000034#define bfa_sm_fault(__event) do { \
Rasesh Mody19dbff92011-08-30 15:27:41 +000035 pr_err("SM Assertion failure: %s: %d: event = %d\n", \
36 __FILE__, __LINE__, __event); \
Rasesh Mody8b230ed2010-08-23 20:24:12 -070037} while (0)
38
39extern char bfa_version[];
40
Rasesh Mody3f307c32015-02-19 16:02:32 -050041#define CNA_FW_FILE_CT "ctfw-3.2.5.1.bin"
42#define CNA_FW_FILE_CT2 "ct2fw-3.2.5.1.bin"
Rasesh Mody8b230ed2010-08-23 20:24:12 -070043#define FC_SYMNAME_MAX 256 /*!< max name server symbolic name size */
44
Rasesh Mody8b230ed2010-08-23 20:24:12 -070045#endif /* __CNA_H__ */