#ifndef __PPBUS_VAR_H
#define __PPBUS_VAR_H
#define PPBUS_COMPATIBLE 0x01
#define PPBUS_NIBBLE 0x02
#define PPBUS_PS2 0x04
#define PPBUS_EPP 0x08
#define PPBUS_ECP 0x10
#define PPBUS_FAST 0x20
#define PPBUS_SPP PPBUS_NIBBLE | PPBUS_PS2
#define PPBUS_BYTE PPBUS_PS2
#define PPBUS_MASK 0x3f
#define PPBUS_OPTIONS_MASK 0xc0
#define PPBUS_IS_EPP(mode) ((mode) & PPBUS_EPP)
#define PPBUS_IN_EPP_MODE(bus) (PPBUS_IS_EPP(ppbus_get_mode(bus)))
#define PPBUS_IN_NIBBLE_MODE(bus) (ppbus_get_mode(bus) & PPBUS_NIBBLE)
#define PPBUS_IN_PS2_MODE(bus) (ppbus_get_mode(bus) & PPBUS_PS2)
#define PPBUS_HAS_INTR 0x01
#define PPBUS_HAS_DMA 0x02
#define PPBUS_HAS_FIFO 0x04
#define PPBUS_HAS_PS2 0x08
#define PPBUS_HAS_ECP 0x10
#define PPBUS_HAS_EPP 0x20
#define PPBUS_DISABLE_IEEE 0x00
#define PPBUS_ENABLE_IEEE 0x01
#define PPBUS_IVAR_DMA 1
#define PPBUS_IVAR_INTR 2
#define PPBUS_IVAR_EPP_PROTO 3
#define PPBUS_IVAR_IEEE 4
#define PPBUS_IVAR_IRQSTAT 5
#define PPBUS_IVAR_DMASTAT 6
#define PPBUS_EPP_1_9 0x0
#define PPBUS_EPP_1_7 0x1
#define PPBUSPRI (PZERO+8)
#endif