| @@ -1494,6 +1494,15 @@ static int do_vchiq_entry(const char *filename, void *symval, char *alias) · 1493 unmodified lines |
| 1494 | return 1; | 1494 | return 1; |
| 1495 | } | 1495 | } |
| 1496 | | 1496 | |
| | 1497 | /* Looks like: coreboot:tN */ |
| | 1498 | static int do_coreboot_entry(const char *filename, void *symval, char *alias) |
| | 1499 | { |
| | 1500 | DEF_FIELD(symval, coreboot_device_id, tag); |
| | 1501 | sprintf(alias, "coreboot:t%08X", tag); |
| | 1502 | |
| | 1503 | return 1; |
| | 1504 | } |
| | 1505 | |
| 1497 | /* Does namelen bytes of name exactly match the symbol? */ | 1506 | /* Does namelen bytes of name exactly match the symbol? */ |
| 1498 | static bool sym_is(const char *name, unsigned namelen, const char *symbol) | 1507 | static bool sym_is(const char *name, unsigned namelen, const char *symbol) |
| 1499 | { | 1508 | { |
| @@ -1575,6 +1584,7 @@ static const struct devtable devtable[] = { · 75 unmodified lines |
| 1575 | {"ishtp", SIZE_ishtp_device_id, do_ishtp_entry}, | 1584 | {"ishtp", SIZE_ishtp_device_id, do_ishtp_entry}, |
| 1576 | {"cdx", SIZE_cdx_device_id, do_cdx_entry}, | 1585 | {"cdx", SIZE_cdx_device_id, do_cdx_entry}, |
| 1577 | {"vchiq", SIZE_vchiq_device_id, do_vchiq_entry}, | 1586 | {"vchiq", SIZE_vchiq_device_id, do_vchiq_entry}, |
| | 1587 | {"coreboot", SIZE_coreboot_device_id, do_coreboot_entry}, |
| 1578 | }; | 1588 | }; |
| 1579 | | 1589 | |
| 1580 | /* Create MODULE_ALIAS() statements. | 1590 | /* Create MODULE_ALIAS() statements. |