Quoting Mika Kuoppala (2018-06-08 14:42:01) > Carve out chipset definitions into new intel_chipset.h > > Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> > Signed-off-by: Mika Kuoppala <mika.kuoppala@xxxxxxxxxxxxxxx> Reviewed-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> 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 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx