linux/drivers/scsi/lpfc/lpfc_nl.h

/*******************************************************************
 * This file is part of the Emulex Linux Device Driver for         *
 * Fibre Channel Host Bus Adapters.                                *
 * Copyright (C) 2017-2018 Broadcom. All Rights Reserved. The term *
 * “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.     *
 * Copyright (C) 2010 Emulex.  All rights reserved.                *
 * EMULEX and SLI are trademarks of Emulex.                        *
 * www.broadcom.com                                                *
 *                                                                 *
 * This program is free software; you can redistribute it and/or   *
 * modify it under the terms of version 2 of the GNU General       *
 * Public License as published by the Free Software Foundation.    *
 * This program is distributed in the hope that it will be useful. *
 * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND          *
 * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,  *
 * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE      *
 * DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD *
 * TO BE LEGALLY INVALID.  See the GNU General Public License for  *
 * more details, a copy of which can be found in the file COPYING  *
 * included with this package.                                     *
 *******************************************************************/

/* Event definitions for RegisterForEvent */
#define FC_REG_LINK_EVENT
#define FC_REG_RSCN_EVENT
#define FC_REG_CT_EVENT
#define FC_REG_DUMP_EVENT
#define FC_REG_TEMPERATURE_EVENT
#define FC_REG_VPORTRSCN_EVENT
#define FC_REG_ELS_EVENT
#define FC_REG_FABRIC_EVENT
#define FC_REG_SCSI_EVENT
#define FC_REG_BOARD_EVENT
#define FC_REG_ADAPTER_EVENT
#define FC_REG_EVENT_MASK
/* Temperature events */
#define LPFC_CRIT_TEMP
#define LPFC_THRESHOLD_TEMP
#define LPFC_NORMAL_TEMP
/*
 * All net link event payloads will begin with and event type
 * and subcategory. The event type must come first.
 * The subcategory further defines the data that follows in the rest
 * of the payload. Each category will have its own unique header plus
 * any additional data unique to the subcategory.
 * The payload sent via the fc transport is one-way driver->application.
 */

/* RSCN event header */
struct lpfc_rscn_event_header {};

/* els event header */
struct lpfc_els_event_header {};

/* subcategory codes for FC_REG_ELS_EVENT */
#define LPFC_EVENT_PLOGI_RCV
#define LPFC_EVENT_PRLO_RCV
#define LPFC_EVENT_ADISC_RCV
#define LPFC_EVENT_LSRJT_RCV
#define LPFC_EVENT_LOGO_RCV

/* special els lsrjt event */
struct lpfc_lsrjt_event {};

/* special els logo event */
struct lpfc_logo_event {};

/* fabric event header */
struct lpfc_fabric_event_header {};

/* subcategory codes for FC_REG_FABRIC_EVENT */
#define LPFC_EVENT_FABRIC_BUSY
#define LPFC_EVENT_PORT_BUSY
#define LPFC_EVENT_FCPRDCHKERR

/* special case fabric fcprdchkerr event */
struct lpfc_fcprdchkerr_event {};


/* scsi event header */
struct lpfc_scsi_event_header {};

/* subcategory codes for FC_REG_SCSI_EVENT */
#define LPFC_EVENT_QFULL
#define LPFC_EVENT_DEVBSY
#define LPFC_EVENT_CHECK_COND
#define LPFC_EVENT_LUNRESET
#define LPFC_EVENT_TGTRESET
#define LPFC_EVENT_BUSRESET
#define LPFC_EVENT_VARQUEDEPTH

/* special case scsi varqueuedepth event */
struct lpfc_scsi_varqueuedepth_event {};

/* special case scsi check condition event */
struct lpfc_scsi_check_condition_event {};

/* event codes for FC_REG_BOARD_EVENT */
#define LPFC_EVENT_PORTINTERR

/* board event header */
struct lpfc_board_event_header {};


/* event codes for FC_REG_ADAPTER_EVENT */
#define LPFC_EVENT_ARRIVAL

/* adapter event header */
struct lpfc_adapter_event_header {};


/* event codes for temp_event */
#define LPFC_CRIT_TEMP
#define LPFC_THRESHOLD_TEMP
#define LPFC_NORMAL_TEMP

struct temp_event {};