[media] rc: Add support for decoding XMP protocol
[firefly-linux-kernel-4.4.55.git] / include / media / rc-map.h
index 894c7e4c409b276e4bbb6c05849e0635f7ba8316..80f951890b4cd1b8397de08e9f82442b97be5c19 100644 (file)
@@ -31,6 +31,7 @@ enum rc_type {
        RC_TYPE_RC6_6A_32       = 16,   /* Philips RC6-6A-32 protocol */
        RC_TYPE_RC6_MCE         = 17,   /* MCE (Philips RC6-6A-32 subtype) protocol */
        RC_TYPE_SHARP           = 18,   /* Sharp protocol */
+       RC_TYPE_XMP             = 19,   /* XMP protocol */
 };
 
 #define RC_BIT_NONE            0
@@ -53,6 +54,7 @@ enum rc_type {
 #define RC_BIT_RC6_6A_32       (1 << RC_TYPE_RC6_6A_32)
 #define RC_BIT_RC6_MCE         (1 << RC_TYPE_RC6_MCE)
 #define RC_BIT_SHARP           (1 << RC_TYPE_SHARP)
+#define RC_BIT_XMP             (1 << RC_TYPE_XMP)
 
 #define RC_BIT_ALL     (RC_BIT_UNKNOWN | RC_BIT_OTHER | RC_BIT_LIRC | \
                         RC_BIT_RC5 | RC_BIT_RC5X | RC_BIT_RC5_SZ | \
@@ -60,7 +62,9 @@ enum rc_type {
                         RC_BIT_SONY12 | RC_BIT_SONY15 | RC_BIT_SONY20 | \
                         RC_BIT_NEC | RC_BIT_SANYO | RC_BIT_MCE_KBD | \
                         RC_BIT_RC6_0 | RC_BIT_RC6_6A_20 | RC_BIT_RC6_6A_24 | \
-                        RC_BIT_RC6_6A_32 | RC_BIT_RC6_MCE | RC_BIT_SHARP)
+                        RC_BIT_RC6_6A_32 | RC_BIT_RC6_MCE | RC_BIT_SHARP | \
+                        RC_BIT_XMP)
+
 
 #define RC_SCANCODE_UNKNOWN(x)                 (x)
 #define RC_SCANCODE_OTHER(x)                   (x)