0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef __RTSX_COMMON_H
0011 #define __RTSX_COMMON_H
0012
0013 #define DRV_NAME_RTSX_PCI "rtsx_pci"
0014 #define DRV_NAME_RTSX_PCI_SDMMC "rtsx_pci_sdmmc"
0015 #define DRV_NAME_RTSX_PCI_MS "rtsx_pci_ms"
0016
0017 #define RTSX_REG_PAIR(addr, val) (((u32)(addr) << 16) | (u8)(val))
0018
0019 #define RTSX_SSC_DEPTH_4M 0x01
0020 #define RTSX_SSC_DEPTH_2M 0x02
0021 #define RTSX_SSC_DEPTH_1M 0x03
0022 #define RTSX_SSC_DEPTH_500K 0x04
0023 #define RTSX_SSC_DEPTH_250K 0x05
0024
0025 #define RTSX_SD_CARD 0
0026 #define RTSX_MS_CARD 1
0027
0028 #define CLK_TO_DIV_N 0
0029 #define DIV_N_TO_CLK 1
0030
0031 struct platform_device;
0032
0033 struct rtsx_slot {
0034 struct platform_device *p_dev;
0035 void (*card_event)(struct platform_device *p_dev);
0036 };
0037
0038 #endif