diff options
author | 2012-10-11 16:34:30 +0000 | |
---|---|---|
committer | 2012-10-11 16:34:30 +0000 | |
commit | c9f083f902b574549bfaa6d4655c3661eb5a3e17 (patch) | |
tree | 0f801365d6f7a7a2987410d85e4c906f9d0020e4 | |
parent | better integer log2 implementation, checked with what linux is doing (diff) | |
download | wireguard-openbsd-c9f083f902b574549bfaa6d4655c3661eb5a3e17.tar.xz wireguard-openbsd-c9f083f902b574549bfaa6d4655c3661eb5a3e17.zip |
kill a scary unused function
-rw-r--r-- | sys/dev/pci/oce.c | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/sys/dev/pci/oce.c b/sys/dev/pci/oce.c index c0e19e8daba..ff30a756c7e 100644 --- a/sys/dev/pci/oce.c +++ b/sys/dev/pci/oce.c @@ -1,4 +1,4 @@ -/* $OpenBSD: oce.c,v 1.7 2012/10/11 16:33:57 mikeb Exp $ */ +/* $OpenBSD: oce.c,v 1.8 2012/10/11 16:34:30 mikeb Exp $ */ /*- * Copyright (C) 2012 Emulex @@ -81,7 +81,6 @@ #include <dev/pci/ocevar.h> int oce_post(struct oce_softc *sc); -int oce_fw_clean(struct oce_softc *sc); int oce_reset_fun(struct oce_softc *sc); int oce_get_fw_version(struct oce_softc *sc); @@ -470,37 +469,6 @@ oce_reset_fun(struct oce_softc *sc) } /** - * @brief This funtions tells firmware we are - * done with commands. - * @param sc software handle to the device - * @returns 0 on success, ETIMEDOUT on failure - */ -int -oce_fw_clean(struct oce_softc *sc) -{ - struct oce_bmbx *mbx; - uint8_t *ptr; - int ret = 0; - - mbx = OCE_DMAPTR(&sc->bsmbx, struct oce_bmbx); - ptr = (uint8_t *)&mbx->mbx; - - /* Endian Signature */ - *ptr++ = 0xff; - *ptr++ = 0xaa; - *ptr++ = 0xbb; - *ptr++ = 0xff; - *ptr++ = 0xff; - *ptr++ = 0xcc; - *ptr++ = 0xdd; - *ptr = 0xff; - - ret = oce_mbox_dispatch(sc, 2); - - return ret; -} - -/** * @brief Mailbox wait * @param sc software handle to the device * @param tmo_sec timeout in seconds |