.. | .. |
---|
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) |
---|
.. | .. |
---|
48 | 36 | #define BLK_ERASE_1 0x60 |
---|
49 | 37 | #define BLK_ERASE_2 0xD0 |
---|
50 | 38 | #define READ_STS 0x70 |
---|
51 | | -#define READ_xD_ID 0x9A |
---|
| 39 | +#define READ_XD_ID 0x9A |
---|
52 | 40 | #define COPY_BACK_512 0x8A |
---|
53 | 41 | #define COPY_BACK_2K 0x85 |
---|
54 | 42 | #define READ1_1_2 0x30 |
---|
.. | .. |
---|
84 | 72 | #define XD_128M_X16_2048 0xC1 |
---|
85 | 73 | #define XD_4M_X8_512_1 0xE3 |
---|
86 | 74 | #define XD_4M_X8_512_2 0xE5 |
---|
87 | | -#define xD_1G_X8_512 0xD3 |
---|
88 | | -#define xD_2G_X8_512 0xD5 |
---|
| 75 | +#define XD_1G_X8_512 0xD3 |
---|
| 76 | +#define XD_2G_X8_512 0xD5 |
---|
89 | 77 | |
---|
90 | 78 | #define XD_ID_CODE 0xB5 |
---|
91 | 79 | |
---|
.. | .. |
---|
102 | 90 | #define NO_OFFSET 0x0 |
---|
103 | 91 | #define WITH_OFFSET 0x1 |
---|
104 | 92 | |
---|
105 | | -#define Sect_Per_Page 4 |
---|
| 93 | +#define SECT_PER_PAGE 4 |
---|
106 | 94 | #define XD_ADDR_MODE_2C XD_ADDR_MODE_2A |
---|
107 | 95 | |
---|
108 | 96 | #define ZONE0_BAD_BLOCK 23 |
---|