diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-06-29 08:28:58 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-06-30 23:06:47 +0100 |
commit | d308bb082d429eb25dfd2844bcbafe722660a1ff (patch) | |
tree | c0524698b1a41ade66bac888427e87cc1335becd /lib/intel_chipset.c | |
parent | 0404de4f223c108cf181f6c9a26fdc84fc608fc5 (diff) |
lib: Start weaning off defunct intel_chipset.h
Several years ago we made the plan of only having one canonical source
for i915_pciids.h, the kernel and everyone importing their definitions
from that. For consistency, we style the intel_device_info after the
kernel, most notably using a generation mask and a per-codename bitfield.
This first step converts looking up the generation for a devid tree from
a massive if(devid)-chain to a (cached) table lookup.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/intel_chipset.c')
-rw-r--r-- | lib/intel_chipset.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/intel_chipset.c b/lib/intel_chipset.c index 56746b00..777dfa73 100644 --- a/lib/intel_chipset.c +++ b/lib/intel_chipset.c @@ -141,37 +141,6 @@ intel_get_drm_devid(int fd) } /** - * intel_gen: - * @devid: pci device id - * - * Computes the Intel GFX generation for the give device id. - * - * Returns: - * The GFX generation on successful lookup, -1 on failure. - */ -int intel_gen(uint32_t devid) -{ - if (IS_GEN2(devid)) - return 2; - if (IS_GEN3(devid)) - return 3; - if (IS_GEN4(devid)) - return 4; - if (IS_GEN5(devid)) - return 5; - if (IS_GEN6(devid)) - return 6; - if (IS_GEN7(devid)) - return 7; - if (IS_GEN8(devid)) - return 8; - if (IS_GEN9(devid)) - return 9; - - return -1; -} - -/** * intel_check_pch: * * Detects the PCH chipset type of the running systems and fills in the results |