diff options
author | 2007-01-03 14:58:33 +0000 | |
---|---|---|
committer | 2007-01-03 14:58:33 +0000 | |
commit | 1597bc59bc67207146d5aeb3196c246d6af6e22c (patch) | |
tree | 96a3ec5afac59eb331b950f42726d561aa1fba9a | |
parent | bring back cvs_yesno() as is it going to be used pretty soon now. (diff) | |
download | wireguard-openbsd-1597bc59bc67207146d5aeb3196c246d6af6e22c.tar.xz wireguard-openbsd-1597bc59bc67207146d5aeb3196c246d6af6e22c.zip |
Rename bcw_shm_write_4() to bcw_shm_ctl_word(). We need the original
name space for the new routines.
-rw-r--r-- | sys/dev/ic/bcw.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/ic/bcw.c b/sys/dev/ic/bcw.c index 8b94978ac4e..fe9c3dddc03 100644 --- a/sys/dev/ic/bcw.c +++ b/sys/dev/ic/bcw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcw.c,v 1.23 2007/01/03 10:41:04 mglocker Exp $ */ +/* $OpenBSD: bcw.c,v 1.24 2007/01/03 14:58:33 mglocker Exp $ */ /* * Copyright (c) 2006 Jon Simola <jsimola@gmail.com> @@ -63,7 +63,7 @@ #include <uvm/uvm_extern.h> -void bcw_shm_write_4(struct bcw_softc *, uint16_t, uint16_t); +void bcw_shm_ctl_word(struct bcw_softc *, uint16_t, uint16_t); void bcw_reset(struct bcw_softc *); int bcw_init(struct ifnet *); @@ -107,7 +107,7 @@ struct cfdriver bcw_cd = { }; void -bcw_shm_write_4(struct bcw_softc *sc, uint16_t routing, uint16_t offset) +bcw_shm_ctl_word(struct bcw_softc *sc, uint16_t routing, uint16_t offset) { uint32_t control; @@ -2223,7 +2223,7 @@ bcw_load_firmware(struct bcw_softc *sc) /* upload microcode */ data = (uint32_t *)ucode; len = size_ucode / sizeof(uint32_t); - bcw_shm_write_4(sc, BCW_SHM_CONTROL_MCODE, 0); + bcw_shm_ctl_word(sc, BCW_SHM_CONTROL_MCODE, 0); for (i = 0; i < len; i++) { BCW_WRITE(sc, BCW_SHM_DATA, betoh32(data[i])); delay(10); @@ -2234,9 +2234,9 @@ bcw_load_firmware(struct bcw_softc *sc) /* upload pcm */ data = (uint32_t *)pcm; len = size_pcm / sizeof(uint32_t); - bcw_shm_write_4(sc, BCW_SHM_CONTROL_PCM, 0x01ea); + bcw_shm_ctl_word(sc, BCW_SHM_CONTROL_PCM, 0x01ea); BCW_WRITE(sc, BCW_SHM_DATA, 0x00004000); - bcw_shm_write_4(sc, BCW_SHM_CONTROL_PCM, 0x01eb); + bcw_shm_ctl_word(sc, BCW_SHM_CONTROL_PCM, 0x01eb); for (i = 0; i < len; i++) { BCW_WRITE(sc, BCW_SHM_DATA, betoh32(data[i])); delay(10); |