diff options
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/uts/common/sys/ecppvar.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/usr/src/uts/common/sys/ecppvar.h b/usr/src/uts/common/sys/ecppvar.h index e17be98731..29b806e3b5 100644 --- a/usr/src/uts/common/sys/ecppvar.h +++ b/usr/src/uts/common/sys/ecppvar.h @@ -27,8 +27,6 @@ #ifndef _SYS_ECPPVAR_H #define _SYS_ECPPVAR_H -#pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/note.h> #ifdef __cplusplus @@ -96,6 +94,15 @@ struct ecpp_hw_bind { char *info; /* info string */ }; +/* ecpp e_busy states */ +typedef enum { + ECPP_IDLE = 1, /* No ongoing transfers */ + ECPP_BUSY = 2, /* Ongoing transfers on the cable */ + ECPP_DATA = 3, /* Not used */ + ECPP_ERR = 4, /* Bad status in Centronics mode */ + ECPP_FLUSH = 5 /* Currently flushing the q */ +} ecpp_busy_t; + /* * ecpp soft state structure */ @@ -104,7 +111,7 @@ struct ecppunit { int instance; /* instance number */ dev_info_t *dip; /* device information */ ddi_iblock_cookie_t ecpp_trap_cookie; /* interrupt cookie */ - boolean_t e_busy; /* ecpp busy flag */ + ecpp_busy_t e_busy; /* ecpp busy flag */ kcondvar_t pport_cv; /* cv to signal idle state */ /* * common SuperIO registers @@ -278,13 +285,6 @@ _NOTE(DATA_READABLE_WITHOUT_LOCK(ecppunit::writeq)) #define SUCCESS 1 #define FAILURE 2 -/* ecpp e_busy states */ -#define ECPP_IDLE 1 /* No ongoing transfers */ -#define ECPP_BUSY 2 /* Ongoing transfers on the cable */ -#define ECPP_DATA 3 /* Not used */ -#define ECPP_ERR 4 /* Bad status in Centronics mode */ -#define ECPP_FLUSH 5 /* Currently flushing the q */ - #define TRUE 1 #define FALSE 0 |