iPXE
drivers
net
marvell
atl_hw.h
Go to the documentation of this file.
1
/*
2
* Copyright(C) 2017-2024 Marvell
3
*
4
* SPDX-License-Identifier: BSD-2-Clause
5
*
6
* Redistribution and use in source and binary forms, with or without
7
* modification, are permitted provided that the following conditions are met:
8
9
* 1. Redistributions of source code must retain the above copyright notice,
10
* this list of conditions and the following disclaimer.
11
* 2. Redistributions in binary form must reproduce the above copyright notice,
12
* this list of conditions and the following disclaimer in the documentation
13
* and/or other materials provided with the distribution.
14
*
15
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS
16
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17
* TO,THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR HOLDER OR
19
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
24
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
25
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
*
27
*/
28
#ifndef __ATL_HW_H
29
#define __ATL_HW_H
30
31
FILE_LICENCE
( BSD2 );
32
33
#define ATL_GLB_STD_CTRL 0x0
34
#define ATL_GLB_CTRL_RST_DIS 0x4000
35
#define ATL_FW_VER 0x18
36
37
#define ATL_MPI_DAISY_CHAIN_STS 0x704
38
#define ATL_MPI_RX_DAISY_CHAIN_DATA 0x04000000
39
#define ATL_MPI_RX_DAISY_CHAIN_SOF 0x02000000
40
#define FLB_LOAD_STS 0x10
41
42
#define ATL_MPI_BOOT_EXIT_CODE 0x388
43
44
#define ATL_SEM_TIMEOUT 0x348
45
#define ATL_SEM_MAX_TIMEOUT 3000
46
47
#define ATL_GLB_CTRL2 0x404
48
#define ATL_GLB_MCP_SEM1 0x3A0
49
#define ATL_GBL_MCP_SEM1_RELEASE 0x1
50
51
#define ATL_GLB_MCP_SEM4 0x3AC
52
#define ATL_GLB_MCP_SEM5 0x3B0
53
#define ATL_GLB_MCP_SP26 0x364
54
#define ATL_MIF_PWR_GATING_EN_CTRL 0x32A8
55
56
#define ATL_GLB_NVR_PROV4 0x53C
57
#define ATL_GBL_NVR_PROV4_RESET 0x10
58
59
60
#define ATL_GEN_PROV9 0x520
61
62
#define ATL_MAC_PHY_CTRL 0x00004000U
63
#define ATL_MAC_PHY_CTRL_RST_DIS 0x20000000U
64
65
#define ATL_MIF_PWR_GATING_EN_CTRL_RESET 0x0
66
#define ATL_GEN_PROV9_ENABLE 0x1
67
#define ATL_GLB_CTRL2_MAC_KICK_START 0x180e0
68
#define ATL_GLB_CTRL2_FW_RESET 0x80e0
69
#define ATL_GLB_CTRL2_MBOX_ERR_UP_RUN_STALL 0x40e1
70
#define ATL_GLB_CTRL2_MBOX_ERR_UP_RUN_NORMAL 0x40e0
71
#define ATL_GLB_STD_CTRL_RESET 0x8000
72
#define ATL_MPI_DAISY_CHAIN_STS_ERROR_STATUS 0x06000000
73
74
#define ATL_DELAY_1_MNS 1
75
#define ATL_DELAY_10_MNS 10
76
#define ATL_DELAY_15_MNS 15
77
#define ATL_DELAY_50_MNS 50
78
79
#define ATL_MAC_ADDRESS_SIZE 6
80
#define POISON_SIGN 0xDEAD
81
#define FW_NOT_SUPPORT 0xF1A7
82
83
#endif
FILE_LICENCE
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition
compiler.h:896
Generated by
1.14.0