summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authornsouch <nsouch@FreeBSD.org>1998-09-13 20:44:55 +0000
committernsouch <nsouch@FreeBSD.org>1998-09-13 20:44:55 +0000
commite14acb20b3bda1a82de91af3cf63eeca6095e8b3 (patch)
tree5a84d1315643055cca2fd8e57a0ea48d65d6eb16 /sys
parentd4dfc59a3fb82a908dc326dc5c18ed9aa9c8a7ec (diff)
downloadFreeBSD-src-e14acb20b3bda1a82de91af3cf63eeca6095e8b3.zip
FreeBSD-src-e14acb20b3bda1a82de91af3cf63eeca6095e8b3.tar.gz
unused function removed (byte_1284_inbyte)
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ppbus/ppb_1284.c35
1 files changed, 1 insertions, 34 deletions
diff --git a/sys/dev/ppbus/ppb_1284.c b/sys/dev/ppbus/ppb_1284.c
index e13a69c..56524d1 100644
--- a/sys/dev/ppbus/ppb_1284.c
+++ b/sys/dev/ppbus/ppb_1284.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ppb_1284.c,v 1.4 1998/08/03 19:14:31 msmith Exp $
+ * $Id: ppb_1284.c,v 1.5 1998/09/13 18:26:26 nsouch Exp $
*
*/
@@ -62,39 +62,6 @@ do_1284_wait(struct ppb_device *dev, char mask, char status)
#define nibble2char(s) (((s & ~nACK) >> 3) | (~s & nBUSY) >> 4)
/*
- * byte_1284_inbyte()
- *
- * Read 1 byte in BYTE mode
- */
-int
-byte_1284_inbyte(struct ppb_device *dev, char *buffer)
-{
- int error;
-
- /* notify the peripherial to put data on the lines */
- ppb_wctr(dev, PCD | AUTOFEED | nSTROBE | nINIT | nSELECTIN);
-
- /* wait for valid byte signal */
- if ((error = do_1284_wait(dev, nACK, 0)))
- return (error);
-
- /* fetch data */
- *buffer = ppb_rdtr(dev);
-
- /* indicate that data has been received, not ready for another */
- ppb_wctr(dev, PCD | nAUTOFEED | nSTROBE | nINIT | nSELECTIN);
-
- /* wait peripherial's acknowledgement */
- if ((error = do_1284_wait(dev, nACK, nACK)))
- return (error);
-
- /* acknowledge the peripherial */
- ppb_wctr(dev, PCD | nAUTOFEED | STROBE | nINIT | nSELECTIN);
-
- return (0);
-}
-
-/*
* nibble_1284_inbyte()
*
* Read 1 byte in NIBBLE mode
OpenPOWER on IntegriCloud