diff options
Diffstat (limited to 'include/scsi')
| -rw-r--r-- | include/scsi/fc/Kbuild | 4 | ||||
| -rw-r--r-- | include/scsi/fc/fc_els.h | 831 | ||||
| -rw-r--r-- | include/scsi/fc/fc_fs.h | 348 | ||||
| -rw-r--r-- | include/scsi/fc/fc_gs.h | 96 | ||||
| -rw-r--r-- | include/scsi/fc/fc_ns.h | 208 |
5 files changed, 0 insertions, 1487 deletions
diff --git a/include/scsi/fc/Kbuild b/include/scsi/fc/Kbuild index 56603813c6cd..e69de29bb2d1 100644 --- a/include/scsi/fc/Kbuild +++ b/include/scsi/fc/Kbuild | |||
| @@ -1,4 +0,0 @@ | |||
| 1 | header-y += fc_els.h | ||
| 2 | header-y += fc_fs.h | ||
| 3 | header-y += fc_gs.h | ||
| 4 | header-y += fc_ns.h | ||
diff --git a/include/scsi/fc/fc_els.h b/include/scsi/fc/fc_els.h deleted file mode 100644 index 481abbd48e39..000000000000 --- a/include/scsi/fc/fc_els.h +++ /dev/null | |||
| @@ -1,831 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Copyright(c) 2007 Intel Corporation. All rights reserved. | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify it | ||
| 5 | * under the terms and conditions of the GNU General Public License, | ||
| 6 | * version 2, as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
| 9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 11 | * more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License along with | ||
| 14 | * this program; if not, write to the Free Software Foundation, Inc., | ||
| 15 | * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
| 16 | * | ||
| 17 | * Maintained at www.Open-FCoE.org | ||
| 18 | */ | ||
| 19 | |||
| 20 | #ifndef _FC_ELS_H_ | ||
| 21 | #define _FC_ELS_H_ | ||
| 22 | |||
| 23 | #include <linux/types.h> | ||
| 24 | |||
| 25 | /* | ||
| 26 | * Fibre Channel Switch - Enhanced Link Services definitions. | ||
| 27 | * From T11 FC-LS Rev 1.2 June 7, 2005. | ||
| 28 | */ | ||
| 29 | |||
| 30 | /* | ||
| 31 | * ELS Command codes - byte 0 of the frame payload | ||
| 32 | */ | ||
| 33 | enum fc_els_cmd { | ||
| 34 | ELS_LS_RJT = 0x01, /* ESL reject */ | ||
| 35 | ELS_LS_ACC = 0x02, /* ESL Accept */ | ||
| 36 | ELS_PLOGI = 0x03, /* N_Port login */ | ||
| 37 | ELS_FLOGI = 0x04, /* F_Port login */ | ||
| 38 | ELS_LOGO = 0x05, /* Logout */ | ||
| 39 | ELS_ABTX = 0x06, /* Abort exchange - obsolete */ | ||
| 40 | ELS_RCS = 0x07, /* read connection status */ | ||
| 41 | ELS_RES = 0x08, /* read exchange status block */ | ||
| 42 | ELS_RSS = 0x09, /* read sequence status block */ | ||
| 43 | ELS_RSI = 0x0a, /* read sequence initiative */ | ||
| 44 | ELS_ESTS = 0x0b, /* establish streaming */ | ||
| 45 | ELS_ESTC = 0x0c, /* estimate credit */ | ||
| 46 | ELS_ADVC = 0x0d, /* advise credit */ | ||
| 47 | ELS_RTV = 0x0e, /* read timeout value */ | ||
| 48 | ELS_RLS = 0x0f, /* read link error status block */ | ||
| 49 | ELS_ECHO = 0x10, /* echo */ | ||
| 50 | ELS_TEST = 0x11, /* test */ | ||
| 51 | ELS_RRQ = 0x12, /* reinstate recovery qualifier */ | ||
| 52 | ELS_REC = 0x13, /* read exchange concise */ | ||
| 53 | ELS_SRR = 0x14, /* sequence retransmission request */ | ||
| 54 | ELS_PRLI = 0x20, /* process login */ | ||
| 55 | ELS_PRLO = 0x21, /* process logout */ | ||
| 56 | ELS_SCN = 0x22, /* state change notification */ | ||
| 57 | ELS_TPLS = 0x23, /* test process login state */ | ||
| 58 | ELS_TPRLO = 0x24, /* third party process logout */ | ||
| 59 | ELS_LCLM = 0x25, /* login control list mgmt (obs) */ | ||
| 60 | ELS_GAID = 0x30, /* get alias_ID */ | ||
| 61 | ELS_FACT = 0x31, /* fabric activate alias_id */ | ||
| 62 | ELS_FDACDT = 0x32, /* fabric deactivate alias_id */ | ||
| 63 | ELS_NACT = 0x33, /* N-port activate alias_id */ | ||
| 64 | ELS_NDACT = 0x34, /* N-port deactivate alias_id */ | ||
| 65 | ELS_QOSR = 0x40, /* quality of service request */ | ||
| 66 | ELS_RVCS = 0x41, /* read virtual circuit status */ | ||
| 67 | ELS_PDISC = 0x50, /* discover N_port service params */ | ||
| 68 | ELS_FDISC = 0x51, /* discover F_port service params */ | ||
| 69 | ELS_ADISC = 0x52, /* discover address */ | ||
| 70 | ELS_RNC = 0x53, /* report node cap (obs) */ | ||
| 71 | ELS_FARP_REQ = 0x54, /* FC ARP request */ | ||
| 72 | ELS_FARP_REPL = 0x55, /* FC ARP reply */ | ||
| 73 | ELS_RPS = 0x56, /* read port status block */ | ||
| 74 | ELS_RPL = 0x57, /* read port list */ | ||
| 75 | ELS_RPBC = 0x58, /* read port buffer condition */ | ||
| 76 | ELS_FAN = 0x60, /* fabric address notification */ | ||
| 77 | ELS_RSCN = 0x61, /* registered state change notification */ | ||
| 78 | ELS_SCR = 0x62, /* state change registration */ | ||
| 79 | ELS_RNFT = 0x63, /* report node FC-4 types */ | ||
| 80 | ELS_CSR = 0x68, /* clock synch. request */ | ||
| 81 | ELS_CSU = 0x69, /* clock synch. update */ | ||
| 82 | ELS_LINIT = 0x70, /* loop initialize */ | ||
| 83 | ELS_LSTS = 0x72, /* loop status */ | ||
| 84 | ELS_RNID = 0x78, /* request node ID data */ | ||
| 85 | ELS_RLIR = 0x79, /* registered link incident report */ | ||
| 86 | ELS_LIRR = 0x7a, /* link incident record registration */ | ||
| 87 | ELS_SRL = 0x7b, /* scan remote loop */ | ||
| 88 | ELS_SBRP = 0x7c, /* set bit-error reporting params */ | ||
| 89 | ELS_RPSC = 0x7d, /* report speed capabilities */ | ||
| 90 | ELS_QSA = 0x7e, /* query security attributes */ | ||
| 91 | ELS_EVFP = 0x7f, /* exchange virt. fabrics params */ | ||
| 92 | ELS_LKA = 0x80, /* link keep-alive */ | ||
| 93 | ELS_AUTH_ELS = 0x90, /* authentication ELS */ | ||
| 94 | }; | ||
| 95 | |||
| 96 | /* | ||
| 97 | * Initializer useful for decoding table. | ||
| 98 | * Please keep this in sync with the above definitions. | ||
| 99 | */ | ||
| 100 | #define FC_ELS_CMDS_INIT { \ | ||
| 101 | [ELS_LS_RJT] = "LS_RJT", \ | ||
| 102 | [ELS_LS_ACC] = "LS_ACC", \ | ||
| 103 | [ELS_PLOGI] = "PLOGI", \ | ||
| 104 | [ELS_FLOGI] = "FLOGI", \ | ||
| 105 | [ELS_LOGO] = "LOGO", \ | ||
| 106 | [ELS_ABTX] = "ABTX", \ | ||
| 107 | [ELS_RCS] = "RCS", \ | ||
| 108 | [ELS_RES] = "RES", \ | ||
| 109 | [ELS_RSS] = "RSS", \ | ||
| 110 | [ELS_RSI] = "RSI", \ | ||
| 111 | [ELS_ESTS] = "ESTS", \ | ||
| 112 | [ELS_ESTC] = "ESTC", \ | ||
| 113 | [ELS_ADVC] = "ADVC", \ | ||
| 114 | [ELS_RTV] = "RTV", \ | ||
| 115 | [ELS_RLS] = "RLS", \ | ||
| 116 | [ELS_ECHO] = "ECHO", \ | ||
| 117 | [ELS_TEST] = "TEST", \ | ||
| 118 | [ELS_RRQ] = "RRQ", \ | ||
| 119 | [ELS_REC] = "REC", \ | ||
| 120 | [ELS_SRR] = "SRR", \ | ||
| 121 | [ELS_PRLI] = "PRLI", \ | ||
| 122 | [ELS_PRLO] = "PRLO", \ | ||
| 123 | [ELS_SCN] = "SCN", \ | ||
| 124 | [ELS_TPLS] = "TPLS", \ | ||
| 125 | [ELS_TPRLO] = "TPRLO", \ | ||
| 126 | [ELS_LCLM] = "LCLM", \ | ||
| 127 | [ELS_GAID] = "GAID", \ | ||
| 128 | [ELS_FACT] = "FACT", \ | ||
| 129 | [ELS_FDACDT] = "FDACDT", \ | ||
| 130 | [ELS_NACT] = "NACT", \ | ||
| 131 | [ELS_NDACT] = "NDACT", \ | ||
| 132 | [ELS_QOSR] = "QOSR", \ | ||
| 133 | [ELS_RVCS] = "RVCS", \ | ||
| 134 | [ELS_PDISC] = "PDISC", \ | ||
| 135 | [ELS_FDISC] = "FDISC", \ | ||
| 136 | [ELS_ADISC] = "ADISC", \ | ||
| 137 | [ELS_RNC] = "RNC", \ | ||
| 138 | [ELS_FARP_REQ] = "FARP_REQ", \ | ||
| 139 | [ELS_FARP_REPL] = "FARP_REPL", \ | ||
| 140 | [ELS_RPS] = "RPS", \ | ||
| 141 | [ELS_RPL] = "RPL", \ | ||
| 142 | [ELS_RPBC] = "RPBC", \ | ||
| 143 | [ELS_FAN] = "FAN", \ | ||
| 144 | [ELS_RSCN] = "RSCN", \ | ||
| 145 | [ELS_SCR] = "SCR", \ | ||
| 146 | [ELS_RNFT] = "RNFT", \ | ||
| 147 | [ELS_CSR] = "CSR", \ | ||
| 148 | [ELS_CSU] = "CSU", \ | ||
| 149 | [ELS_LINIT] = "LINIT", \ | ||
| 150 | [ELS_LSTS] = "LSTS", \ | ||
| 151 | [ELS_RNID] = "RNID", \ | ||
| 152 | [ELS_RLIR] = "RLIR", \ | ||
| 153 | [ELS_LIRR] = "LIRR", \ | ||
| 154 | [ELS_SRL] = "SRL", \ | ||
| 155 | [ELS_SBRP] = "SBRP", \ | ||
| 156 | [ELS_RPSC] = "RPSC", \ | ||
| 157 | [ELS_QSA] = "QSA", \ | ||
| 158 | [ELS_EVFP] = "EVFP", \ | ||
| 159 | [ELS_LKA] = "LKA", \ | ||
| 160 | [ELS_AUTH_ELS] = "AUTH_ELS", \ | ||
| 161 | } | ||
| 162 | |||
| 163 | /* | ||
| 164 | * LS_ACC payload. | ||
| 165 | */ | ||
| 166 | struct fc_els_ls_acc { | ||
| 167 | __u8 la_cmd; /* command code ELS_LS_ACC */ | ||
| 168 | __u8 la_resv[3]; /* reserved */ | ||
| 169 | }; | ||
| 170 | |||
| 171 | /* | ||
| 172 | * ELS reject payload. | ||
| 173 | */ | ||
| 174 | struct fc_els_ls_rjt { | ||
| 175 | __u8 er_cmd; /* command code ELS_LS_RJT */ | ||
| 176 | __u8 er_resv[4]; /* reserved must be zero */ | ||
| 177 | __u8 er_reason; /* reason (enum fc_els_rjt_reason below) */ | ||
| 178 | __u8 er_explan; /* explanation (enum fc_els_rjt_explan below) */ | ||
| 179 | __u8 er_vendor; /* vendor specific code */ | ||
| 180 | }; | ||
| 181 | |||
| 182 | /* | ||
| 183 | * ELS reject reason codes (er_reason). | ||
| 184 | */ | ||
| 185 | enum fc_els_rjt_reason { | ||
| 186 | ELS_RJT_NONE = 0, /* no reject - not to be sent */ | ||
| 187 | ELS_RJT_INVAL = 0x01, /* invalid ELS command code */ | ||
| 188 | ELS_RJT_LOGIC = 0x03, /* logical error */ | ||
| 189 | ELS_RJT_BUSY = 0x05, /* logical busy */ | ||
| 190 | ELS_RJT_PROT = 0x07, /* protocol error */ | ||
| 191 | ELS_RJT_UNAB = 0x09, /* unable to perform command request */ | ||
| 192 | ELS_RJT_UNSUP = 0x0b, /* command not supported */ | ||
| 193 | ELS_RJT_INPROG = 0x0e, /* command already in progress */ | ||
| 194 | ELS_RJT_FIP = 0x20, /* FIP error */ | ||
| 195 | ELS_RJT_VENDOR = 0xff, /* vendor specific error */ | ||
| 196 | }; | ||
| 197 | |||
