Exemplo n.º 1
0
static int
i915_attach(device_t kdev)
{

	if (i915_modeset == 1)
		i915_driver_info.driver_features |= DRIVER_MODESET;
	return (-drm_attach_helper(kdev, i915_pciidlist, &i915_driver_info));
}
Exemplo n.º 2
0
static int
radeon_attach(device_t kdev)
{

	if (radeon_modeset == 1) {
		kms_driver.driver_features |= DRIVER_MODESET;
		kms_driver.num_ioctls = radeon_max_kms_ioctl;
#ifdef COMPAT_FREEBSD32
		kms_driver.compat_ioctls = radeon_compat_ioctls;
		kms_driver.num_compat_ioctls = &radeon_num_compat_ioctls;
#endif
		radeon_register_atpx_handler();
	}
	return (-drm_attach_helper(kdev, pciidlist, &kms_driver));
}