aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ppbus/ppb_1284.h
diff options
context:
space:
mode:
authorNicolas Souchu <nsouch@FreeBSD.org>1998-09-13 18:26:26 +0000
committerNicolas Souchu <nsouch@FreeBSD.org>1998-09-13 18:26:26 +0000
commit24ef1eb1432b587d5c88706e50485f012ca9dfda (patch)
tree55baf2604f95df00e72b05b617d985e50064ec34 /sys/dev/ppbus/ppb_1284.h
parent15cc1109dc9e5d699178db0ccab8840794a00de7 (diff)
Notes
Diffstat (limited to 'sys/dev/ppbus/ppb_1284.h')
-rw-r--r--sys/dev/ppbus/ppb_1284.h48
1 files changed, 45 insertions, 3 deletions
diff --git a/sys/dev/ppbus/ppb_1284.h b/sys/dev/ppbus/ppb_1284.h
index 980fe680edf2..1cc98d4614a5 100644
--- a/sys/dev/ppbus/ppb_1284.h
+++ b/sys/dev/ppbus/ppb_1284.h
@@ -23,21 +23,63 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ppb_1284.h,v 1.1 1997/08/16 14:05:33 msmith Exp $
+ * $Id: ppb_1284.h,v 1.2 1998/08/03 19:14:31 msmith Exp $
*
*/
#ifndef __1284_H
#define __1284_H
+/*
+ * IEEE1284 signals
+ */
+
+/* host driven signals */
+
+#define nHostClk STROBE
+#define Write STROBE
+
+#define nHostBusy AUTOFEED
+#define nHostAck AUTOFEED
+#define DStrb AUTOFEED
+
+#define nReveseRequest nINIT
+
+#define nActive1284 SELECTIN
+#define AStrb SELECTIN
+
+/* peripheral driven signals */
+
+#define nDataAvail nFAULT
+#define nPeriphRequest nFAULT
+
+#define Xflag SELECT
+
+#define AckDataReq PERROR
+#define nAckReverse PERROR
+
+#define nPtrBusy nBUSY
+#define nPeriphAck nBUSY
+#define Wait nBUSY
+
+#define PtrClk nACK
+#define PeriphClk nACK
+#define Intr nACK
+
+/* request mode values */
#define NIBBLE_1284_NORMAL 0
#define NIBBLE_1284_REQUEST_ID 4
-extern int do_1284_wait(struct ppb_device *, char, char);
+/* how to terminate */
+#define VALID_STATE 0
+#define IMMEDIATE 1
-extern int byte_1284_inbyte(struct ppb_device *, char *);
+extern int do_1284_wait(struct ppb_device *, char, char);
extern int nibble_1284_inbyte(struct ppb_device *, char *);
extern void nibble_1284_sync(struct ppb_device *);
extern int nibble_1284_mode(struct ppb_device *, int);
+extern int ppb_1284_negociate(struct ppb_device *, int);
+extern int ppb_1284_terminate(struct ppb_device *, int how);
+
#endif