1 /*******************************************************************
2 * This file is part of the Emulex Linux Device Driver for *
3 * Fibre Channel Host Bus Adapters. *
4 * Copyright (C) 2007 Emulex. All rights reserved. *
5 * EMULEX and SLI are trademarks of Emulex. *
8 * This program is free software; you can redistribute it and/or *
9 * modify it under the terms of version 2 of the GNU General *
10 * Public License as published by the Free Software Foundation. *
11 * This program is distributed in the hope that it will be useful. *
12 * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND *
13 * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, *
14 * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE *
15 * DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD *
16 * TO BE LEGALLY INVALID. See the GNU General Public License for *
17 * more details, a copy of which can be found in the file COPYING *
18 * included with this package. *
19 *******************************************************************/
21 #ifndef _H_LPFC_DEBUG_FS
22 #define _H_LPFC_DEBUG_FS
24 #ifdef CONFIG_SCSI_LPFC_DEBUG_FS
25 struct lpfc_debugfs_trc
{
35 /* Mask for discovery_trace */
36 #define LPFC_DISC_TRC_ELS_CMD 0x1 /* Trace ELS commands */
37 #define LPFC_DISC_TRC_ELS_RSP 0x2 /* Trace ELS response */
38 #define LPFC_DISC_TRC_ELS_UNSOL 0x4 /* Trace ELS rcv'ed */
39 #define LPFC_DISC_TRC_ELS_ALL 0x7 /* Trace ELS */
40 #define LPFC_DISC_TRC_MBOX_VPORT 0x8 /* Trace vport MBOXs */
41 #define LPFC_DISC_TRC_MBOX 0x10 /* Trace other MBOXs */
42 #define LPFC_DISC_TRC_MBOX_ALL 0x18 /* Trace all MBOXs */
43 #define LPFC_DISC_TRC_CT 0x20 /* Trace disc CT requests */
44 #define LPFC_DISC_TRC_DSM 0x40 /* Trace DSM events */
45 #define LPFC_DISC_TRC_RPORT 0x80 /* Trace rport events */
46 #define LPFC_DISC_TRC_NODE 0x100 /* Trace ndlp state changes */
48 #define LPFC_DISC_TRC_DISCOVERY 0xef /* common mask for general
50 #endif /* H_LPFC_DEBUG_FS */