~ubuntu-branches/ubuntu/precise/libdrm/precise-updates

« back to all changes in this revision

Viewing changes to xf86drm.c

Tags: upstream-2.4.25
ImportĀ upstreamĀ versionĀ 2.4.25

Show diffs side-by-side

added added

removed removed

Lines of Context:
810
810
    return (drmVersionPtr)version;
811
811
}
812
812
 
 
813
int drmGetCap(int fd, uint64_t capability, uint64_t *value)
 
814
{
 
815
        struct drm_get_cap cap = { capability, 0 };
 
816
        int ret;
 
817
 
 
818
        ret = drmIoctl(fd, DRM_IOCTL_GET_CAP, &cap);
 
819
        if (ret)
 
820
                return ret;
 
821
 
 
822
        *value = cap.value;
 
823
        return 0;
 
824
}
813
825
 
814
826
/**
815
827
 * Free the bus ID information.