diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-04-22 18:04:25 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-04-22 18:04:25 +0000 |
commit | c5297031ff87fe52f263c1df75c7f2be6dc05043 (patch) | |
tree | 3b06652cfc53f6f9e810137abab81d357e047b66 | |
parent | 03a27617020fc2c25fe7f033a9e6c3064fe6bf40 (diff) |
rename a very long driver name to something shorter, and more clear
and while there, fix the interrupt name for vmstat -iz; ok gwk
-rw-r--r-- | share/man/man4/man4.macppc/Makefile | 4 | ||||
-rw-r--r-- | share/man/man4/man4.macppc/macobio.4 | 4 | ||||
-rw-r--r-- | share/man/man4/man4.macppc/xlights.4 (renamed from share/man/man4/man4.macppc/blinkenlights.4) | 8 | ||||
-rw-r--r-- | sys/arch/macppc/conf/GENERIC | 4 | ||||
-rw-r--r-- | sys/arch/macppc/conf/files.macppc | 8 | ||||
-rw-r--r-- | sys/arch/macppc/dev/xlights.c (renamed from sys/arch/macppc/dev/blinkenlights.c) | 68 |
6 files changed, 48 insertions, 48 deletions
diff --git a/share/man/man4/man4.macppc/Makefile b/share/man/man4/man4.macppc/Makefile index e1a94c5435a..63f8afc68f5 100644 --- a/share/man/man4/man4.macppc/Makefile +++ b/share/man/man4/man4.macppc/Makefile @@ -1,9 +1,9 @@ -# $OpenBSD: Makefile,v 1.24 2007/04/21 22:14:26 gwk Exp $ +# $OpenBSD: Makefile,v 1.25 2007/04/22 18:04:24 deraadt Exp $ # from: @(#)Makefile 5.1 (Berkeley) 2/12/91 # Id: Makefile,v 1.4 1995/12/14 05:41:38 deraadt Exp $ MAN= abtn.4 adb.4 aoa.4 apm.4 asms.4 autoconf.4 awacs.4 \ - blinkenlights.4 bm.4 daca.4 esp.4 fcu.4 ht.4 intro.4 \ + xlights.4 bm.4 daca.4 esp.4 fcu.4 ht.4 intro.4 \ kauaiata.4 ki2c.4 macobio.4 mc.4 mediabay.4 mem.4 \ mesh.4 onyx.4 pi2c.4 smu.4 snapper.4 tpms.4 \ tumbler.4 zs.4 diff --git a/share/man/man4/man4.macppc/macobio.4 b/share/man/man4/man4.macppc/macobio.4 index 1ddff3ccca8..0d036bcf88d 100644 --- a/share/man/man4/man4.macppc/macobio.4 +++ b/share/man/man4/man4.macppc/macobio.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: macobio.4,v 1.11 2007/04/21 22:14:26 gwk Exp $ +.\" $OpenBSD: macobio.4,v 1.12 2007/04/22 18:04:24 deraadt Exp $ .\" .\" Copyright (c) 2003 Dale Rahn. .\" All rights reserved. @@ -47,7 +47,7 @@ provides support for the following devices: Apple aoa audio device .It Xr awacs 4 Apple awacs audio device -.It Xr blinkenlights 4 +.It Xr xlights 4 Xserve G4 and G5 front panel LEDs .It Xr bm 4 Apple BMAC Ethernet device diff --git a/share/man/man4/man4.macppc/blinkenlights.4 b/share/man/man4/man4.macppc/xlights.4 index 2abf31eacaf..b68d2aab6c1 100644 --- a/share/man/man4/man4.macppc/blinkenlights.4 +++ b/share/man/man4/man4.macppc/xlights.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: blinkenlights.4,v 1.2 2007/04/21 22:28:49 deraadt Exp $ +.\" $OpenBSD: xlights.4,v 1.1 2007/04/22 18:04:24 deraadt Exp $ .\" .\" Copyright (c) 2007 Gordon Willem Klok <gwk@openbsd.org> .\" @@ -15,13 +15,13 @@ .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .Dd April 21, 2007 -.Dt BLINKENLIGHTS 4 macppc +.Dt BLIGHTS 4 macppc .Os .Sh NAME -.Nm blinkenlights +.Nm blights .Nd Xserve G4 and G5 front panel LEDs .Sh SYNOPSIS -.Cd "blinkenlights* at macobio?" +.Cd "blights* at macobio?" .Sh DESCRIPTION The .Nm diff --git a/sys/arch/macppc/conf/GENERIC b/sys/arch/macppc/conf/GENERIC index 61af66ddae9..b3e94db21e2 100644 --- a/sys/arch/macppc/conf/GENERIC +++ b/sys/arch/macppc/conf/GENERIC @@ -1,4 +1,4 @@ -# $OpenBSD: GENERIC,v 1.163 2007/04/21 15:43:27 gwk Exp $g +# $OpenBSD: GENERIC,v 1.164 2007/04/22 18:04:24 deraadt Exp $g # # For further information on compiling OpenBSD kernels, see the config(8) # man page. @@ -139,7 +139,7 @@ pwdog0 at pci? # Quancom PWDOG1 watchdog timer macintr0 at macobio? # old interrupt controller openpic* at macobio? # openpic interrupt controller bm* at macobio? # BMAC ethernet -blinkenlights* at macobio? # Xserve front panel LEDs +xlights* at macobio? # Xserve front panel LEDs mc* at macobio? # MACE ethernet #esp* at macobio? flags 0x0000ffff # 53c9x SCSI mesh* at macobio? flags 0xffff # MESH SCSI diff --git a/sys/arch/macppc/conf/files.macppc b/sys/arch/macppc/conf/files.macppc index ac402cf67fd..e022eeff41d 100644 --- a/sys/arch/macppc/conf/files.macppc +++ b/sys/arch/macppc/conf/files.macppc @@ -1,4 +1,4 @@ -# $OpenBSD: files.macppc,v 1.51 2007/04/21 15:43:27 gwk Exp $ +# $OpenBSD: files.macppc,v 1.52 2007/04/22 18:04:24 deraadt Exp $ # # macppc-specific configuration info @@ -194,9 +194,9 @@ define i2s file arch/macppc/dev/i2s.c i2s # blinkenlights -device blinkenlights -attach blinkenlights at macobio -file arch/macppc/dev/blinkenlights.c blinkenlights +device xlights +attach xlights at macobio +file arch/macppc/dev/xlights.c xlights # snapper audio device snapper: audio, auconv, mulaw, i2s diff --git a/sys/arch/macppc/dev/blinkenlights.c b/sys/arch/macppc/dev/xlights.c index ff0b68c7aef..9bc340e2506 100644 --- a/sys/arch/macppc/dev/blinkenlights.c +++ b/sys/arch/macppc/dev/xlights.c @@ -1,4 +1,4 @@ -/* $OpenBSD: blinkenlights.c,v 1.2 2007/04/21 15:48:22 gwk Exp $ */ +/* $OpenBSD: xlights.c,v 1.1 2007/04/22 18:04:23 deraadt Exp $ */ /* * Copyright (c) 2007 Gordon Willem Klok <gwk@openbsd,org> * @@ -28,7 +28,7 @@ #include <macppc/dev/dbdma.h> #include <macppc/dev/i2sreg.h> -struct blinkenlights_softc { +struct xlights_softc { struct device sc_dev; int sc_node; int sc_intr; @@ -48,31 +48,31 @@ struct blinkenlights_softc { struct timeout sc_tmo; }; -int blinkenlights_match(struct device *, void *, void *); -void blinkenlights_attach(struct device *, struct device *, void *); -int blinkenlights_intr(void *); -void blinkenlights_startdma(struct blinkenlights_softc *); -void blinkenlights_deferred(void *); -void blinkenlights_theosDOT(void *); -void blinkenlights_timeout(void *); -void blinkenlights_pwm(struct blinkenlights_softc *, u_char *, int); +int xlights_match(struct device *, void *, void *); +void xlights_attach(struct device *, struct device *, void *); +int xlights_intr(void *); +void xlights_startdma(struct xlights_softc *); +void xlights_deferred(void *); +void xlights_theosDOT(void *); +void xlights_timeout(void *); +void xlights_pwm(struct xlights_softc *, u_char *, int); extern void keylargo_fcr_enable(int, u_int32_t); extern void keylargo_fcr_disable(int, u_int32_t); -struct cfattach blinkenlights_ca = { - sizeof(struct blinkenlights_softc), blinkenlights_match, - blinkenlights_attach +struct cfattach xlights_ca = { + sizeof(struct xlights_softc), xlights_match, + xlights_attach }; -struct cfdriver blinkenlights_cd = { - NULL, "blinkenlights", DV_DULL +struct cfdriver xlights_cd = { + NULL, "xlights", DV_DULL }; #define BL_BUFSZ PAGE_SIZE #define BL_DBDMA_CMDS 2 int -blinkenlights_match(struct device *parent, void *arg, void *aux) +xlights_match(struct device *parent, void *arg, void *aux) { struct confargs *ca = aux; int soundbus, soundchip, error; @@ -103,9 +103,9 @@ blinkenlights_match(struct device *parent, void *arg, void *aux) } void -blinkenlights_attach(struct device *parent, struct device *self, void *aux) +xlights_attach(struct device *parent, struct device *self, void *aux) { - struct blinkenlights_softc *sc = (struct blinkenlights_softc *)self; + struct xlights_softc *sc = (struct xlights_softc *)self; struct confargs *ca = aux; int nseg, error, intr[6]; u_int32_t reg[4]; @@ -166,7 +166,7 @@ blinkenlights_attach(struct device *parent, struct device *self, void *aux) printf(": irq %d\n", sc->sc_intr); mac_intr_establish(parent, sc->sc_intr, intr[3] ? IST_LEVEL : - IST_EDGE, IPL_AUDIO, blinkenlights_intr, sc, "blinkenlights"); + IST_EDGE, IPL_AUDIO, xlights_intr, sc, sc->sc_dev.dv_xname); out32rb(sc->sc_reg + I2S_INT, I2S_INT_CLKSTOPPEND); @@ -186,8 +186,8 @@ blinkenlights_attach(struct device *parent, struct device *self, void *aux) out32rb(sc->sc_reg + I2S_FORMAT, CLKSRC_VS); keylargo_fcr_enable(I2SClockOffset, I2S0CLKEN); - kthread_create_deferred(blinkenlights_deferred, sc); - timeout_set(&sc->sc_tmo, blinkenlights_timeout, sc); + kthread_create_deferred(xlights_deferred, sc); + timeout_set(&sc->sc_tmo, xlights_timeout, sc); return; nodmaload: bus_dmamap_destroy(sc->sc_dmat, sc->sc_bufmap); @@ -204,15 +204,15 @@ nodma: } void -blinkenlights_deferred(void *v) +xlights_deferred(void *v) { - kthread_create(blinkenlights_theosDOT, v, NULL, "blinkenlights"); + kthread_create(xlights_theosDOT, v, NULL, "xlights"); } void -blinkenlights_theosDOT(void *v) +xlights_theosDOT(void *v) { - struct blinkenlights_softc *sc = (struct blinkenlights_softc *)v; + struct xlights_softc *sc = (struct xlights_softc *)v; u_char leds[16]; int offset, i, s, speed; @@ -228,7 +228,7 @@ blinkenlights_theosDOT(void *v) for (i = offset; i >= s; i--) leds[i] = 0xff / (offset + 1 - s); - blinkenlights_pwm(sc, leds, speed); + xlights_pwm(sc, leds, speed); bzero(leds, sizeof(leds)); } for (offset = 7; offset >= 0; offset--) { @@ -240,14 +240,14 @@ blinkenlights_theosDOT(void *v) } for (i = offset; i <= s; i++) leds[i] = 0xff / (offset + 1) - s; - blinkenlights_pwm(sc, leds, speed); + xlights_pwm(sc, leds, speed); bzero(leds, sizeof(leds)); } } } void -blinkenlights_pwm(struct blinkenlights_softc *sc, u_char *leds, int msecs) +xlights_pwm(struct xlights_softc *sc, u_char *leds, int msecs) { uint32_t *p; int s, l, k, nsamp; @@ -273,7 +273,7 @@ blinkenlights_pwm(struct blinkenlights_softc *sc, u_char *leds, int msecs) k++; sc->sc_bufpos++; } else { - blinkenlights_startdma(sc); + xlights_startdma(sc); while (sc->sc_dmasts) tsleep(sc->sc_buf, PWAIT, "blinken", 0); sc->sc_bufpos = p = sc->sc_buf; @@ -282,7 +282,7 @@ blinkenlights_pwm(struct blinkenlights_softc *sc, u_char *leds, int msecs) } void -blinkenlights_startdma(struct blinkenlights_softc *sc) +xlights_startdma(struct xlights_softc *sc) { dbdma_command_t *cmdp = sc->sc_dmacmd; @@ -302,9 +302,9 @@ blinkenlights_startdma(struct blinkenlights_softc *sc) } void -blinkenlights_timeout(void *v) +xlights_timeout(void *v) { - struct blinkenlights_softc *sc = (struct blinkenlights_softc *)v; + struct xlights_softc *sc = (struct xlights_softc *)v; dbdma_reset(sc->sc_dma); timeout_del(&sc->sc_tmo); @@ -313,9 +313,9 @@ blinkenlights_timeout(void *v) } int -blinkenlights_intr(void *v) +xlights_intr(void *v) { - struct blinkenlights_softc *sc = (struct blinkenlights_softc *)v; + struct xlights_softc *sc = (struct xlights_softc *)v; int status; dbdma_command_t *cmd; |