 /*
 |  CIA hardware.  Support for some BSD code
*/

#ifndef _HAVE_CIA_H_
#define _HAVE_CIA_H_


/*
 * bits in CIA-B
 */
#define CIAB_PRA_BUSY	(1<<0)
#define CIAB_PRA_POUT	(1<<1)
#define CIAB_PRA_SEL	(1<<2)
#define CIAB_PRA_DSR	(1<<3)
#define CIAB_PRA_CTS	(1<<4)
#define CIAB_PRA_CD	(1<<5)
#define CIAB_PRA_RTS	(1<<6)
#define CIAB_PRA_DTR	(1<<7)

#define CIAB_PRB_STEP	(1<<0)
#define CIAB_PRB_DIR	(1<<1)
#define CIAB_PRB_SIDE	(1<<2)
#define CIAB_PRB_SEL0	(1<<3)
#define CIAB_PRB_SEL1	(1<<4)
#define CIAB_PRB_SEL2	(1<<5)
#define CIAB_PRB_SEL3	(1<<6)
#define CIAB_PRB_MTR	(1<<7)

/*
 * bits in CIA-A
 */
#define CIAA_PRA_OVL	(1<<0)
#define CIAA_PRA_LED	(1<<1)
#define CIAA_PRA_CHNG	(1<<2)
#define CIAA_PRA_WPRO	(1<<3)
#define CIAA_PRA_TK0	(1<<4)
#define CIAA_PRA_RDY	(1<<5)
#define CIAA_PRA_FIR0	(1<<6)
#define CIAA_PRA_FIR1	(1<<7)

/*
 * ciaa-prb is centronics interface
 */


/*
 * interrupt bits
 */
#define CIA_ICR_TA	(1<<0)
#define CIA_ICR_TB	(1<<1)
#define CIA_ICR_ALARM	(1<<2)
#define CIA_ICR_SP	(1<<3)
#define CIA_ICR_FLG	(1<<4)
#define CIA_ICR_IR_SC	(1<<7)


#endif
