intel/dev: Expose list of known platform names

Acked-by: Iván Briano <ivan.briano@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41007>
This commit is contained in:
Caio Oliveira 2026-03-19 12:17:35 -07:00 committed by Marge Bot
parent 0832f3251c
commit b1c3e36fe3
2 changed files with 7 additions and 0 deletions

View file

@ -83,6 +83,12 @@ static const struct {
{ "nvl", 0xd750 },
};
const char *
intel_platform_name_by_index(unsigned idx)
{
return idx < ARRAY_SIZE(name_map) ? name_map[idx].name : NULL;
}
/**
* Get the PCI ID for the device name.
*

View file

@ -162,6 +162,7 @@ intel_device_info_dual_subslice_id_bound(const struct intel_device_info *devinfo
}
int intel_device_name_to_pci_device_id(const char *name);
const char *intel_platform_name_by_index(unsigned idx);
static inline uint64_t
intel_device_info_timebase_scale(const struct intel_device_info *devinfo,