[Intel-gfx] [PATCH 1/3] drm/i915: Move PCI IDs into i915 driver

Greg KH greg at kroah.com
Wed Dec 16 21:41:43 CET 2009


On Wed, Dec 16, 2009 at 03:16:15PM -0500, Kristian Høgsberg wrote:
> The old include/drm/drm_pciids.h used to be generated from the libdrm
> git repo.  We don't use that anymore so just use a local list in the
> driver like everybody else.
> 
> Signed-off-by: Kristian Høgsberg <krh at bitplanet.net>
> ---
>  drivers/gpu/drm/i915/i915_drv.c |   42 +++++++++++++++++++++++++++++++++++++-
>  1 files changed, 40 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
> index 2fa2178..fecb0a7 100644
> --- a/drivers/gpu/drm/i915/i915_drv.c
> +++ b/drivers/gpu/drm/i915/i915_drv.c
> @@ -33,7 +33,6 @@
>  #include "i915_drm.h"
>  #include "i915_drv.h"
>  
> -#include "drm_pciids.h"
>  #include <linux/console.h>
>  #include "drm_crtc_helper.h"
>  
> @@ -48,8 +47,47 @@ module_param_named(powersave, i915_powersave, int, 0400);
>  
>  static struct drm_driver driver;
>  
> +#define INTEL_VGA_DEVICE(id) {			\
> +	.class = PCI_CLASS_DISPLAY_VGA << 8,	\
> +	.class_mask = 0xffff00,			\
> +	.vendor = 0x8086,			\

PCI_VENDOR_ID_INTEL?

thanks,

greg k-h



More information about the Intel-gfx mailing list