diff options
Diffstat (limited to 'scripts/mod')
-rw-r--r-- | scripts/mod/devicetable-offsets.c | 3 | ||||
-rw-r--r-- | scripts/mod/file2alias.c | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/scripts/mod/devicetable-offsets.c b/scripts/mod/devicetable-offsets.c index b45260bfeaa0..e66d4d258e1a 100644 --- a/scripts/mod/devicetable-offsets.c +++ b/scripts/mod/devicetable-offsets.c | |||
@@ -174,5 +174,8 @@ int main(void) | |||
174 | DEVID_FIELD(x86_cpu_id, model); | 174 | DEVID_FIELD(x86_cpu_id, model); |
175 | DEVID_FIELD(x86_cpu_id, vendor); | 175 | DEVID_FIELD(x86_cpu_id, vendor); |
176 | 176 | ||
177 | DEVID(mei_cl_device_id); | ||
178 | DEVID_FIELD(mei_cl_device_id, name); | ||
179 | |||
177 | return 0; | 180 | return 0; |
178 | } | 181 | } |
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 771ac17f635d..45f9a3377dcd 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
@@ -1133,6 +1133,18 @@ static int do_x86cpu_entry(const char *filename, void *symval, | |||
1133 | } | 1133 | } |
1134 | ADD_TO_DEVTABLE("x86cpu", x86_cpu_id, do_x86cpu_entry); | 1134 | ADD_TO_DEVTABLE("x86cpu", x86_cpu_id, do_x86cpu_entry); |
1135 | 1135 | ||
1136 | /* Looks like: mei:S */ | ||
1137 | static int do_mei_entry(const char *filename, void *symval, | ||
1138 | char *alias) | ||
1139 | { | ||
1140 | DEF_FIELD_ADDR(symval, mei_cl_device_id, name); | ||
1141 | |||
1142 | sprintf(alias, MEI_CL_MODULE_PREFIX "%s", *name); | ||
1143 | |||
1144 | return 1; | ||
1145 | } | ||
1146 | ADD_TO_DEVTABLE("mei", mei_cl_device_id, do_mei_entry); | ||
1147 | |||
1136 | /* Does namelen bytes of name exactly match the symbol? */ | 1148 | /* Does namelen bytes of name exactly match the symbol? */ |
1137 | static bool sym_is(const char *name, unsigned namelen, const char *symbol) | 1149 | static bool sym_is(const char *name, unsigned namelen, const char *symbol) |
1138 | { | 1150 | { |