1 /***********************license start***************
2 * Author: Cavium Networks
4 * Contact: support@caviumnetworks.com
5 * This file is part of the OCTEON SDK
7 * Copyright (c) 2003-2008 Cavium Networks
9 * This file is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License, Version 2, as
11 * published by the Free Software Foundation.
13 * This file is distributed in the hope that it will be useful, but
14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
15 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
16 * NONINFRINGEMENT. See the GNU General Public License for more
19 * You should have received a copy of the GNU General Public License
20 * along with this file; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 * or visit http://www.gnu.org/licenses/.
24 * This file may also be available under a different license from Cavium.
25 * Contact Cavium Networks for more information
26 ***********************license end**************************************/
28 #ifndef __CVMX_LED_DEFS_H__
29 #define __CVMX_LED_DEFS_H__
31 #define CVMX_LED_BLINK \
32 CVMX_ADD_IO_SEG(0x0001180000001A48ull)
33 #define CVMX_LED_CLK_PHASE \
34 CVMX_ADD_IO_SEG(0x0001180000001A08ull)
35 #define CVMX_LED_CYLON \
36 CVMX_ADD_IO_SEG(0x0001180000001AF8ull)
37 #define CVMX_LED_DBG \
38 CVMX_ADD_IO_SEG(0x0001180000001A18ull)
40 CVMX_ADD_IO_SEG(0x0001180000001A00ull)
41 #define CVMX_LED_POLARITY \
42 CVMX_ADD_IO_SEG(0x0001180000001A50ull)
43 #define CVMX_LED_PRT \
44 CVMX_ADD_IO_SEG(0x0001180000001A10ull)
45 #define CVMX_LED_PRT_FMT \
46 CVMX_ADD_IO_SEG(0x0001180000001A30ull)
47 #define CVMX_LED_PRT_STATUSX(offset) \
48 CVMX_ADD_IO_SEG(0x0001180000001A80ull + (((offset) & 7) * 8))
49 #define CVMX_LED_UDD_CNTX(offset) \
50 CVMX_ADD_IO_SEG(0x0001180000001A20ull + (((offset) & 1) * 8))
51 #define CVMX_LED_UDD_DATX(offset) \
52 CVMX_ADD_IO_SEG(0x0001180000001A38ull + (((offset) & 1) * 8))
53 #define CVMX_LED_UDD_DAT_CLRX(offset) \
54 CVMX_ADD_IO_SEG(0x0001180000001AC8ull + (((offset) & 1) * 16))
55 #define CVMX_LED_UDD_DAT_SETX(offset) \
56 CVMX_ADD_IO_SEG(0x0001180000001AC0ull + (((offset) & 1) * 16))
58 union cvmx_led_blink
{
60 struct cvmx_led_blink_s
{
61 uint64_t reserved_8_63
:56;
64 struct cvmx_led_blink_s cn38xx
;
65 struct cvmx_led_blink_s cn38xxp2
;
66 struct cvmx_led_blink_s cn56xx
;
67 struct cvmx_led_blink_s cn56xxp1
;
68 struct cvmx_led_blink_s cn58xx
;
69 struct cvmx_led_blink_s cn58xxp1
;
72 union cvmx_led_clk_phase
{
74 struct cvmx_led_clk_phase_s
{
75 uint64_t reserved_7_63
:57;
78 struct cvmx_led_clk_phase_s cn38xx
;
79 struct cvmx_led_clk_phase_s cn38xxp2
;
80 struct cvmx_led_clk_phase_s cn56xx
;
81 struct cvmx_led_clk_phase_s cn56xxp1
;
82 struct cvmx_led_clk_phase_s cn58xx
;
83 struct cvmx_led_clk_phase_s cn58xxp1
;
86 union cvmx_led_cylon
{
88 struct cvmx_led_cylon_s
{
89 uint64_t reserved_16_63
:48;
92 struct cvmx_led_cylon_s cn38xx
;
93 struct cvmx_led_cylon_s cn38xxp2
;
94 struct cvmx_led_cylon_s cn56xx
;
95 struct cvmx_led_cylon_s cn56xxp1
;
96 struct cvmx_led_cylon_s cn58xx
;
97 struct cvmx_led_cylon_s cn58xxp1
;
102 struct cvmx_led_dbg_s
{
103 uint64_t reserved_1_63
:63;
106 struct cvmx_led_dbg_s cn38xx
;
107 struct cvmx_led_dbg_s cn38xxp2
;
108 struct cvmx_led_dbg_s cn56xx
;
109 struct cvmx_led_dbg_s cn56xxp1
;
110 struct cvmx_led_dbg_s cn58xx
;
111 struct cvmx_led_dbg_s cn58xxp1
;
116 struct cvmx_led_en_s
{
117 uint64_t reserved_1_63
:63;
120 struct cvmx_led_en_s cn38xx
;
121 struct cvmx_led_en_s cn38xxp2
;
122 struct cvmx_led_en_s cn56xx
;
123 struct cvmx_led_en_s cn56xxp1
;
124 struct cvmx_led_en_s cn58xx
;
125 struct cvmx_led_en_s cn58xxp1
;
128 union cvmx_led_polarity
{
130 struct cvmx_led_polarity_s
{
131 uint64_t reserved_1_63
:63;
134 struct cvmx_led_polarity_s cn38xx
;
135 struct cvmx_led_polarity_s cn38xxp2
;
136 struct cvmx_led_polarity_s cn56xx
;
137 struct cvmx_led_polarity_s cn56xxp1
;
138 struct cvmx_led_polarity_s cn58xx
;
139 struct cvmx_led_polarity_s cn58xxp1
;
144 struct cvmx_led_prt_s
{
145 uint64_t reserved_8_63
:56;
148 struct cvmx_led_prt_s cn38xx
;
149 struct cvmx_led_prt_s cn38xxp2
;
150 struct cvmx_led_prt_s cn56xx
;
151 struct cvmx_led_prt_s cn56xxp1
;
152 struct cvmx_led_prt_s cn58xx
;
153 struct cvmx_led_prt_s cn58xxp1
;
156 union cvmx_led_prt_fmt
{
158 struct cvmx_led_prt_fmt_s
{
159 uint64_t reserved_4_63
:60;
162 struct cvmx_led_prt_fmt_s cn38xx
;
163 struct cvmx_led_prt_fmt_s cn38xxp2
;
164 struct cvmx_led_prt_fmt_s cn56xx
;
165 struct cvmx_led_prt_fmt_s cn56xxp1
;
166 struct cvmx_led_prt_fmt_s cn58xx
;
167 struct cvmx_led_prt_fmt_s cn58xxp1
;
170 union cvmx_led_prt_statusx
{
172 struct cvmx_led_prt_statusx_s
{
173 uint64_t reserved_6_63
:58;
176 struct cvmx_led_prt_statusx_s cn38xx
;
177 struct cvmx_led_prt_statusx_s cn38xxp2
;
178 struct cvmx_led_prt_statusx_s cn56xx
;
179 struct cvmx_led_prt_statusx_s cn56xxp1
;
180 struct cvmx_led_prt_statusx_s cn58xx
;
181 struct cvmx_led_prt_statusx_s cn58xxp1
;
184 union cvmx_led_udd_cntx
{
186 struct cvmx_led_udd_cntx_s
{
187 uint64_t reserved_6_63
:58;
190 struct cvmx_led_udd_cntx_s cn38xx
;
191 struct cvmx_led_udd_cntx_s cn38xxp2
;
192 struct cvmx_led_udd_cntx_s cn56xx
;
193 struct cvmx_led_udd_cntx_s cn56xxp1
;
194 struct cvmx_led_udd_cntx_s cn58xx
;
195 struct cvmx_led_udd_cntx_s cn58xxp1
;
198 union cvmx_led_udd_datx
{
200 struct cvmx_led_udd_datx_s
{
201 uint64_t reserved_32_63
:32;
204 struct cvmx_led_udd_datx_s cn38xx
;
205 struct cvmx_led_udd_datx_s cn38xxp2
;
206 struct cvmx_led_udd_datx_s cn56xx
;
207 struct cvmx_led_udd_datx_s cn56xxp1
;
208 struct cvmx_led_udd_datx_s cn58xx
;
209 struct cvmx_led_udd_datx_s cn58xxp1
;
212 union cvmx_led_udd_dat_clrx
{
214 struct cvmx_led_udd_dat_clrx_s
{
215 uint64_t reserved_32_63
:32;
218 struct cvmx_led_udd_dat_clrx_s cn38xx
;
219 struct cvmx_led_udd_dat_clrx_s cn38xxp2
;
220 struct cvmx_led_udd_dat_clrx_s cn56xx
;
221 struct cvmx_led_udd_dat_clrx_s cn56xxp1
;
222 struct cvmx_led_udd_dat_clrx_s cn58xx
;
223 struct cvmx_led_udd_dat_clrx_s cn58xxp1
;
226 union cvmx_led_udd_dat_setx
{
228 struct cvmx_led_udd_dat_setx_s
{
229 uint64_t reserved_32_63
:32;
232 struct cvmx_led_udd_dat_setx_s cn38xx
;
233 struct cvmx_led_udd_dat_setx_s cn38xxp2
;
234 struct cvmx_led_udd_dat_setx_s cn56xx
;
235 struct cvmx_led_udd_dat_setx_s cn56xxp1
;
236 struct cvmx_led_udd_dat_setx_s cn58xx
;
237 struct cvmx_led_udd_dat_setx_s cn58xxp1
;