intel: annotate the intel genx helpers as private
They're used internally and never meant to be part of the API.
Add the drm_private notation, which should resolve that.
v2: (Rodrigo) Add missing include.
v3: (Rodrigo) Keep includes grouped per Eric suggestion.
Cc: Eric Engestrom <eric.engestrom@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Fixes: 4e81d4f9c9
("intel: add generic functions to check PCI ID")
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Acked-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
main
parent
7f7c28dbd4
commit
473e2d2e67
|
@ -44,7 +44,7 @@ static const struct pci_device {
|
||||||
INTEL_SKL_IDS(9),
|
INTEL_SKL_IDS(9),
|
||||||
};
|
};
|
||||||
|
|
||||||
bool intel_is_genx(unsigned int devid, int gen)
|
drm_private bool intel_is_genx(unsigned int devid, int gen)
|
||||||
{
|
{
|
||||||
const struct pci_device *p,
|
const struct pci_device *p,
|
||||||
*pend = pciids + sizeof(pciids) / sizeof(pciids[0]);
|
*pend = pciids + sizeof(pciids) / sizeof(pciids[0]);
|
||||||
|
@ -66,7 +66,7 @@ bool intel_is_genx(unsigned int devid, int gen)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool intel_get_genx(unsigned int devid, int *gen)
|
drm_private bool intel_get_genx(unsigned int devid, int *gen)
|
||||||
{
|
{
|
||||||
const struct pci_device *p,
|
const struct pci_device *p,
|
||||||
*pend = pciids + sizeof(pciids) / sizeof(pciids[0]);
|
*pend = pciids + sizeof(pciids) / sizeof(pciids[0]);
|
||||||
|
|
|
@ -329,9 +329,10 @@
|
||||||
|
|
||||||
/* New platforms use kernel pci ids */
|
/* New platforms use kernel pci ids */
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <libdrm_macros.h>
|
||||||
|
|
||||||
bool intel_is_genx(unsigned int devid, int gen);
|
drm_private bool intel_is_genx(unsigned int devid, int gen);
|
||||||
bool intel_get_genx(unsigned int devid, int *gen);
|
drm_private bool intel_get_genx(unsigned int devid, int *gen);
|
||||||
|
|
||||||
#define IS_GEN9(devid) intel_is_genx(devid, 9)
|
#define IS_GEN9(devid) intel_is_genx(devid, 9)
|
||||||
#define IS_GEN10(devid) intel_is_genx(devid, 10)
|
#define IS_GEN10(devid) intel_is_genx(devid, 10)
|
||||||
|
|
Loading…
Reference in New Issue