[Intel-gfx] [PATCH 1/5] drm/i915: Move chipset definitions to intel_chipset.h
Chris Wilson
chris at chris-wilson.co.uk
Fri Jun 8 13:56:12 UTC 2018
Quoting Mika Kuoppala (2018-06-08 14:42:01)
> Carve out chipset definitions into new intel_chipset.h
>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Signed-off-by: Mika Kuoppala <mika.kuoppala at linux.intel.com>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
Please check with Jani and Rodrigo that this fits in with our new/old
platform strategy.
> diff --git a/drivers/gpu/drm/i915/intel_chipset.h b/drivers/gpu/drm/i915/intel_chipset.h
> new file mode 100644
> index 000000000000..0e71571fb4c1
> --- /dev/null
> +++ b/drivers/gpu/drm/i915/intel_chipset.h
> @@ -0,0 +1,202 @@
> +/* SPDX-License-Identifier: MIT
> + *
> + * Copyright © 2018 Intel Corporation
> + */
> +
> +#ifndef _INTEL_CHIPSET_H_
> +#define _INTEL_CHIPSET_H_
> +
> +#define INTEL_GEN(dev_priv) ((dev_priv)->info.gen)
> +#define INTEL_DEVID(dev_priv) ((dev_priv)->info.device_id)
dev_priv. Will make this much harder to become standalone. Oh well.
-Chris
More information about the Intel-gfx
mailing list