Lines 41-55
Link Here
|
41 |
#endif |
41 |
#endif |
42 |
|
42 |
|
43 |
#ifdef __NetBSD__ |
43 |
#ifdef __NetBSD__ |
44 |
@@ -177,7 +174,7 @@ drm_public void drmFree(void *pt) |
|
|
45 |
} |
46 |
|
47 |
/** |
48 |
- * Call ioctl, restarting if it is interupted |
49 |
+ * Call ioctl, restarting if it is interrupted |
50 |
*/ |
51 |
drm_public int |
52 |
drmIoctl(int fd, unsigned long request, void *arg) |
53 |
@@ -220,6 +217,89 @@ drm_public drmHashEntry *drmGetEntry(int fd) |
44 |
@@ -220,6 +217,89 @@ drm_public drmHashEntry *drmGetEntry(int fd) |
54 |
return entry; |
45 |
return entry; |
55 |
} |
46 |
} |
Lines 140-154
Link Here
|
140 |
/** |
131 |
/** |
141 |
* Compare two busid strings |
132 |
* Compare two busid strings |
142 |
* |
133 |
* |
143 |
@@ -287,7 +367,7 @@ static int drmMatchBusID(const char *id1, const char * |
|
|
144 |
* |
145 |
* \internal |
146 |
* Checks for failure. If failure was caused by signal call chown again. |
147 |
- * If any other failure happened then it will output error mesage using |
148 |
+ * If any other failure happened then it will output error message using |
149 |
* drmMsg() call. |
150 |
*/ |
151 |
#if !UDEV |
152 |
@@ -324,8 +404,8 @@ static int chown_check_return(const char *path, uid_t |
134 |
@@ -324,8 +404,8 @@ static int chown_check_return(const char *path, uid_t |
153 |
static int drmOpenDevice(dev_t dev, int minor, int type) |
135 |
static int drmOpenDevice(dev_t dev, int minor, int type) |
154 |
{ |
136 |
{ |
Lines 419-425
Link Here
|
419 |
return DRM_BUS_VIRTIO; |
401 |
return DRM_BUS_VIRTIO; |
420 |
|
402 |
|
421 |
return -EINVAL; |
403 |
return -EINVAL; |
422 |
-#elif defined(__OpenBSD__) |
404 |
-#elif defined(__OpenBSD__) || defined(__DragonFly__) |
423 |
+#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) |
405 |
+#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) |
424 |
return DRM_BUS_PCI; |
406 |
return DRM_BUS_PCI; |
425 |
#else |
407 |
#else |