xref: /freebsd/sys/dev/qlnx/qlnxe/ecore_gtt_reg_addr.h (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
1 /*
2  * Copyright (c) 2017-2018 Cavium, Inc.
3  * All rights reserved.
4  *
5  *  Redistribution and use in source and binary forms, with or without
6  *  modification, are permitted provided that the following conditions
7  *  are met:
8  *
9  *  1. Redistributions of source code must retain the above copyright
10  *     notice, this list of conditions and the following disclaimer.
11  *  2. Redistributions in binary form must reproduce the above copyright
12  *     notice, this list of conditions and the following disclaimer in the
13  *     documentation and/or other materials provided with the distribution.
14  *
15  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16  *  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18  *  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
19  *  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20  *  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21  *  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22  *  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23  *  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24  *  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25  *  POSSIBILITY OF SUCH DAMAGE.
26  *
27  */
28 
29 #ifndef GTT_REG_ADDR_H
30 #define GTT_REG_ADDR_H
31 
32 /* Win 2 */
33 #define GTT_BAR0_MAP_REG_IGU_CMD                                                                             0x00f000UL //Access:RW   DataWidth:0x20   //
34 
35 /* Win 3 */
36 #define GTT_BAR0_MAP_REG_TSDM_RAM                                                                            0x010000UL //Access:RW   DataWidth:0x20   //
37 
38 /* Win 4 */
39 #define GTT_BAR0_MAP_REG_MSDM_RAM                                                                            0x011000UL //Access:RW   DataWidth:0x20   //
40 
41 /* Win 5 */
42 #define GTT_BAR0_MAP_REG_MSDM_RAM_1024                                                                       0x012000UL //Access:RW   DataWidth:0x20   //
43 
44 /* Win 6 */
45 #define GTT_BAR0_MAP_REG_USDM_RAM                                                                            0x013000UL //Access:RW   DataWidth:0x20   //
46 
47 /* Win 7 */
48 #define GTT_BAR0_MAP_REG_USDM_RAM_1024                                                                       0x014000UL //Access:RW   DataWidth:0x20   //
49 
50 /* Win 8 */
51 #define GTT_BAR0_MAP_REG_USDM_RAM_2048                                                                       0x015000UL //Access:RW   DataWidth:0x20   //
52 
53 /* Win 9 */
54 #define GTT_BAR0_MAP_REG_XSDM_RAM                                                                            0x016000UL //Access:RW   DataWidth:0x20   //
55 
56 /* Win 10 */
57 #define GTT_BAR0_MAP_REG_YSDM_RAM                                                                            0x017000UL //Access:RW   DataWidth:0x20   //
58 
59 /* Win 11 */
60 #define GTT_BAR0_MAP_REG_PSDM_RAM                                                                            0x018000UL //Access:RW   DataWidth:0x20   //
61 
62 #endif
63