2 * Copyright (C) 2005 - 2008 ServerEngines
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License version 2
7 * as published by the Free Software Foundation. The full GNU General
8 * Public License is included in this distribution in the file called COPYING.
10 * Contact Information:
11 * linux-drivers@serverengines.com
14 * 209 N. Fair Oaks Ave
18 * Autogenerated by srcgen version: 0127
20 #ifndef __fwcmd_common_amap_h__
21 #define __fwcmd_common_amap_h__
22 #include "host_struct.h"
24 /* --- PHY_LINK_DUPLEX_ENUM --- */
25 #define PHY_LINK_DUPLEX_NONE (0)
26 #define PHY_LINK_DUPLEX_HALF (1)
27 #define PHY_LINK_DUPLEX_FULL (2)
29 /* --- PHY_LINK_SPEED_ENUM --- */
30 #define PHY_LINK_SPEED_ZERO (0) /* No link. */
31 #define PHY_LINK_SPEED_10MBPS (1) /* 10 Mbps */
32 #define PHY_LINK_SPEED_100MBPS (2) /* 100 Mbps */
33 #define PHY_LINK_SPEED_1GBPS (3) /* 1 Gbps */
34 #define PHY_LINK_SPEED_10GBPS (4) /* 10 Gbps */
36 /* --- PHY_LINK_FAULT_ENUM --- */
37 #define PHY_LINK_FAULT_NONE (0) /* No fault status
38 available or detected */
39 #define PHY_LINK_FAULT_LOCAL (1) /* Local fault detected */
40 #define PHY_LINK_FAULT_REMOTE (2) /* Remote fault detected */
42 /* --- BE_ULP_MASK --- */
43 #define BE_ULP0_MASK (1)
44 #define BE_ULP1_MASK (2)
45 #define BE_ULP2_MASK (4)
47 /* --- NTWK_ACTIVE_PORT --- */
48 #define NTWK_PORT_A (0) /* Port A is currently active */
49 #define NTWK_PORT_B (1) /* Port B is currently active */
50 #define NTWK_NO_ACTIVE_PORT (15) /* Both ports have lost link */
52 /* --- NTWK_LINK_TYPE --- */
53 #define NTWK_LINK_TYPE_PHYSICAL (0) /* link up/down event
54 applies to BladeEngine's
57 #define NTWK_LINK_TYPE_VIRTUAL (1) /* Virtual link up/down event
58 reported by BladeExchange.
59 This applies only when the
60 VLD feature is enabled
64 * --- FWCMD_MAC_TYPE_ENUM ---
65 * This enum defines the types of MAC addresses in the RXF MAC Address Table.
67 #define MAC_ADDRESS_TYPE_STORAGE (0) /* Storage MAC Address */
68 #define MAC_ADDRESS_TYPE_NETWORK (1) /* Network MAC Address */
69 #define MAC_ADDRESS_TYPE_PD (2) /* Protection Domain MAC Addr */
70 #define MAC_ADDRESS_TYPE_MANAGEMENT (3) /* Managment MAC Address */
73 /* --- FWCMD_RING_TYPE_ENUM --- */
74 #define FWCMD_RING_TYPE_ETH_RX (1) /* Ring created with */
75 /* FWCMD_COMMON_ETH_RX_CREATE. */
76 #define FWCMD_RING_TYPE_ETH_TX (2) /* Ring created with */
77 /* FWCMD_COMMON_ETH_TX_CREATE. */
78 #define FWCMD_RING_TYPE_ISCSI_WRBQ (3) /* Ring created with */
79 /* FWCMD_COMMON_ISCSI_WRBQ_CREATE. */
80 #define FWCMD_RING_TYPE_ISCSI_DEFQ (4) /* Ring created with */
81 /* FWCMD_COMMON_ISCSI_DEFQ_CREATE. */
82 #define FWCMD_RING_TYPE_TPM_WRBQ (5) /* Ring created with */
83 /* FWCMD_COMMON_TPM_WRBQ_CREATE. */
84 #define FWCMD_RING_TYPE_TPM_DEFQ (6) /* Ring created with */
85 /* FWCMD_COMMONTPM_TDEFQ_CREATE. */
86 #define FWCMD_RING_TYPE_TPM_RQ (7) /* Ring created with */
87 /* FWCMD_COMMON_TPM_RQ_CREATE. */
88 #define FWCMD_RING_TYPE_MCC (8) /* Ring created with */
89 /* FWCMD_COMMON_MCC_CREATE. */
90 #define FWCMD_RING_TYPE_CQ (9) /* Ring created with */
91 /* FWCMD_COMMON_CQ_CREATE. */
92 #define FWCMD_RING_TYPE_EQ (10) /* Ring created with */
93 /* FWCMD_COMMON_EQ_CREATE. */
94 #define FWCMD_RING_TYPE_QP (11) /* Ring created with */
95 /* FWCMD_RDMA_QP_CREATE. */
98 /* --- ETH_TX_RING_TYPE_ENUM --- */
99 #define ETH_TX_RING_TYPE_FORWARDING (1) /* Ethernet ring for
100 forwarding packets */
101 #define ETH_TX_RING_TYPE_STANDARD (2) /* Ethernet ring for sending
103 #define ETH_TX_RING_TYPE_BOUND (3) /* Ethernet ring bound to the
104 port specified in the command
105 header.port_number field.
106 Rings of this type are
108 failover logic implemented
112 /* --- FWCMD_COMMON_QOS_TYPE_ENUM --- */
113 #define QOS_BITS_NIC (1) /* max_bits_per_second_NIC */
114 /* field is valid. */
115 #define QOS_PKTS_NIC (2) /* max_packets_per_second_NIC */
116 /* field is valid. */
117 #define QOS_IOPS_ISCSI (4) /* max_ios_per_second_iSCSI */
119 #define QOS_VLAN_TAG (8) /* domain_VLAN_tag field
121 #define QOS_FABRIC_ID (16) /* fabric_domain_ID field
123 #define QOS_OEM_PARAMS (32) /* qos_params_oem field
125 #define QOS_TPUT_ISCSI (64) /* max_bytes_per_second_iSCSI
130 * --- FAILOVER_CONFIG_ENUM ---
131 * Failover configuration setting used in FWCMD_COMMON_FORCE_FAILOVER
133 #define FAILOVER_CONFIG_NO_CHANGE (0) /* No change to automatic */
134 /* port failover setting. */
135 #define FAILOVER_CONFIG_ON (1) /* Automatic port failover
136 on link down is enabled. */
137 #define FAILOVER_CONFIG_OFF (2) /* Automatic port failover
138 on link down is disabled. */
141 * --- FAILOVER_PORT_ENUM ---
142 * Failover port setting used in FWCMD_COMMON_FORCE_FAILOVER
144 #define FAILOVER_PORT_A (0) /* Selects port A. */
145 #define FAILOVER_PORT_B (1) /* Selects port B. */
146 #define FAILOVER_PORT_NONE (15) /* No port change requested. */
150 * --- MGMT_FLASHROM_OPCODE ---
151 * Flash ROM operation code
153 #define MGMT_FLASHROM_OPCODE_FLASH (1) /* Commit downloaded data
155 #define MGMT_FLASHROM_OPCODE_SAVE (2) /* Save downloaded data to
156 ARM's DDR - do not flash */
157 #define MGMT_FLASHROM_OPCODE_CLEAR (3) /* Erase specified component
159 #define MGMT_FLASHROM_OPCODE_REPORT (4) /* Read specified component
161 #define MGMT_FLASHROM_OPCODE_IMAGE_INFO (5) /* Returns size of a
165 * --- MGMT_FLASHROM_OPTYPE ---
166 * Flash ROM operation type
168 #define MGMT_FLASHROM_OPTYPE_CODE_FIRMWARE (0) /* Includes ARM firmware,
169 IPSec (optional) and EP
171 #define MGMT_FLASHROM_OPTYPE_CODE_REDBOOT (1)
172 #define MGMT_FLASHROM_OPTYPE_CODE_BIOS (2)
173 #define MGMT_FLASHROM_OPTYPE_CODE_PXE_BIOS (3)
174 #define MGMT_FLASHROM_OPTYPE_CODE_CTRLS (4)
175 #define MGMT_FLASHROM_OPTYPE_CFG_IPSEC (5)
176 #define MGMT_FLASHROM_OPTYPE_CFG_INI (6)
177 #define MGMT_FLASHROM_OPTYPE_ROM_OFFSET_SPECIFIED (7)
180 * --- FLASHROM_TYPE ---
181 * Flash ROM manufacturers supported in the f/w
187 /* --- DDR_CAS_TYPE --- */
192 /* --- DDR_SIZE_TYPE --- */
193 #define SIZE_256MB (0)
194 #define SIZE_512MB (1)
196 /* --- DDR_MODE_TYPE --- */
197 #define DDR_NO_ECC (0)
200 /* --- INTERFACE_10GB_TYPE --- */
204 /* --- BE_CHIP_MAX_MTU --- */
205 #define CHIP_MAX_MTU (9000)
207 /* --- XAUI_STATE_ENUM --- */
208 #define XAUI_STATE_ENABLE (0) /* This MUST be the default
209 value for all requests
211 equalization parameter. */
212 #define XAUI_STATE_DISABLE (255) /* The XAUI for both ports
213 may be disabled for EMI
215 provision for turning off
218 /* --- BE_ASIC_REVISION --- */
219 #define BE_ASIC_REV_A0 (1)
220 #define BE_ASIC_REV_A1 (2)
222 #endif /* __fwcmd_common_amap_h__ */