aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/include/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/bfa/include/protocol')
-rw-r--r--drivers/scsi/bfa/include/protocol/ct.h14
-rw-r--r--drivers/scsi/bfa/include/protocol/fc.h27
-rw-r--r--drivers/scsi/bfa/include/protocol/pcifw.h75
3 files changed, 23 insertions, 93 deletions
diff --git a/drivers/scsi/bfa/include/protocol/ct.h b/drivers/scsi/bfa/include/protocol/ct.h
index c59d6630b070..b82540a230c4 100644
--- a/drivers/scsi/bfa/include/protocol/ct.h
+++ b/drivers/scsi/bfa/include/protocol/ct.h
@@ -82,7 +82,7 @@ enum {
82}; 82};
83 83
84/* 84/*
85 * defintions for CT reason code 85 * definitions for CT reason code
86 */ 86 */
87enum { 87enum {
88 CT_RSN_INV_CMD = 0x01, 88 CT_RSN_INV_CMD = 0x01,
@@ -129,7 +129,7 @@ enum {
129}; 129};
130 130
131/* 131/*
132 * defintions for the explanation code for all servers 132 * definitions for the explanation code for all servers
133 */ 133 */
134enum { 134enum {
135 CT_EXP_AUTH_EXCEPTION = 0xF1, 135 CT_EXP_AUTH_EXCEPTION = 0xF1,
@@ -193,11 +193,11 @@ struct fcgs_rftid_req_s {
193#define FC_GS_FCP_FC4_FEATURE_TARGET 0x01 193#define FC_GS_FCP_FC4_FEATURE_TARGET 0x01
194 194
195struct fcgs_rffid_req_s{ 195struct fcgs_rffid_req_s{
196 u32 rsvd :8; 196 u32 rsvd:8;
197 u32 dap :24; /* port identifier */ 197 u32 dap:24; /* port identifier */
198 u32 rsvd1 :16; 198 u32 rsvd1:16;
199 u32 fc4ftr_bits :8; /* fc4 feature bits */ 199 u32 fc4ftr_bits:8; /* fc4 feature bits */
200 u32 fc4_type :8; /* corresponding FC4 Type */ 200 u32 fc4_type:8; /* corresponding FC4 Type */
201}; 201};
202 202
203/** 203/**
diff --git a/drivers/scsi/bfa/include/protocol/fc.h b/drivers/scsi/bfa/include/protocol/fc.h
index 3e39ba58cfb5..8d1038035a76 100644
--- a/drivers/scsi/bfa/include/protocol/fc.h
+++ b/drivers/scsi/bfa/include/protocol/fc.h
@@ -50,6 +50,11 @@ struct fchs_s {
50 50
51 u32 ro; /* relative offset */ 51 u32 ro; /* relative offset */
52}; 52};
53
54#define FC_SOF_LEN 4
55#define FC_EOF_LEN 4
56#define FC_CRC_LEN 4
57
53/* 58/*
54 * Fibre Channel BB_E Header Structure 59 * Fibre Channel BB_E Header Structure
55 */ 60 */
@@ -486,14 +491,14 @@ struct fc_rsi_s {
486 * see FC-PH-X table 113 & 115 for explanation also FCP table 8 491 * see FC-PH-X table 113 & 115 for explanation also FCP table 8
487 */ 492 */
488struct fc_prli_params_s{ 493struct fc_prli_params_s{
489 u32 reserved: 16; 494 u32 reserved:16;
490#ifdef __BIGENDIAN 495#ifdef __BIGENDIAN
491 u32 reserved1: 5; 496 u32 reserved1:5;
492 u32 rec_support : 1; 497 u32 rec_support:1;
493 u32 task_retry_id : 1; 498 u32 task_retry_id:1;
494 u32 retry : 1; 499 u32 retry:1;
495 500
496 u32 confirm : 1; 501 u32 confirm:1;
497 u32 doverlay:1; 502 u32 doverlay:1;
498 u32 initiator:1; 503 u32 initiator:1;
499 u32 target:1; 504 u32 target:1;
@@ -502,10 +507,10 @@ struct fc_prli_params_s{
502 u32 rxrdisab:1; 507 u32 rxrdisab:1;
503 u32 wxrdisab:1; 508 u32 wxrdisab:1;
504#else 509#else
505 u32 retry : 1; 510 u32 retry:1;
506 u32 task_retry_id : 1; 511 u32 task_retry_id:1;
507 u32 rec_support : 1; 512 u32 rec_support:1;
508 u32 reserved1: 5; 513 u32 reserved1:5;
509 514
510 u32 wxrdisab:1; 515 u32 wxrdisab:1;
511 u32 rxrdisab:1; 516 u32 rxrdisab:1;
@@ -514,7 +519,7 @@ struct fc_prli_params_s{
514 u32 target:1; 519 u32 target:1;
515 u32 initiator:1; 520 u32 initiator:1;
516 u32 doverlay:1; 521 u32 doverlay:1;
517 u32 confirm : 1; 522 u32 confirm:1;
518#endif 523#endif
519}; 524};
520 525
diff --git a/drivers/scsi/bfa/include/protocol/pcifw.h b/drivers/scsi/bfa/include/protocol/pcifw.h
deleted file mode 100644
index 6830dc3ee58a..000000000000
--- a/drivers/scsi/bfa/include/protocol/pcifw.h
+++ /dev/null
@@ -1,75 +0,0 @@
1/*
2 * Copyright (c) 2005-2009 Brocade Communications Systems, Inc.
3 * All rights reserved
4 * www.brocade.com
5 *
6 * Linux driver for Brocade Fibre Channel Host Bus Adapter.
7 *
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License (GPL) Version 2 as
10 * published by the Free Software Foundation
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 */
17
18/**
19 * pcifw.h PCI FW related headers
20 */
21
22#ifndef __PCIFW_H__
23#define __PCIFW_H__
24
25#pragma pack(1)
26
27struct pnp_hdr_s{
28 u32 signature; /* "$PnP" */
29 u8 rev; /* Struct revision */
30 u8 len; /* Header structure len in multiples
31 * of 16 bytes */
32 u16 off; /* Offset to next header 00 if none */
33 u8 rsvd; /* Reserved byte */
34 u8 cksum; /* 8-bit checksum for this header */
35 u32 pnp_dev_id; /* PnP Device Id */
36 u16 mfstr; /* Pointer to manufacturer string */
37 u16 prstr; /* Pointer to product string */
38 u8 devtype[3]; /* Device Type Code */
39 u8 devind; /* Device Indicator */
40 u16 bcventr; /* Bootstrap entry vector */
41 u16 rsvd2; /* Reserved */
42 u16 sriv; /* Static resource information vector */
43};
44
45struct pci_3_0_ds_s{
46 u32 sig; /* Signature "PCIR" */
47 u16 vendid; /* Vendor ID */
48 u16 devid; /* Device ID */
49 u16 devlistoff; /* Device List Offset */
50 u16 len; /* PCI Data Structure Length */
51 u8 rev; /* PCI Data Structure Revision */
52 u8 clcode[3]; /* Class Code */
53 u16 imglen; /* Code image length in multiples of
54 * 512 bytes */
55 u16 coderev; /* Revision level of code/data */
56 u8 codetype; /* Code type 0x00 - BIOS */
57 u8 indr; /* Last image indicator */
58 u16 mrtimglen; /* Max Run Time Image Length */
59 u16 cuoff; /* Config Utility Code Header Offset */
60 u16 dmtfclp; /* DMTF CLP entry point offset */
61};
62
63struct pci_optrom_hdr_s{
64 u16 sig; /* Signature 0x55AA */
65 u8 len; /* Option ROM length in units of 512 bytes */
66 u8 inivec[3]; /* Initialization vector */
67 u8 rsvd[16]; /* Reserved field */
68 u16 verptr; /* Pointer to version string - private */
69 u16 pcids; /* Pointer to PCI data structure */
70 u16 pnphdr; /* Pointer to PnP expansion header */
71};
72
73#pragma pack()
74
75#endif