#ifndef _HP82335_H
#define _HP82335_H
#include "tms9914.h"
#include "gpibP.h"
struct hp82335_priv {
struct tms9914_priv tms9914_priv;
unsigned int irq;
unsigned long raw_iobase;
};
static const int hp82335_rom_size = 0x2000;
static const int hp82335_upper_iomem_size = 0x2000;
enum hp_read_regs {
HPREG_CSR = 0x17f8,
HPREG_STATUS = 0x1ffc,
};
enum hp_write_regs {
HPREG_INTR_CLEAR = 0x17f7,
HPREG_CCR = HPREG_CSR,
};
enum ccr_bits {
DMA_ENABLE = (1 << 0),
DMA_CHAN_SELECT = (1 << 1),
INTR_ENABLE = (1 << 2),
SYS_DISABLE = (1 << 3),
};
enum csr_bits {
SWITCH6 = (1 << 0),
SWITCH5 = (1 << 1),
SYS_CONTROLLER = (1 << 2),
DMA_ENABLE_STATUS = (1 << 4),
DMA_CHAN_STATUS = (1 << 5),
INTR_ENABLE_STATUS = (1 << 6),
INTR_PENDING = (1 << 7),
};
#endif