diff --git a/sys/dev/pci/radeonfb.c b/sys/dev/pci/radeonfb.c index 232c256b43e0..869615b0c4e2 100644 --- a/sys/dev/pci/radeonfb.c +++ b/sys/dev/pci/radeonfb.c @@ -1,4 +1,4 @@ -/* $NetBSD: radeonfb.c,v 1.13 2007/03/21 20:48:07 macallan Exp $ */ +/* $NetBSD: radeonfb.c,v 1.14 2007/03/21 20:54:30 macallan Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -70,7 +70,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.13 2007/03/21 20:48:07 macallan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.14 2007/03/21 20:54:30 macallan Exp $"); #define RADEONFB_DEFAULT_DEPTH 32 @@ -96,6 +96,7 @@ __KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.13 2007/03/21 20:48:07 macallan Exp $ #include #include #include +#include "opt_radeonfb.h" static int radeonfb_match(struct device *, struct cfdata *, void *); static void radeonfb_attach(struct device *, struct device *, void *); @@ -174,6 +175,8 @@ static void radeonfb_pickres(struct radeonfb_display *, uint16_t *, static const struct videomode *radeonfb_port_mode(struct radeonfb_softc *, struct radeonfb_port *, int, int); +static int radeonfb_drm_print(void *, const char *); + #ifdef RADEON_DEBUG int radeon_debug = 1; #define DPRINTF(x) \ @@ -875,6 +878,8 @@ radeonfb_attach(struct device *parent, struct device *dev, void *aux) radeonfb_lvds_callout, dp); } + config_found_ia(dev, "drm", aux, radeonfb_drm_print); + return; error: @@ -888,6 +893,14 @@ error: bus_space_unmap(sc->sc_memt, sc->sc_memh, sc->sc_memsz); } +static int +radeonfb_drm_print(void *aux, const char *pnp) +{ + if (pnp) + aprint_normal("direct rendering for %s", pnp); + return (UNSUPP); +} + int radeonfb_ioctl(void *v, void *vs, unsigned long cmd, void *d, int flag, struct lwp *l)