View | Details | Raw Unified | Return to bug 63326
Collapse All | Expand All

(-)src/nv-freebsd.h (+2 lines)
Lines 217-223 Link Here
217
} nvidia_softc_t;
217
} nvidia_softc_t;
218
218
219
219
220
#if __FreeBSD_version < 502103
220
#define CDEV_MAJOR      180
221
#define CDEV_MAJOR      180
222
#endif
221
#define CDEV_CTL_MINOR  255
223
#define CDEV_CTL_MINOR  255
222
224
223
extern devclass_t nvidia_devclass;
225
extern devclass_t nvidia_devclass;
(-)src/nvidia_ctl.c (+5 lines)
Lines 43-49 Link Here
43
    .d_ioctl =     nvidia_ctl_ioctl,
43
    .d_ioctl =     nvidia_ctl_ioctl,
44
    .d_poll =      nvidia_ctl_poll,
44
    .d_poll =      nvidia_ctl_poll,
45
    .d_name =      "nvidiactl",
45
    .d_name =      "nvidiactl",
46
#if __FreeBSD_version < 502103
46
    .d_maj =       CDEV_MAJOR,
47
    .d_maj =       CDEV_MAJOR,
47
    .d_flags =     D_TRACKCLOSE
48
    .d_flags =     D_TRACKCLOSE
49
#else
50
    .d_version =   D_VERSION, 
51
    .d_flags =     D_NEEDGIANT
52
#endif 
48
#endif
53
#endif
49
};
54
};
(-)src/nvidia_dev.c (+5 lines)
Lines 45-51 Link Here
45
    .d_poll =      nvidia_dev_poll,
45
    .d_poll =      nvidia_dev_poll,
46
    .d_mmap =      nvidia_dev_mmap,
46
    .d_mmap =      nvidia_dev_mmap,
47
    .d_name =      "nvidia",
47
    .d_name =      "nvidia",
48
#if __FreeBSD_version < 502103
48
    .d_maj =       CDEV_MAJOR,
49
    .d_maj =       CDEV_MAJOR,
49
    .d_flags =     D_MEM|D_TRACKCLOSE
50
    .d_flags =     D_MEM|D_TRACKCLOSE
51
#else
52
    .d_version =   D_VERSION,
53
    .d_flags   =   D_MEM|D_TRACKCLOSE|D_NEEDGIANT
54
#endif
50
#endif
55
#endif
51
};
56
};

Return to bug 63326