summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/r128_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/drm/r128_drv.c')
-rw-r--r--sys/dev/pci/drm/r128_drv.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/r128_drv.c b/sys/dev/pci/drm/r128_drv.c
index a9eef3d089f..c6b32790ade 100644
--- a/sys/dev/pci/drm/r128_drv.c
+++ b/sys/dev/pci/drm/r128_drv.c
@@ -37,12 +37,15 @@
#include "r128_drv.h"
#include "drm_pciids.h"
+void r128_configure(drm_device_t *);
+
/* drv_PCI_IDs comes from drm_pciids.h, generated from drm_pciids.txt. */
static drm_pci_id_list_t r128_pciidlist[] = {
r128_PCI_IDS
};
-static void r128_configure(drm_device_t *dev)
+void
+r128_configure(drm_device_t *dev)
{
dev->driver.buf_priv_size = sizeof(drm_r128_buf_priv_t);
dev->driver.preclose = r128_driver_preclose;
@@ -115,7 +118,10 @@ MODULE_DEPEND(r128, drm, 1, 1, 1);
#elif defined(__NetBSD__) || defined(__OpenBSD__)
-static int
+int r128drm_probe(struct device *, void *, void *);
+void r128drm_attach(struct device *, struct device *, void *);
+
+int
#if defined(__OpenBSD__)
r128drm_probe(struct device *parent, void *match, void *aux)
#else
@@ -125,7 +131,7 @@ r128drm_probe(struct device *parent, struct cfdata *match, void *aux)
return drm_probe((struct pci_attach_args *)aux, r128_pciidlist);
}
-static void
+void
r128drm_attach(struct device *parent, struct device *self, void *aux)
{
struct pci_attach_args *pa = aux;