The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/ic/isp_target.h

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 -/* $NetBSD: isp_target.h,v 1.26 2009/06/25 23:44:02 mjacob Exp $ */
    2 /*-
    3  *  Copyright (c) 1997-2008 by Matthew Jacob
    4  *  All rights reserved.
    5  * 
    6  *  Redistribution and use in source and binary forms, with or without
    7  *  modification, are permitted provided that the following conditions
    8  *  are met:
    9  * 
   10  *  1. Redistributions of source code must retain the above copyright
   11  *     notice, this list of conditions and the following disclaimer.
   12  *  2. Redistributions in binary form must reproduce the above copyright
   13  *     notice, this list of conditions and the following disclaimer in the
   14  *     documentation and/or other materials provided with the distribution.
   15  * 
   16  *  THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   17  *  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   18  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   19  *  ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
   20  *  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   21  *  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   22  *  OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   23  *  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   24  *  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   25  *  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   26  *  SUCH DAMAGE.
   27  * 
   28  */
   29 /*
   30  * Qlogic Target Mode Structure and Flag Definitions
   31  */
   32 #ifndef _ISP_TARGET_H
   33 #define _ISP_TARGET_H
   34 
   35 /*
   36  * Notify structure- these are for asynchronous events that need to be sent
   37  * as notifications to the outer layer. It should be pretty self-explanatory.
   38  */
   39 typedef enum {
   40         NT_UNKNOWN=0x999,
   41         NT_ABORT_TASK=0x1000,
   42         NT_ABORT_TASK_SET,
   43         NT_CLEAR_ACA,
   44         NT_CLEAR_TASK_SET,
   45         NT_LUN_RESET,
   46         NT_TARGET_RESET,
   47         NT_BUS_RESET,
   48         NT_LIP_RESET,
   49         NT_LINK_UP,
   50         NT_LINK_DOWN,
   51         NT_LOGOUT,
   52         NT_GLOBAL_LOGOUT,
   53         NT_ARRIVED,
   54         NT_DEPARTED,
   55         NT_HBA_RESET
   56 } isp_ncode_t;
   57 
   58 typedef struct isp_notify {
   59         void *          nt_hba;         /* HBA tag */
   60         void *          nt_tmd;
   61         void *          nt_lreserved;
   62         void *          nt_hreserved;
   63         uint64_t        nt_wwn;         /* source (wwn) */
   64         uint64_t        nt_tgt;         /* destination (wwn) */
   65         uint64_t        nt_tagval;      /* tag value */
   66         uint32_t
   67                         nt_sid          : 24;   /* source port id */
   68         uint32_t
   69                         nt_failed       : 1,    /* notify operation failed */
   70                         nt_need_ack     : 1,    /* this notify needs an ACK */
   71                         nt_did          : 24;   /* destination port id */
   72         uint32_t
   73                         nt_lun          : 16,   /* logical unit */
   74                         nt_nphdl        : 16;   /* n-port handle */
   75         uint8_t         nt_channel;             /* channel id */
   76         isp_ncode_t     nt_ncode;       /* action */
   77 } isp_notify_t;
   78 #define MATCH_TMD(tmd, iid, lun, tag)                   \
   79     (                                                   \
   80         (tmd) &&                                        \
   81         (iid == INI_ANY || iid == tmd->cd_iid) &&       \
   82         (lun == LUN_ANY || lun == tmd->cd_lun) &&       \
   83         (tag == TAG_ANY || tag == tmd->cd_tagval)       \
   84     )
   85 /*
   86  * Debug macros
   87  */
   88 
   89 #define ISP_TDQE(isp, msg, idx, arg)    \
   90     if (isp->isp_dblev & ISP_LOGTDEBUG2) isp_print_qentry(isp, msg, idx, arg)
   91 
   92 /*
   93  * Special Constatns
   94  */
   95 #define INI_ANY                 ((uint64_t) -1)
   96 #define VALID_INI(ini)          (ini != INI_NONE && ini != INI_ANY)
   97 #define LUN_ANY                 0xffff
   98 #define TGT_ANY                 ((uint64_t) -1)
   99 #define TAG_ANY                 ((uint64_t) 0)
  100 #endif  /* _ISP_TARGET_H */

Cache object: c5424e854a384d4aa828f9fce38fa362


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.