diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2007-12-16 01:02:32 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2007-12-16 01:02:32 +0000 |
commit | 7953511a19ed4b49680282685824609caa029b7a (patch) | |
tree | 070aefd5763bc0b5edf037def017b494103160a3 /sys/dev/pci/drm/radeon_drv.c | |
parent | 6fe7d8adc29f6dff9bed413ccd3a0294f421d5fd (diff) |
destatic the static functions, they only make debugging harder.
While i'm here:
remove a couple of debug printfs that shouldn't have gone in anyway.
trowel on some KNF (I really need to get around to sending some of this upstream).
remove some netbsd specific code that netbsd doesn't have anymore.
ok tedu.
Diffstat (limited to 'sys/dev/pci/drm/radeon_drv.c')
-rw-r--r-- | sys/dev/pci/drm/radeon_drv.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/radeon_drv.c b/sys/dev/pci/drm/radeon_drv.c index 344493bf952..2ccd48818bc 100644 --- a/sys/dev/pci/drm/radeon_drv.c +++ b/sys/dev/pci/drm/radeon_drv.c @@ -35,6 +35,8 @@ #include "radeon_drv.h" #include "drm_pciids.h" +void radeon_configure(drm_device_t *); + int radeon_no_wb; /* drv_PCI_IDs comes from drm_pciids.h, generated from drm_pciids.txt. */ @@ -42,7 +44,8 @@ static drm_pci_id_list_t radeon_pciidlist[] = { radeon_PCI_IDS }; -static void radeon_configure(drm_device_t *dev) +void +radeon_configure(drm_device_t *dev) { dev->driver.buf_priv_size = sizeof(drm_radeon_buf_priv_t); dev->driver.load = radeon_driver_load; @@ -120,7 +123,10 @@ MODULE_DEPEND(radeon, drm, 1, 1, 1); #elif defined(__NetBSD__) || defined(__OpenBSD__) -static int +int radeondrm_probe(struct device *, void *, void *); +void radeondrm_attach(struct device *, struct device *, void *); + +int #if defined(__OpenBSD__) radeondrm_probe(struct device *parent, void *match, void *aux) #else @@ -130,7 +136,7 @@ radeondrm_probe(struct device *parent, struct cfdata *match, void *aux) return drm_probe((struct pci_attach_args *)aux, radeon_pciidlist); } -static void +void radeondrm_attach(struct device *parent, struct device *self, void *aux) { struct pci_attach_args *pa = aux; |