diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2012-10-11 16:34:31 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2012-10-11 16:34:31 +0000 |
commit | e479fe3484f07825777c638f0866de6cbace5f8f (patch) | |
tree | 143e3c97362d4200252d0591365b8d35a7d72129 /sys/dev | |
parent | 1739abc58ad6a43d78926ce243c5e3c34a94fcc7 (diff) |
kill a scary unused function
Diffstat (limited to 'sys/dev')
-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 |