mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-15 22:58:05 +02:00
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:
parent
0832f3251c
commit
b1c3e36fe3
2 changed files with 7 additions and 0 deletions
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue