diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-08-29 16:00:22 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-09-09 08:31:34 -0400 |
commit | 9fa7235f88386c9a5f5013a90f0c6fe8aa6fe828 (patch) | |
tree | 113dba297060ff8e81c36e1638d1e662cd2cf6f0 /include/media | |
parent | 730fbf2a096054e95a84dde12532bd799809a229 (diff) |
[media] rc-map.h: document structs/enums on it
There are some structs/enums that aren't documented via
kernel-doc markup. Add documentation for them.
Fix those warnings:
./include/media/rc-map.h:103: WARNING: c:type reference target not found: rc_map_list
./include/media/rc-map.h:110: WARNING: c:type reference target not found: rc_map_list
./include/media/rc-map.h:117: WARNING: c:type reference target not found: rc_map
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/rc-map.h | 94 |
1 files changed, 71 insertions, 23 deletions
diff --git a/include/media/rc-map.h b/include/media/rc-map.h index daa75fcc1ff1..173ad58fb61b 100644 --- a/include/media/rc-map.h +++ b/include/media/rc-map.h | |||
@@ -11,27 +11,51 @@ | |||
11 | 11 | ||
12 | #include <linux/input.h> | 12 | #include <linux/input.h> |
13 | 13 | ||
14 | /** | ||
15 | * enum rc_type - type of the Remote Controller protocol | ||
16 | * | ||
17 | * @RC_TYPE_UNKNOWN: Protocol not known | ||
18 | * @RC_TYPE_OTHER: Protocol known but proprietary | ||
19 | * @RC_TYPE_RC5: Philips RC5 protocol | ||
20 | * @RC_TYPE_RC5X: Philips RC5x protocol | ||
21 | * @RC_TYPE_RC5_SZ: StreamZap variant of RC5 | ||
22 | * @RC_TYPE_JVC: JVC protocol | ||
23 | * @RC_TYPE_SONY12: Sony 12 bit protocol | ||
24 | * @RC_TYPE_SONY15: Sony 15 bit protocol | ||
25 | * @RC_TYPE_SONY20: Sony 20 bit protocol | ||
26 | * @RC_TYPE_NEC: NEC protocol | ||
27 | * @RC_TYPE_SANYO: Sanyo protocol | ||
28 | * @RC_TYPE_MCE_KBD: RC6-ish MCE keyboard/mouse | ||
29 | * @RC_TYPE_RC6_0: Philips RC6-0-16 protocol | ||
30 | * @RC_TYPE_RC6_6A_20: Philips RC6-6A-20 protocol | ||
31 | * @RC_TYPE_RC6_6A_24: Philips RC6-6A-24 protocol | ||
32 | * @RC_TYPE_RC6_6A_32: Philips RC6-6A-32 protocol | ||
33 | * @RC_TYPE_RC6_MCE: MCE (Philips RC6-6A-32 subtype) protocol | ||
34 | * @RC_TYPE_SHARP: Sharp protocol | ||
35 | * @RC_TYPE_XMP: XMP protocol | ||
36 | * @RC_TYPE_CEC: CEC protocol | ||
37 | */ | ||
14 | enum rc_type { | 38 | enum rc_type { |
15 | RC_TYPE_UNKNOWN = 0, /* Protocol not known */ | 39 | RC_TYPE_UNKNOWN = 0, |
16 | RC_TYPE_OTHER = 1, /* Protocol known but proprietary */ | 40 | RC_TYPE_OTHER = 1, |
17 | RC_TYPE_RC5 = 2, /* Philips RC5 protocol */ | 41 | RC_TYPE_RC5 = 2, |
18 | RC_TYPE_RC5X = 3, /* Philips RC5x protocol */ | 42 | RC_TYPE_RC5X = 3, |
19 | RC_TYPE_RC5_SZ = 4, /* StreamZap variant of RC5 */ | 43 | RC_TYPE_RC5_SZ = 4, |
20 | RC_TYPE_JVC = 5, /* JVC protocol */ | 44 | RC_TYPE_JVC = 5, |
21 | RC_TYPE_SONY12 = 6, /* Sony 12 bit protocol */ | 45 | RC_TYPE_SONY12 = 6, |
22 | RC_TYPE_SONY15 = 7, /* Sony 15 bit protocol */ | 46 | RC_TYPE_SONY15 = 7, |
23 | RC_TYPE_SONY20 = 8, /* Sony 20 bit protocol */ | 47 | RC_TYPE_SONY20 = 8, |
24 | RC_TYPE_NEC = 9, /* NEC protocol */ | 48 | RC_TYPE_NEC = 9, |
25 | RC_TYPE_SANYO = 10, /* Sanyo protocol */ | 49 | RC_TYPE_SANYO = 10, |
26 | RC_TYPE_MCE_KBD = 11, /* RC6-ish MCE keyboard/mouse */ | 50 | RC_TYPE_MCE_KBD = 11, |
27 | RC_TYPE_RC6_0 = 12, /* Philips RC6-0-16 protocol */ | 51 | RC_TYPE_RC6_0 = 12, |
28 | RC_TYPE_RC6_6A_20 = 13, /* Philips RC6-6A-20 protocol */ | 52 | RC_TYPE_RC6_6A_20 = 13, |
29 | RC_TYPE_RC6_6A_24 = 14, /* Philips RC6-6A-24 protocol */ | 53 | RC_TYPE_RC6_6A_24 = 14, |
30 | RC_TYPE_RC6_6A_32 = 15, /* Philips RC6-6A-32 protocol */ | 54 | RC_TYPE_RC6_6A_32 = 15, |
31 | RC_TYPE_RC6_MCE = 16, /* MCE (Philips RC6-6A-32 subtype) protocol */ | 55 | RC_TYPE_RC6_MCE = 16, |
32 | RC_TYPE_SHARP = 17, /* Sharp protocol */ | 56 | RC_TYPE_SHARP = 17, |
33 | RC_TYPE_XMP = 18, /* XMP protocol */ | 57 | RC_TYPE_XMP = 18, |
34 | RC_TYPE_CEC = 19, /* CEC protocol */ | 58 | RC_TYPE_CEC = 19, |
35 | }; | 59 | }; |
36 | 60 | ||
37 | #define RC_BIT_NONE 0ULL | 61 | #define RC_BIT_NONE 0ULL |
@@ -76,21 +100,45 @@ enum rc_type { | |||
76 | #define RC_SCANCODE_RC6_0(sys, cmd) (((sys) << 8) | (cmd)) | 100 | #define RC_SCANCODE_RC6_0(sys, cmd) (((sys) << 8) | (cmd)) |
77 | #define RC_SCANCODE_RC6_6A(vendor, sys, cmd) (((vendor) << 16) | ((sys) << 8) | (cmd)) | 101 | #define RC_SCANCODE_RC6_6A(vendor, sys, cmd) (((vendor) << 16) | ((sys) << 8) | (cmd)) |
78 | 102 | ||
103 | /** | ||
104 | * struct rc_map_table - represents a scancode/keycode pair | ||
105 | * | ||
106 | * @scancode: scan code (u32) | ||
107 | * @keycode: Linux input keycode | ||
108 | */ | ||
79 | struct rc_map_table { | 109 | struct rc_map_table { |
80 | u32 scancode; | 110 | u32 scancode; |
81 | u32 keycode; | 111 | u32 keycode; |
82 | }; | 112 | }; |
83 | 113 | ||
114 | /** | ||
115 | * struct rc_map - represents a keycode map table | ||
116 | * | ||
117 | * @scan: pointer to struct &rc_map_table | ||
118 | * @size: Max number of entries | ||
119 | * @len: Number of entries that are in use | ||
120 | * @alloc: size of *scan, in bytes | ||
121 | * @rc_type: type of the remote controller protocol, as defined at | ||
122 | * enum &rc_type | ||
123 | * @name: name of the key map table | ||
124 | * @lock: lock to protect access to this structure | ||
125 | */ | ||
84 | struct rc_map { | 126 | struct rc_map { |
85 | struct rc_map_table *scan; | 127 | struct rc_map_table *scan; |
86 | unsigned int size; /* Max number of entries */ | 128 | unsigned int size; |
87 | unsigned int len; /* Used number of entries */ | 129 | unsigned int len; |
88 | unsigned int alloc; /* Size of *scan in bytes */ | 130 | unsigned int alloc; |
89 | enum rc_type rc_type; | 131 | enum rc_type rc_type; |
90 | const char *name; | 132 | const char *name; |
91 | spinlock_t lock; | 133 | spinlock_t lock; |
92 | }; | 134 | }; |
93 | 135 | ||
136 | /** | ||
137 | * struct rc_map_list - list of the registered &rc_map maps | ||
138 | * | ||
139 | * @list: pointer to struct &list_head | ||
140 | * @map: pointer to struct &rc_map | ||
141 | */ | ||
94 | struct rc_map_list { | 142 | struct rc_map_list { |
95 | struct list_head list; | 143 | struct list_head list; |
96 | struct rc_map map; | 144 | struct rc_map map; |