#define CHK_BIT(data, idx)     ((data) & (1 << (idx)))
 
 /* SG descriptor */
-#define SG_INT                 0x04
-#define SG_END                 0x02
-#define SG_VALID               0x01
+#define RTSX_SG_INT            0x04
+#define RTSX_SG_END            0x02
+#define RTSX_SG_VALID          0x01
 
-#define SG_NO_OP               0x00
-#define SG_TRANS_DATA          (0x02 << 4)
-#define SG_LINK_DESC           (0x03 << 4)
+#define RTSX_SG_NO_OP          0x00
+#define RTSX_SG_TRANS_DATA     (0x02 << 4)
+#define RTSX_SG_LINK_DESC      (0x03 << 4)
 
 struct rtsx_chip;
 
 
        do {
                if (len > 0x80000) {
                        temp_len = 0x80000;
-                       temp_opt = option & (~SG_END);
+                       temp_opt = option & (~RTSX_SG_END);
                } else {
                        temp_len = len;
                        temp_opt = option;
                        *index = *index + 1;
                }
                if ((i == (sg_cnt - 1)) || !resid)
-                       option = SG_VALID | SG_END | SG_TRANS_DATA;
+                       option = RTSX_SG_VALID | RTSX_SG_END | RTSX_SG_TRANS_DATA;
                else
-                       option = SG_VALID | SG_TRANS_DATA;
+                       option = RTSX_SG_VALID | RTSX_SG_TRANS_DATA;
 
                rtsx_add_sg_tbl(chip, (u32)addr, (u32)len, option);
 
                                (unsigned int)addr, len);
 
                        if (j == (sg_cnt - 1))
-                               option = SG_VALID | SG_END | SG_TRANS_DATA;
+                               option = RTSX_SG_VALID | RTSX_SG_END | RTSX_SG_TRANS_DATA;
                        else
-                               option = SG_VALID | SG_TRANS_DATA;
+                               option = RTSX_SG_VALID | RTSX_SG_TRANS_DATA;
 
                        rtsx_add_sg_tbl(chip, (u32)addr, (u32)len, option);