hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/staging/rts5208/xd.h
....@@ -1,20 +1,8 @@
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
34 *
45 * 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/>.
186 *
197 * Author:
208 * Wei WANG (wei_wang@realsil.com.cn)
....@@ -48,7 +36,7 @@
4836 #define BLK_ERASE_1 0x60
4937 #define BLK_ERASE_2 0xD0
5038 #define READ_STS 0x70
51
-#define READ_xD_ID 0x9A
39
+#define READ_XD_ID 0x9A
5240 #define COPY_BACK_512 0x8A
5341 #define COPY_BACK_2K 0x85
5442 #define READ1_1_2 0x30
....@@ -84,8 +72,8 @@
8472 #define XD_128M_X16_2048 0xC1
8573 #define XD_4M_X8_512_1 0xE3
8674 #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
8977
9078 #define XD_ID_CODE 0xB5
9179
....@@ -102,7 +90,7 @@
10290 #define NO_OFFSET 0x0
10391 #define WITH_OFFSET 0x1
10492
105
-#define Sect_Per_Page 4
93
+#define SECT_PER_PAGE 4
10694 #define XD_ADDR_MODE_2C XD_ADDR_MODE_2A
10795
10896 #define ZONE0_BAD_BLOCK 23