summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-12-02 20:11:18 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-12-02 20:11:18 +0000
commit01d8603dcdf909e1f98565670db25674ef648a05 (patch)
treeb27659d36c46053c5259cb77f0df8dc65c9fd871 /sys/arch
parent4f72616162a613ffb175d8c08aa007e371d7e8c0 (diff)
no firmware on ramdisks; ok kettenis
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc64/dev/creator.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/creator.c b/sys/arch/sparc64/dev/creator.c
index c194072a32e..fc9363d2d6c 100644
--- a/sys/arch/sparc64/dev/creator.c
+++ b/sys/arch/sparc64/dev/creator.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: creator.c,v 1.43 2009/11/30 23:32:57 kettenis Exp $ */
+/* $OpenBSD: creator.c,v 1.44 2009/12/02 20:11:17 deraadt Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -64,7 +64,9 @@ int creator_setcursor(struct creator_softc *, struct wsdisplay_cursor *);
int creator_updatecursor(struct creator_softc *, u_int);
void creator_curs_enable(struct creator_softc *, u_int);
+#ifndef SMALL_KERNEL
void creator_load_firmware(void *);
+#endif /* SMALL_KERNEL */
void creator_load_sram(struct creator_softc *, u_int32_t *, u_int32_t);
struct wsdisplay_accessops creator_accessops = {
@@ -196,6 +198,7 @@ creator_attach(parent, self, aux)
sc->sc_sunfb.sf_ro.ri_ops.copyrows = creator_ras_copyrows;
creator_ras_init(sc);
+#ifndef SMALL_KERNEL
/*
* Elite3D cards need a firmware for accelerated X to
* work. Console framebuffer acceleration will work
@@ -204,6 +207,7 @@ creator_attach(parent, self, aux)
*/
if (sc->sc_type == FFB_AFB)
mountroothook_establish(creator_load_firmware, sc);
+#endif /* SMALL_KERNEL */
}
if (sc->sc_console)
@@ -734,6 +738,7 @@ creator_ras_setfg(sc, fg)
creator_ras_wait(sc);
}
+#ifndef SMALL_KERNEL
struct creator_firmware {
char fw_ident[8];
u_int32_t fw_size;
@@ -799,6 +804,7 @@ creator_load_firmware(void *vsc)
free(buf, M_DEVBUF);
}
+#endif /* SMALL_KERNEL */
void
creator_load_sram(struct creator_softc *sc, u_int32_t *ucode, u_int32_t size)