change the signature that asn2wrs generates for functions to marm all parameters...
[obnox/wireshark/wip.git] / epan / dissectors / packet-fcbls.h
1 /* packet-fcbls.h
2  * Fibre Channel Basic Link Services header
3  * Copyright 2001, Dinesh G Dutt <ddutt@cisco.com>
4  *
5  * $Id$
6  *
7  * Wireshark - Network traffic analyzer
8  * By Gerald Combs <gerald@wireshark.org>
9  * Copyright 1998 Gerald Combs
10  * 
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  * 
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  * 
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24  */
25
26 #ifndef __PACKET_FCBLS_H_
27 #define __PACKET_FCBLS_H_
28
29 #define FC_BLS_NOP          0x00
30 #define FC_BLS_ABTS         0x01
31 #define FC_BLS_RMC          0x02
32 #define FC_BLS_BAACC        0x04 
33 #define FC_BLS_BARJT        0x05
34 #define FC_BLS_PRMT         0x06
35
36 #define FC_BLS_BARJT_INVCMDCODE     0x01
37 #define FC_BLS_BARJT_LOGERR         0x03
38 #define FC_BLS_BARJT_LOGBSY         0x05
39 #define FC_BLS_BARJT_PROTERR        0x07
40 #define FC_BLS_BARJT_GENFAIL        0x09
41 #define FC_BLS_BARJT_VENDOR         0xFF
42
43 static const value_string fc_bls_barjt_val[] = {
44     {FC_BLS_BARJT_INVCMDCODE, "Invalid Cmd Code"},
45     {FC_BLS_BARJT_LOGERR    , "Logical Error"},
46     {FC_BLS_BARJT_LOGBSY    , "Logical Busy"},
47     {FC_BLS_BARJT_PROTERR   , "Protocol Error"},
48     {FC_BLS_BARJT_GENFAIL   , "Unable to Perform Cmd"},
49     {FC_BLS_BARJT_VENDOR    , "Vendor Unique Error"},
50     {0, NULL},
51 };
52
53 #define FC_BLS_BARJT_DET_NODET      0x01
54 #define FC_BLS_BARJT_DET_INVEXCHG   0x03
55 #define FC_BLS_BARJT_DET_SEQABT     0x05
56
57 static const value_string fc_bls_barjt_det_val[] = {
58     {FC_BLS_BARJT_DET_NODET   , "No Details"},
59     {FC_BLS_BARJT_DET_INVEXCHG, "Invalid OXID-RXID Combo"},
60     {FC_BLS_BARJT_DET_SEQABT  , "Sequence Aborted"},
61     {0, NULL},
62 };
63
64 static const value_string fc_bls_seqid_val[] = {
65     {0x80, "Yes"},
66     {0x0,  "No"},
67     {0, NULL},
68 };
69
70 typedef struct _fc_bls_ba_rjt {
71     guint8 rsvd;
72     guint8 reason_code;
73     guint8 rjt_detail;
74     guint8 vendor_uniq;
75 } fc_bls_ba_rjt;
76
77 #endif