.. | .. |
---|
1 | | -/* Driver for Realtek PCI-Express card reader |
---|
2 | | - * Header file |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0+ */ |
---|
| 2 | +/* |
---|
| 3 | + * Driver for Realtek PCI-Express card reader |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright(c) 2009-2013 Realtek Semiconductor Corp. All rights reserved. |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify it |
---|
7 | | - * under the terms of the GNU General Public License as published by the |
---|
8 | | - * Free Software Foundation; either version 2, or (at your option) any |
---|
9 | | - * later version. |
---|
10 | | - * |
---|
11 | | - * This program is distributed in the hope that it will be useful, but |
---|
12 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
14 | | - * General Public License for more details. |
---|
15 | | - * |
---|
16 | | - * You should have received a copy of the GNU General Public License along |
---|
17 | | - * with this program; if not, see <http://www.gnu.org/licenses/>. |
---|
18 | 6 | * |
---|
19 | 7 | * Author: |
---|
20 | 8 | * Wei WANG (wei_wang@realsil.com.cn) |
---|
.. | .. |
---|
104 | 92 | #define PRO_FORMAT 0x10 |
---|
105 | 93 | #define PRO_SLEEP 0x11 |
---|
106 | 94 | |
---|
107 | | -#define IntReg 0x01 |
---|
108 | | -#define StatusReg0 0x02 |
---|
109 | | -#define StatusReg1 0x03 |
---|
| 95 | +#define INT_REG 0x01 |
---|
| 96 | +#define STATUS_REG0 0x02 |
---|
| 97 | +#define STATUS_REG1 0x03 |
---|
110 | 98 | |
---|
111 | | -#define SystemParm 0x10 |
---|
112 | | -#define BlockAdrs 0x11 |
---|
113 | | -#define CMDParm 0x14 |
---|
114 | | -#define PageAdrs 0x15 |
---|
| 99 | +#define SYSTEM_PARAM 0x10 |
---|
| 100 | +#define BLOCK_ADRS 0x11 |
---|
| 101 | +#define CMD_PARM 0x14 |
---|
| 102 | +#define PAGE_ADRS 0x15 |
---|
115 | 103 | |
---|
116 | | -#define OverwriteFlag 0x16 |
---|
117 | | -#define ManagemenFlag 0x17 |
---|
118 | | -#define LogicalAdrs 0x18 |
---|
119 | | -#define ReserveArea 0x1A |
---|
| 104 | +#define OVERWRITE_FLAG 0x16 |
---|
| 105 | +#define MANAGEMEN_FLAG 0x17 |
---|
| 106 | +#define LOGICAL_ADRS 0x18 |
---|
| 107 | +#define RESERVE_AREA 0x1A |
---|
120 | 108 | |
---|
121 | | -#define Pro_IntReg 0x01 |
---|
122 | | -#define Pro_StatusReg 0x02 |
---|
123 | | -#define Pro_TypeReg 0x04 |
---|
124 | | -#define Pro_IFModeReg 0x05 |
---|
125 | | -#define Pro_CatagoryReg 0x06 |
---|
126 | | -#define Pro_ClassReg 0x07 |
---|
| 109 | +#define PRO_INT_REG 0x01 |
---|
| 110 | +#define PRO_STATUS_REG 0x02 |
---|
| 111 | +#define PRO_TYPE_REG 0x04 |
---|
| 112 | +#define PRO_IF_mode_REG 0x05 |
---|
| 113 | +#define PRO_CATEGORY_REG 0x06 |
---|
| 114 | +#define PRO_CLASS_REG 0x07 |
---|
127 | 115 | |
---|
128 | | -#define Pro_SystemParm 0x10 |
---|
129 | | -#define Pro_DataCount1 0x11 |
---|
130 | | -#define Pro_DataCount0 0x12 |
---|
131 | | -#define Pro_DataAddr3 0x13 |
---|
132 | | -#define Pro_DataAddr2 0x14 |
---|
133 | | -#define Pro_DataAddr1 0x15 |
---|
134 | | -#define Pro_DataAddr0 0x16 |
---|
| 116 | +#define PRO_SYSTEM_PARAM 0x10 |
---|
| 117 | +#define PRO_DATA_COUNT1 0x11 |
---|
| 118 | +#define PRO_DATA_COUNT0 0x12 |
---|
| 119 | +#define PRO_DATA_ADDR3 0x13 |
---|
| 120 | +#define PRO_DATA_ADDR2 0x14 |
---|
| 121 | +#define PRO_DATA_ADDR1 0x15 |
---|
| 122 | +#define PRO_DATA_ADDR0 0x16 |
---|
135 | 123 | |
---|
136 | | -#define Pro_TPCParm 0x17 |
---|
137 | | -#define Pro_CMDParm 0x18 |
---|
| 124 | +#define PRO_TPC_PARM 0x17 |
---|
| 125 | +#define PRO_CMD_PARM 0x18 |
---|
138 | 126 | |
---|
139 | 127 | #define INT_REG_CED 0x80 |
---|
140 | 128 | #define INT_REG_ERR 0x40 |
---|
.. | .. |
---|
164 | 152 | #define PAGE_SIZE_0 (PPBUF_BASE2 + 0x1a0 + 8) |
---|
165 | 153 | #define PAGE_SIZE_1 (PPBUF_BASE2 + 0x1a0 + 9) |
---|
166 | 154 | |
---|
167 | | -#define MS_Device_Type (PPBUF_BASE2 + 0x1D8) |
---|
| 155 | +#define MS_device_type (PPBUF_BASE2 + 0x1D8) |
---|
168 | 156 | |
---|
169 | | -#define MS_4bit_Support (PPBUF_BASE2 + 0x1D3) |
---|
| 157 | +#define MS_4bit_support (PPBUF_BASE2 + 0x1D3) |
---|
170 | 158 | |
---|
171 | | -#define setPS_NG 1 |
---|
172 | | -#define setPS_Error 0 |
---|
| 159 | +#define set_PS_NG 1 |
---|
| 160 | +#define set_PS_error 0 |
---|
173 | 161 | |
---|
174 | 162 | #define PARALLEL_8BIT_IF 0x40 |
---|
175 | 163 | #define PARALLEL_4BIT_IF 0x00 |
---|