summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/ati_pcigart.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/drm/ati_pcigart.c')
-rw-r--r--sys/dev/pci/drm/ati_pcigart.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/ati_pcigart.c b/sys/dev/pci/drm/ati_pcigart.c
index ca50fce5685..ddcb1a7126c 100644
--- a/sys/dev/pci/drm/ati_pcigart.c
+++ b/sys/dev/pci/drm/ati_pcigart.c
@@ -35,7 +35,7 @@
#define ATI_PCIGART_PAGE_SIZE 4096 /* PCI GART page size */
-int drm_ati_pcigart_init(drm_device_t *dev, drm_ati_pcigart_info *gart_info)
+int drm_ati_pcigart_init(drm_device_t *dev, struct drm_ati_pcigart_info *gart_info)
{
unsigned long pages;
u32 *pci_gart = NULL, page_base;
@@ -69,7 +69,7 @@ int drm_ati_pcigart_init(drm_device_t *dev, drm_ati_pcigart_info *gart_info)
#if defined(__FreeBSD__)
KASSERT(PAGE_SIZE >= ATI_PCIGART_PAGE_SIZE, ("page size too small"));
-#elif defined(__NetBSD__) || defined(__OpenBSD__)
+#else
KASSERT(PAGE_SIZE >= ATI_PCIGART_PAGE_SIZE);
#endif
@@ -98,7 +98,7 @@ int drm_ati_pcigart_init(drm_device_t *dev, drm_ati_pcigart_info *gart_info)
return 1;
}
-int drm_ati_pcigart_cleanup(drm_device_t *dev, drm_ati_pcigart_info *gart_info)
+int drm_ati_pcigart_cleanup(drm_device_t *dev, struct drm_ati_pcigart_info *gart_info)
{
if (dev->sg == NULL) {
DRM_ERROR( "no scatter/gather memory!\n" );