Subversion Repositories Kolibri OS

Rev

Rev 4377 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4377 Rev 4501
Line -... Line 704...
-
 
704
 
-
 
705
 
-
 
706
 
-
 
707
 
-
 
708
 
-
 
709
int intel_get_device_id(struct sna *sna)
-
 
710
{
-
 
711
    struct drm_i915_getparam gp;
-
 
712
    int devid = 0;
-
 
713
 
-
 
714
    memset(&gp, 0, sizeof(gp));
-
 
715
    gp.param = I915_PARAM_CHIPSET_ID;
-
 
716
    gp.value = &devid;
Line 704... Line 717...
704
 
717
 
705
 
718
    if (drmIoctl(sna->scrn, DRM_IOCTL_I915_GETPARAM, &gp))
706
 
719
        return 0;
Line 812... Line 825...
812
        return (const struct intel_device_info*)ent->match_data;
825
        return (const struct intel_device_info*)ent->match_data;
813
    else
826
    else
814
        return &intel_generic_info;
827
        return &intel_generic_info;
815
}
828
}
Line 816... Line -...
816
 
-
 
817
int intel_get_device_id(int fd)
-
 
818
{
-
 
819
	struct drm_i915_getparam gp;
-
 
820
	int devid = 0;
-
 
821
 
-
 
822
	memset(&gp, 0, sizeof(gp));
-
 
823
	gp.param = I915_PARAM_CHIPSET_ID;
-
 
824
	gp.value = &devid;
-
 
825
 
-
 
826
	if (drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp))
-
 
827
		return 0;
-
 
828
 
-
 
829
	return devid;
-
 
830
}
-
 
831
 
829
 
832
int drmIoctl(int fd, unsigned long request, void *arg)
830
int drmIoctl(int fd, unsigned long request, void *arg)
833
{
831
{
Line 834... Line 832...
834
    ioctl_t  io;
832
    ioctl_t  io;