Specifications

17
#define t13 0xC0
#define T13(value) (t13 | value)
#define HIER *(unsigned char *) (BASE + 0x4D)
#define E_PMTwEOS 0x01
#define E_NTSETUP 0x10
#define E_DGB 0x40
#define E_DGA 0x80
#define MISC *(unsigned char *) (BASE + 0x55)
#define E_NOTS 0x01
#define E_NOAS 0x02
#define E_WRAP 0x04
#define E_SLOW 0x08
#define E_HSE 0x10
#define CSR *(unsigned char *) (BASE + 0x5D)
#define KEYREG *(unsigned char *) (BASE + 0x5D)
#define FIFO *(unsigned short int *) (BASE + 0x60)
#define FIFOB *(unsigned char *) (BASE + 0x60)
#define FIFOA *(unsigned char *) (BASE + 0x65)
#define CCR *(unsigned char *) (BASE + 0x68)
#define SASR *(unsigned char *) (BASE + 0x6D)
#define B_SH1B (SASR & 0x01)
#define B_SH1A (SASR & 0x02)
#define B_ACRDY (SASR & 0x04)
#define B_ADHS (SASR & 0x08)
#define B_ANHS2 (SASR & 0x10)
#define B_ANHS1 (SASR & 0x20)
#define B_AEHS (SASR & 0x40)
#define B_NBA1 (SASR & 0x80)
#define DCR *(unsigned char *) (BASE + 0x6D)
#define STS2 *(unsigned char *) (BASE + 0x70)
#define B_BEFN (STS2 & 0x01)
#define B_BFFN (STS2 & 0x02)
#define B_AEFN (STS2 & 0x04)
#define B_AFFN (STS2 & 0x08)
#define B_168N (STS2 & 0x40)
#define CMDR *(unsigned char *) (BASE + 0x70)
#define DiSysCon 0x02
#define EnSysCon 0x03
#define GO 0x04
#define STOP 0x08
#define RstFIFO 0x10
#define SftRst 0x22
#define TIMER *(unsigned char *) (BASE + 0x78)
#define BSR *(unsigned char *) (BASE + 0x7D)
#define B_REN (BSR & 0x01)
#define B_IFC (BSR & 0x02)
#define B_bsrSRQ (BSR & 0x04)
#define B_EOI (BSR & 0x08)
#define B_NRFD (BSR & 0x10)
#define B_NDAC (BSR & 0x20)










