diff options
author | <jejb@titanic.il.steeleye.com> | 2005-04-17 17:05:31 -0400 |
---|---|---|
committer | James Bottomley <jejb@titanic> | 2005-04-18 14:50:53 -0400 |
commit | dea3101e0a5c897d2c9351a7444e139db9f40247 (patch) | |
tree | 61de19e98eed08bb760703b362eab2038c34f261 /drivers/scsi/lpfc/lpfc_logmsg.h | |
parent | 8e8790415e91964096f862a58cacb55d2bc9a817 (diff) |
lpfc: add Emulex FC driver version 8.0.28
From: James.Smart@Emulex.Com
Modified for kernel import and
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_logmsg.h')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_logmsg.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_logmsg.h b/drivers/scsi/lpfc/lpfc_logmsg.h new file mode 100644 index 000000000000..a85268880fae --- /dev/null +++ b/drivers/scsi/lpfc/lpfc_logmsg.h | |||
@@ -0,0 +1,41 @@ | |||
1 | /******************************************************************* | ||
2 | * This file is part of the Emulex Linux Device Driver for * | ||
3 | * Enterprise Fibre Channel Host Bus Adapters. * | ||
4 | * Refer to the README file included with this package for * | ||
5 | * driver version and adapter support. * | ||
6 | * Copyright (C) 2004 Emulex Corporation. * | ||
7 | * www.emulex.com * | ||
8 | * * | ||
9 | * This program is free software; you can redistribute it and/or * | ||
10 | * modify it under the terms of the GNU General Public License * | ||
11 | * as published by the Free Software Foundation; either version 2 * | ||
12 | * of the License, or (at your option) any later version. * | ||
13 | * * | ||
14 | * This program is distributed in the hope that it will be useful, * | ||
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||
17 | * GNU General Public License for more details, a copy of which * | ||
18 | * can be found in the file COPYING included with this package. * | ||
19 | *******************************************************************/ | ||
20 | |||
21 | /* | ||
22 | * $Id: lpfc_logmsg.h 1.32 2005/01/25 17:52:01EST sf_support Exp $ | ||
23 | */ | ||
24 | |||
25 | #define LOG_ELS 0x1 /* ELS events */ | ||
26 | #define LOG_DISCOVERY 0x2 /* Link discovery events */ | ||
27 | #define LOG_MBOX 0x4 /* Mailbox events */ | ||
28 | #define LOG_INIT 0x8 /* Initialization events */ | ||
29 | #define LOG_LINK_EVENT 0x10 /* Link events */ | ||
30 | #define LOG_IP 0x20 /* IP traffic history */ | ||
31 | #define LOG_FCP 0x40 /* FCP traffic history */ | ||
32 | #define LOG_NODE 0x80 /* Node table events */ | ||
33 | #define LOG_MISC 0x400 /* Miscellaneous events */ | ||
34 | #define LOG_SLI 0x800 /* SLI events */ | ||
35 | #define LOG_CHK_COND 0x1000 /* FCP Check condition flag */ | ||
36 | #define LOG_LIBDFC 0x2000 /* Libdfc events */ | ||
37 | #define LOG_ALL_MSG 0xffff /* LOG all messages */ | ||
38 | |||
39 | #define lpfc_printf_log(phba, level, mask, fmt, arg...) \ | ||
40 | { if (((mask) &(phba)->cfg_log_verbose) || (level[1] <= '3')) \ | ||
41 | dev_printk(level, &((phba)->pcidev)->dev, fmt, ##arg); } | ||