Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Variables
atarihw.h File Reference
#include <linux/types.h>
#include <asm/bootinfo.h>
#include <asm/raw_io.h>
#include <linux/mm.h>
#include <asm/cacheflush.h>

Go to the source code of this file.

Data Structures

struct  atari_hw_present
 
struct  SHIFTER
 
struct  SHIFTER_F030
 
struct  SHIFTER_TT
 
struct  VIDEL
 
struct  DMA_WD
 
struct  SOUND_YM
 
struct  TT_DMA
 
struct  TT_5380
 
struct  MATRIX
 
struct  CODEC
 
struct  BLITTER
 
struct  SCC
 
struct  VIDEL_PALETTE
 
struct  DSP56K_HOST_INTERFACE
 
struct  MFP
 
struct  TT_SCU
 
struct  TT_RTC
 
struct  ACIA
 
struct  TT_DMASND
 
struct  TT_MICROWIRE
 
struct  MSTE_RTC
 

Macros

#define MACH_IS_ST   ((atari_mch_cookie >> 16) == ATARI_MCH_ST)
 
#define MACH_IS_STE
 
#define MACH_IS_MSTE
 
#define MACH_IS_TT   ((atari_mch_cookie >> 16) == ATARI_MCH_TT)
 
#define MACH_IS_FALCON   ((atari_mch_cookie >> 16) == ATARI_MCH_FALCON)
 
#define MACH_IS_MEDUSA   (atari_mch_type == ATARI_MACH_MEDUSA)
 
#define MACH_IS_AB40   (atari_mch_type == ATARI_MACH_AB40)
 
#define ATARI_SWITCH_IKBD   0x01
 
#define ATARI_SWITCH_MIDI   0x02
 
#define ATARI_SWITCH_SND6   0x04
 
#define ATARI_SWITCH_SND7   0x08
 
#define ATARI_SWITCH_OVSC_SHIFT   16
 
#define ATARI_SWITCH_OVSC_IKBD   (ATARI_SWITCH_IKBD << ATARI_SWITCH_OVSC_SHIFT)
 
#define ATARI_SWITCH_OVSC_MIDI   (ATARI_SWITCH_MIDI << ATARI_SWITCH_OVSC_SHIFT)
 
#define ATARI_SWITCH_OVSC_SND6   (ATARI_SWITCH_SND6 << ATARI_SWITCH_OVSC_SHIFT)
 
#define ATARI_SWITCH_OVSC_SND7   (ATARI_SWITCH_SND7 << ATARI_SWITCH_OVSC_SHIFT)
 
#define ATARI_SWITCH_OVSC_MASK   0xffff0000
 
#define ATARIHW_DECLARE(name)   unsigned name : 1
 
#define ATARIHW_SET(name)   (atari_hw_present.name = 1)
 
#define ATARIHW_PRESENT(name)   (atari_hw_present.name)
 
#define MFPDELAY()   __asm__ __volatile__ ( "tstb %0" : : "m" (st_mfp.par_dt_reg) : "cc" );
 
#define atari_readb   raw_inb
 
#define atari_writeb   raw_outb
 
#define atari_inb_p   raw_inb
 
#define atari_outb_p   raw_outb
 
#define ST_LOW   0
 
#define ST_MID   1
 
#define ST_HIGH   2
 
#define TT_LOW   7
 
#define TT_MID   4
 
#define TT_HIGH   6
 
#define SHF_BAS   (0xffff8200)
 
#define shifter   ((*(volatile struct SHIFTER *)SHF_BAS))
 
#define SHF_FBAS   (0xffff820e)
 
#define shifter_f030   ((*(volatile struct SHIFTER_F030 *)SHF_FBAS))
 
#define SHF_TBAS   (0xffff8200)
 
#define shifter_tt   ((*(volatile struct SHIFTER_TT *)SHF_TBAS))
 
#define TT_SHIFTER_STLOW   0x0000
 
#define TT_SHIFTER_STMID   0x0100
 
#define TT_SHIFTER_STHIGH   0x0200
 
#define TT_SHIFTER_TTLOW   0x0700
 
#define TT_SHIFTER_TTMID   0x0400
 
#define TT_SHIFTER_TTHIGH   0x0600
 
#define TT_SHIFTER_MODEMASK   0x0700
 
#define TT_SHIFTER_NUMMODE   0x0008
 
#define TT_SHIFTER_PALETTE_MASK   0x000f
 
#define TT_SHIFTER_GRAYMODE   0x1000
 
#define TT_PALETTE_BASE   (0xffff8400)
 
#define tt_palette   ((volatile u_short *)TT_PALETTE_BASE)
 
#define TT_PALETTE_RED_MASK   0x0f00
 
#define TT_PALETTE_GREEN_MASK   0x00f0
 
#define TT_PALETTE_BLUE_MASK   0x000f
 
#define f030_col   ((u_long *) 0xffff9800)
 
#define f030_xreg   ((u_short*) 0xffff8282)
 
#define f030_yreg   ((u_short*) 0xffff82a2)
 
#define f030_creg   ((u_short*) 0xffff82c0)
 
#define f030_sreg   ((u_short*) 0xffff8260)
 
#define f030_mreg   ((u_short*) 0xffff820a)
 
#define f030_linewidth   ((u_short*) 0xffff820e)
 
#define f030_hscroll   ((u_char*) 0xffff8265)
 
#define VIDEL_BAS   (0xffff8260)
 
#define videl   ((*(volatile struct VIDEL *)VIDEL_BAS))
 
#define FWD_BAS   (0xffff8604)
 
#define dma_wd   ((*(volatile struct DMA_WD *)FWD_BAS))
 
#define st_dma   dma_wd
 
#define st_dma_ext_dmahi   (*((volatile unsigned short *)0xffff8608))
 
#define YM_BAS   (0xffff8800)
 
#define sound_ym   ((*(volatile struct SOUND_YM *)YM_BAS))
 
#define TT_SCSI_DMA_BAS   (0xffff8700)
 
#define tt_scsi_dma   ((*(volatile struct TT_DMA *)TT_SCSI_DMA_BAS))
 
#define TT_5380_BAS   (0xffff8781)
 
#define tt_scsi   ((*(volatile struct TT_5380 *)TT_5380_BAS))
 
#define tt_scsi_regp   ((volatile char *)TT_5380_BAS)
 
#define MATRIX_BASE   (0xffff8930)
 
#define falcon_matrix   (*(volatile struct MATRIX *)MATRIX_BASE)
 
#define CODEC_BASE   (0xffff8936)
 
#define CODEC_SOURCE_ADC   1
 
#define CODEC_SOURCE_MATRIX   2
 
#define ADC_SOURCE_RIGHT_PSG   1
 
#define ADC_SOURCE_LEFT_PSG   2
 
#define CODEC_GAIN_RIGHT   0x0f
 
#define CODEC_GAIN_LEFT   0xf0
 
#define CODEC_ATTENUATION_RIGHT   0x0f
 
#define CODEC_ATTENUATION_LEFT   0xf0
 
#define CODEC_OVERFLOW_RIGHT   1
 
#define CODEC_OVERFLOW_LEFT   2
 
#define CODEC_GPIO_IN   0
 
#define CODEC_GPIO_OUT   1
 
#define falcon_codec   (*(volatile struct CODEC *)CODEC_BASE)
 
#define BLT_BAS   (0xffff8a00)
 
#define blitter   ((*(volatile struct BLITTER *)BLT_BAS))
 
#define SCC_BAS   (0xffff8c81)
 
#define atari_scc   ((*(volatile struct SCC*)SCC_BAS))
 
#define st_escc   ((*(volatile struct SCC*)0xfffffa31))
 
#define st_escc_dsr   ((*(volatile char *)0xfffffa39))
 
#define TT_SCC_DMA_BAS   (0xffff8c00)
 
#define tt_scc_dma   ((*(volatile struct TT_DMA *)TT_SCC_DMA_BAS))
 
#define FPL_BAS   (0xffff9800)
 
#define videl_palette   ((*(volatile struct VIDEL_PALETTE*)FPL_BAS))
 
#define DSP56K_HOST_INTERFACE_BASE   (0xffffa200)
 
#define DSP56K_ICR_RREQ   0x01
 
#define DSP56K_ICR_TREQ   0x02
 
#define DSP56K_ICR_HF0   0x08
 
#define DSP56K_ICR_HF1   0x10
 
#define DSP56K_ICR_HM0   0x20
 
#define DSP56K_ICR_HM1   0x40
 
#define DSP56K_ICR_INIT   0x80
 
#define DSP56K_CVR_HV_MASK   0x1f
 
#define DSP56K_CVR_HC   0x80
 
#define DSP56K_ISR_RXDF   0x01
 
#define DSP56K_ISR_TXDE   0x02
 
#define DSP56K_ISR_TRDY   0x04
 
#define DSP56K_ISR_HF2   0x08
 
#define DSP56K_ISR_HF3   0x10
 
#define DSP56K_ISR_DMA   0x40
 
#define DSP56K_ISR_HREQ   0x80
 
#define dsp56k_host_interface   ((*(volatile struct DSP56K_HOST_INTERFACE *)DSP56K_HOST_INTERFACE_BASE))
 
#define MFP_BAS   (0xfffffa01)
 
#define st_mfp   ((*(volatile struct MFP*)MFP_BAS))
 
#define TT_MFP_BAS   (0xfffffa81)
 
#define tt_mfp   ((*(volatile struct MFP*)TT_MFP_BAS))
 
#define TT_SCU_BAS   (0xffff8e01)
 
#define tt_scu   ((*(volatile struct TT_SCU *)TT_SCU_BAS))
 
#define TT_RTC_BAS   (0xffff8961)
 
#define tt_rtc   ((*(volatile struct TT_RTC *)TT_RTC_BAS))
 
#define ACIA_DIV1   0
 
#define ACIA_DIV16   1
 
#define ACIA_DIV64   2
 
#define ACIA_RESET   3
 
#define ACIA_D7E2S   (0<<2) /* 7 data, even parity, 2 stop */
 
#define ACIA_D7O2S   (1<<2) /* 7 data, odd parity, 2 stop */
 
#define ACIA_D7E1S   (2<<2) /* 7 data, even parity, 1 stop */
 
#define ACIA_D7O1S   (3<<2) /* 7 data, odd parity, 1 stop */
 
#define ACIA_D8N2S   (4<<2) /* 8 data, no parity, 2 stop */
 
#define ACIA_D8N1S   (5<<2) /* 8 data, no parity, 1 stop */
 
#define ACIA_D8E1S   (6<<2) /* 8 data, even parity, 1 stop */
 
#define ACIA_D8O1S   (7<<2) /* 8 data, odd parity, 1 stop */
 
#define ACIA_RLTID   (0<<5) /* RTS low, TxINT disabled */
 
#define ACIA_RLTIE   (1<<5) /* RTS low, TxINT enabled */
 
#define ACIA_RHTID   (2<<5) /* RTS high, TxINT disabled */
 
#define ACIA_RLTIDSB   (3<<5) /* RTS low, TxINT disabled, send break */
 
#define ACIA_RID   (0<<7) /* RxINT disabled */
 
#define ACIA_RIE   (1<<7) /* RxINT enabled */
 
#define ACIA_RDRF   1 /* Receive Data Register Full */
 
#define ACIA_TDRE   (1<<1) /* Transmit Data Register Empty */
 
#define ACIA_DCD   (1<<2) /* Data Carrier Detect */
 
#define ACIA_CTS   (1<<3) /* Clear To Send */
 
#define ACIA_FE   (1<<4) /* Framing Error */
 
#define ACIA_OVRN   (1<<5) /* Receiver Overrun */
 
#define ACIA_PE   (1<<6) /* Parity Error */
 
#define ACIA_IRQ   (1<<7) /* Interrupt Request */
 
#define ACIA_BAS   (0xfffffc00)
 
#define acia   ((*(volatile struct ACIA*)ACIA_BAS))
 
#define TT_DMASND_BAS   (0xffff8900)
 
#define tt_dmasnd   ((*(volatile struct TT_DMASND *)TT_DMASND_BAS))
 
#define DMASND_MFP_INT_REPLAY   0x01
 
#define DMASND_MFP_INT_RECORD   0x02
 
#define DMASND_TIMERA_INT_REPLAY   0x04
 
#define DMASND_TIMERA_INT_RECORD   0x08
 
#define DMASND_CTRL_OFF   0x00
 
#define DMASND_CTRL_ON   0x01
 
#define DMASND_CTRL_REPEAT   0x02
 
#define DMASND_CTRL_RECORD_ON   0x10
 
#define DMASND_CTRL_RECORD_OFF   0x00
 
#define DMASND_CTRL_RECORD_REPEAT   0x20
 
#define DMASND_CTRL_SELECT_REPLAY   0x00
 
#define DMASND_CTRL_SELECT_RECORD   0x80
 
#define DMASND_MODE_MONO   0x80
 
#define DMASND_MODE_STEREO   0x00
 
#define DMASND_MODE_8BIT   0x00
 
#define DMASND_MODE_16BIT   0x40 /* Falcon only */
 
#define DMASND_MODE_6KHZ   0x00 /* Falcon: mute */
 
#define DMASND_MODE_12KHZ   0x01
 
#define DMASND_MODE_25KHZ   0x02
 
#define DMASND_MODE_50KHZ   0x03
 
#define DMASNDSetBase(bufstart)
 
#define DMASNDGetAdr()
 
#define DMASNDSetEnd(bufend)
 
#define TT_MICROWIRE_BAS   (0xffff8922)
 
#define tt_microwire   ((*(volatile struct TT_MICROWIRE *)TT_MICROWIRE_BAS))
 
#define MW_LM1992_ADDR   0x0400
 
#define MW_LM1992_VOLUME(dB)   (0x0c0 | ((dB) < -80 ? 0 : (dB) > 0 ? 40 : (((dB) + 80) / 2)))
 
#define MW_LM1992_BALLEFT(dB)   (0x140 | ((dB) < -40 ? 0 : (dB) > 0 ? 20 : (((dB) + 40) / 2)))
 
#define MW_LM1992_BALRIGHT(dB)   (0x100 | ((dB) < -40 ? 0 : (dB) > 0 ? 20 : (((dB) + 40) / 2)))
 
#define MW_LM1992_TREBLE(dB)   (0x080 | ((dB) < -12 ? 0 : (dB) > 12 ? 12 : (((dB) / 2) + 6)))
 
#define MW_LM1992_BASS(dB)   (0x040 | ((dB) < -12 ? 0 : (dB) > 12 ? 12 : (((dB) / 2) + 6)))
 
#define MW_LM1992_PSG_LOW   0x000
 
#define MW_LM1992_PSG_HIGH   0x001
 
#define MW_LM1992_PSG_OFF   0x002
 
#define MSTE_RTC_BAS   (0xfffffc21)
 
#define mste_rtc   ((*(volatile struct MSTE_RTC *)MSTE_RTC_BAS))
 

Variables

u_long atari_mch_cookie
 
u_long atari_mch_type
 
u_long atari_switches
 
int atari_rtc_year_offset
 
int atari_dont_touch_floppy_select
 
int atari_SCC_reset_done
 
struct atari_hw_present atari_hw_present
 

Macro Definition Documentation

#define acia   ((*(volatile struct ACIA*)ACIA_BAS))

Definition at line 663 of file atarihw.h.

#define ACIA_BAS   (0xfffffc00)

Definition at line 652 of file atarihw.h.

#define ACIA_CTS   (1<<3) /* Clear To Send */

Definition at line 646 of file atarihw.h.

#define ACIA_D7E1S   (2<<2) /* 7 data, even parity, 1 stop */

Definition at line 625 of file atarihw.h.

#define ACIA_D7E2S   (0<<2) /* 7 data, even parity, 2 stop */

Definition at line 623 of file atarihw.h.

#define ACIA_D7O1S   (3<<2) /* 7 data, odd parity, 1 stop */

Definition at line 626 of file atarihw.h.

#define ACIA_D7O2S   (1<<2) /* 7 data, odd parity, 2 stop */

Definition at line 624 of file atarihw.h.

#define ACIA_D8E1S   (6<<2) /* 8 data, even parity, 1 stop */

Definition at line 629 of file atarihw.h.

#define ACIA_D8N1S   (5<<2) /* 8 data, no parity, 1 stop */

Definition at line 628 of file atarihw.h.

#define ACIA_D8N2S   (4<<2) /* 8 data, no parity, 2 stop */

Definition at line 627 of file atarihw.h.

#define ACIA_D8O1S   (7<<2) /* 8 data, odd parity, 1 stop */

Definition at line 630 of file atarihw.h.

#define ACIA_DCD   (1<<2) /* Data Carrier Detect */

Definition at line 645 of file atarihw.h.

#define ACIA_DIV1   0

Definition at line 617 of file atarihw.h.

#define ACIA_DIV16   1

Definition at line 618 of file atarihw.h.

#define ACIA_DIV64   2

Definition at line 619 of file atarihw.h.

#define ACIA_FE   (1<<4) /* Framing Error */

Definition at line 647 of file atarihw.h.

#define ACIA_IRQ   (1<<7) /* Interrupt Request */

Definition at line 650 of file atarihw.h.

#define ACIA_OVRN   (1<<5) /* Receiver Overrun */

Definition at line 648 of file atarihw.h.

#define ACIA_PE   (1<<6) /* Parity Error */

Definition at line 649 of file atarihw.h.

#define ACIA_RDRF   1 /* Receive Data Register Full */

Definition at line 643 of file atarihw.h.

#define ACIA_RESET   3

Definition at line 620 of file atarihw.h.

#define ACIA_RHTID   (2<<5) /* RTS high, TxINT disabled */

Definition at line 635 of file atarihw.h.

#define ACIA_RID   (0<<7) /* RxINT disabled */

Definition at line 639 of file atarihw.h.

#define ACIA_RIE   (1<<7) /* RxINT enabled */

Definition at line 640 of file atarihw.h.

#define ACIA_RLTID   (0<<5) /* RTS low, TxINT disabled */

Definition at line 633 of file atarihw.h.

#define ACIA_RLTIDSB   (3<<5) /* RTS low, TxINT disabled, send break */

Definition at line 636 of file atarihw.h.

#define ACIA_RLTIE   (1<<5) /* RTS low, TxINT enabled */

Definition at line 634 of file atarihw.h.

#define ACIA_TDRE   (1<<1) /* Transmit Data Register Empty */

Definition at line 644 of file atarihw.h.

#define ADC_SOURCE_LEFT_PSG   2

Definition at line 391 of file atarihw.h.

#define ADC_SOURCE_RIGHT_PSG   1

Definition at line 390 of file atarihw.h.

#define atari_inb_p   raw_inb

Definition at line 131 of file atarihw.h.

#define atari_outb_p   raw_outb

Definition at line 132 of file atarihw.h.

#define atari_readb   raw_inb

Definition at line 128 of file atarihw.h.

#define atari_scc   ((*(volatile struct SCC*)SCC_BAS))

Definition at line 454 of file atarihw.h.

#define ATARI_SWITCH_IKBD   0x01

Definition at line 47 of file atarihw.h.

#define ATARI_SWITCH_MIDI   0x02

Definition at line 48 of file atarihw.h.

#define ATARI_SWITCH_OVSC_IKBD   (ATARI_SWITCH_IKBD << ATARI_SWITCH_OVSC_SHIFT)

Definition at line 52 of file atarihw.h.

#define ATARI_SWITCH_OVSC_MASK   0xffff0000

Definition at line 56 of file atarihw.h.

#define ATARI_SWITCH_OVSC_MIDI   (ATARI_SWITCH_MIDI << ATARI_SWITCH_OVSC_SHIFT)

Definition at line 53 of file atarihw.h.

#define ATARI_SWITCH_OVSC_SHIFT   16

Definition at line 51 of file atarihw.h.

#define ATARI_SWITCH_OVSC_SND6   (ATARI_SWITCH_SND6 << ATARI_SWITCH_OVSC_SHIFT)

Definition at line 54 of file atarihw.h.

#define ATARI_SWITCH_OVSC_SND7   (ATARI_SWITCH_SND7 << ATARI_SWITCH_OVSC_SHIFT)

Definition at line 55 of file atarihw.h.

#define ATARI_SWITCH_SND6   0x04

Definition at line 49 of file atarihw.h.

#define ATARI_SWITCH_SND7   0x08

Definition at line 50 of file atarihw.h.

#define atari_writeb   raw_outb

Definition at line 129 of file atarihw.h.

#define ATARIHW_DECLARE (   name)    unsigned name : 1

Definition at line 66 of file atarihw.h.

#define ATARIHW_PRESENT (   name)    (atari_hw_present.name)

Definition at line 68 of file atarihw.h.

#define ATARIHW_SET (   name)    (atari_hw_present.name = 1)

Definition at line 67 of file atarihw.h.

#define blitter   ((*(volatile struct BLITTER *)BLT_BAS))

Definition at line 436 of file atarihw.h.

#define BLT_BAS   (0xffff8a00)

Definition at line 415 of file atarihw.h.

#define CODEC_ATTENUATION_LEFT   0xf0

Definition at line 397 of file atarihw.h.

#define CODEC_ATTENUATION_RIGHT   0x0f

Definition at line 396 of file atarihw.h.

#define CODEC_BASE   (0xffff8936)

Definition at line 382 of file atarihw.h.

#define CODEC_GAIN_LEFT   0xf0

Definition at line 394 of file atarihw.h.

#define CODEC_GAIN_RIGHT   0x0f

Definition at line 393 of file atarihw.h.

#define CODEC_GPIO_IN   0

Definition at line 404 of file atarihw.h.

#define CODEC_GPIO_OUT   1

Definition at line 405 of file atarihw.h.

#define CODEC_OVERFLOW_LEFT   2

Definition at line 401 of file atarihw.h.

#define CODEC_OVERFLOW_RIGHT   1

Definition at line 400 of file atarihw.h.

#define CODEC_SOURCE_ADC   1

Definition at line 387 of file atarihw.h.

#define CODEC_SOURCE_MATRIX   2

Definition at line 388 of file atarihw.h.

#define dma_wd   ((*(volatile struct DMA_WD *)FWD_BAS))

Definition at line 297 of file atarihw.h.

#define DMASND_CTRL_OFF   0x00

Definition at line 709 of file atarihw.h.

#define DMASND_CTRL_ON   0x01

Definition at line 710 of file atarihw.h.

#define DMASND_CTRL_RECORD_OFF   0x00

Definition at line 713 of file atarihw.h.

#define DMASND_CTRL_RECORD_ON   0x10

Definition at line 712 of file atarihw.h.

#define DMASND_CTRL_RECORD_REPEAT   0x20

Definition at line 714 of file atarihw.h.

#define DMASND_CTRL_REPEAT   0x02

Definition at line 711 of file atarihw.h.

#define DMASND_CTRL_SELECT_RECORD   0x80

Definition at line 716 of file atarihw.h.

#define DMASND_CTRL_SELECT_REPLAY   0x00

Definition at line 715 of file atarihw.h.

#define DMASND_MFP_INT_RECORD   0x02

Definition at line 705 of file atarihw.h.

#define DMASND_MFP_INT_REPLAY   0x01

Definition at line 704 of file atarihw.h.

#define DMASND_MODE_12KHZ   0x01

Definition at line 722 of file atarihw.h.

#define DMASND_MODE_16BIT   0x40 /* Falcon only */

Definition at line 720 of file atarihw.h.

#define DMASND_MODE_25KHZ   0x02

Definition at line 723 of file atarihw.h.

#define DMASND_MODE_50KHZ   0x03

Definition at line 724 of file atarihw.h.

#define DMASND_MODE_6KHZ   0x00 /* Falcon: mute */

Definition at line 721 of file atarihw.h.

#define DMASND_MODE_8BIT   0x00

Definition at line 719 of file atarihw.h.

#define DMASND_MODE_MONO   0x80

Definition at line 717 of file atarihw.h.

#define DMASND_MODE_STEREO   0x00

Definition at line 718 of file atarihw.h.

#define DMASND_TIMERA_INT_RECORD   0x08

Definition at line 707 of file atarihw.h.

#define DMASND_TIMERA_INT_REPLAY   0x04

Definition at line 706 of file atarihw.h.

#define DMASNDGetAdr ( )
Value:
((tt_dmasnd.addr_hi << 16) + \
(tt_dmasnd.addr_mid << 8) + \
(tt_dmasnd.addr_low))

Definition at line 734 of file atarihw.h.

#define DMASNDSetBase (   bufstart)
Value:
do { \
tt_dmasnd.bas_hi = (unsigned char)(((bufstart) & 0xff0000) >> 16); \
tt_dmasnd.bas_mid = (unsigned char)(((bufstart) & 0x00ff00) >> 8); \
tt_dmasnd.bas_low = (unsigned char) ((bufstart) & 0x0000ff); \
} while( 0 )

Definition at line 727 of file atarihw.h.

#define DMASNDSetEnd (   bufend)
Value:
do { \
tt_dmasnd.end_hi = (unsigned char)(((bufend) & 0xff0000) >> 16); \
tt_dmasnd.end_mid = (unsigned char)(((bufend) & 0x00ff00) >> 8); \
tt_dmasnd.end_low = (unsigned char) ((bufend) & 0x0000ff); \
} while( 0 )

Definition at line 738 of file atarihw.h.

#define DSP56K_CVR_HC   0x80

Definition at line 494 of file atarihw.h.

#define DSP56K_CVR_HV_MASK   0x1f

Definition at line 493 of file atarihw.h.

#define dsp56k_host_interface   ((*(volatile struct DSP56K_HOST_INTERFACE *)DSP56K_HOST_INTERFACE_BASE))

Definition at line 513 of file atarihw.h.

#define DSP56K_HOST_INTERFACE_BASE   (0xffffa200)

Definition at line 481 of file atarihw.h.

#define DSP56K_ICR_HF0   0x08

Definition at line 486 of file atarihw.h.

#define DSP56K_ICR_HF1   0x10

Definition at line 487 of file atarihw.h.

#define DSP56K_ICR_HM0   0x20

Definition at line 488 of file atarihw.h.

#define DSP56K_ICR_HM1   0x40

Definition at line 489 of file atarihw.h.

#define DSP56K_ICR_INIT   0x80

Definition at line 490 of file atarihw.h.

#define DSP56K_ICR_RREQ   0x01

Definition at line 484 of file atarihw.h.

#define DSP56K_ICR_TREQ   0x02

Definition at line 485 of file atarihw.h.

#define DSP56K_ISR_DMA   0x40

Definition at line 502 of file atarihw.h.

#define DSP56K_ISR_HF2   0x08

Definition at line 500 of file atarihw.h.

#define DSP56K_ISR_HF3   0x10

Definition at line 501 of file atarihw.h.

#define DSP56K_ISR_HREQ   0x80

Definition at line 503 of file atarihw.h.

#define DSP56K_ISR_RXDF   0x01

Definition at line 497 of file atarihw.h.

#define DSP56K_ISR_TRDY   0x04

Definition at line 499 of file atarihw.h.

#define DSP56K_ISR_TXDE   0x02

Definition at line 498 of file atarihw.h.

#define f030_col   ((u_long *) 0xffff9800)

Definition at line 244 of file atarihw.h.

#define f030_creg   ((u_short*) 0xffff82c0)

Definition at line 247 of file atarihw.h.

#define f030_hscroll   ((u_char*) 0xffff8265)

Definition at line 251 of file atarihw.h.

#define f030_linewidth   ((u_short*) 0xffff820e)

Definition at line 250 of file atarihw.h.

#define f030_mreg   ((u_short*) 0xffff820a)

Definition at line 249 of file atarihw.h.

#define f030_sreg   ((u_short*) 0xffff8260)

Definition at line 248 of file atarihw.h.

#define f030_xreg   ((u_short*) 0xffff8282)

Definition at line 245 of file atarihw.h.

#define f030_yreg   ((u_short*) 0xffff82a2)

Definition at line 246 of file atarihw.h.

#define falcon_codec   (*(volatile struct CODEC *)CODEC_BASE)

Definition at line 409 of file atarihw.h.

#define falcon_matrix   (*(volatile struct MATRIX *)MATRIX_BASE)

Definition at line 380 of file atarihw.h.

#define FPL_BAS   (0xffff9800)

Definition at line 469 of file atarihw.h.

#define FWD_BAS   (0xffff8604)

Definition at line 284 of file atarihw.h.

#define MACH_IS_AB40   (atari_mch_type == ATARI_MACH_AB40)

Definition at line 44 of file atarihw.h.

#define MACH_IS_FALCON   ((atari_mch_cookie >> 16) == ATARI_MCH_FALCON)

Definition at line 42 of file atarihw.h.

#define MACH_IS_MEDUSA   (atari_mch_type == ATARI_MACH_MEDUSA)

Definition at line 43 of file atarihw.h.

#define MACH_IS_MSTE
Value:
(atari_mch_cookie & 0xffff) == 0x10)

Definition at line 39 of file atarihw.h.

#define MACH_IS_ST   ((atari_mch_cookie >> 16) == ATARI_MCH_ST)

Definition at line 36 of file atarihw.h.

#define MACH_IS_STE
Value:
(atari_mch_cookie & 0xffff) == 0)

Definition at line 37 of file atarihw.h.

#define MACH_IS_TT   ((atari_mch_cookie >> 16) == ATARI_MCH_TT)

Definition at line 41 of file atarihw.h.

#define MATRIX_BASE   (0xffff8930)

Definition at line 372 of file atarihw.h.

#define MFP_BAS   (0xfffffa01)

Definition at line 519 of file atarihw.h.

#define MFPDELAY ( )    __asm__ __volatile__ ( "tstb %0" : : "m" (st_mfp.par_dt_reg) : "cc" );

Definition at line 117 of file atarihw.h.

#define mste_rtc   ((*(volatile struct MSTE_RTC *)MSTE_RTC_BAS))

Definition at line 806 of file atarihw.h.

#define MSTE_RTC_BAS   (0xfffffc21)

Definition at line 770 of file atarihw.h.

#define MW_LM1992_ADDR   0x0400

Definition at line 753 of file atarihw.h.

#define MW_LM1992_BALLEFT (   dB)    (0x140 | ((dB) < -40 ? 0 : (dB) > 0 ? 20 : (((dB) + 40) / 2)))

Definition at line 757 of file atarihw.h.

#define MW_LM1992_BALRIGHT (   dB)    (0x100 | ((dB) < -40 ? 0 : (dB) > 0 ? 20 : (((dB) + 40) / 2)))

Definition at line 759 of file atarihw.h.

#define MW_LM1992_BASS (   dB)    (0x040 | ((dB) < -12 ? 0 : (dB) > 12 ? 12 : (((dB) / 2) + 6)))

Definition at line 763 of file atarihw.h.

#define MW_LM1992_PSG_HIGH   0x001

Definition at line 767 of file atarihw.h.

#define MW_LM1992_PSG_LOW   0x000

Definition at line 766 of file atarihw.h.

#define MW_LM1992_PSG_OFF   0x002

Definition at line 768 of file atarihw.h.

#define MW_LM1992_TREBLE (   dB)    (0x080 | ((dB) < -12 ? 0 : (dB) > 12 ? 12 : (((dB) / 2) + 6)))

Definition at line 761 of file atarihw.h.

#define MW_LM1992_VOLUME (   dB)    (0x0c0 | ((dB) < -80 ? 0 : (dB) > 0 ? 40 : (((dB) + 80) / 2)))

Definition at line 755 of file atarihw.h.

#define SCC_BAS   (0xffff8c81)

Definition at line 443 of file atarihw.h.

#define SHF_BAS   (0xffff8200)

Definition at line 165 of file atarihw.h.

#define SHF_FBAS   (0xffff820e)

Definition at line 185 of file atarihw.h.

#define SHF_TBAS   (0xffff8200)

Definition at line 194 of file atarihw.h.

#define shifter   ((*(volatile struct SHIFTER *)SHF_BAS))

Definition at line 183 of file atarihw.h.

#define shifter_f030   ((*(volatile struct SHIFTER_F030 *)SHF_FBAS))

Definition at line 191 of file atarihw.h.

#define shifter_tt   ((*(volatile struct SHIFTER_TT *)SHF_TBAS))

Definition at line 218 of file atarihw.h.

#define sound_ym   ((*(volatile struct SOUND_YM *)YM_BAS))

Definition at line 317 of file atarihw.h.

#define st_dma   dma_wd

Definition at line 299 of file atarihw.h.

#define st_dma_ext_dmahi   (*((volatile unsigned short *)0xffff8608))

Definition at line 303 of file atarihw.h.

#define st_escc   ((*(volatile struct SCC*)0xfffffa31))

Definition at line 457 of file atarihw.h.

#define st_escc_dsr   ((*(volatile char *)0xfffffa39))

Definition at line 458 of file atarihw.h.

#define ST_HIGH   2

Definition at line 160 of file atarihw.h.

#define ST_LOW   0

Definition at line 158 of file atarihw.h.

#define st_mfp   ((*(volatile struct MFP*)MFP_BAS))

Definition at line 570 of file atarihw.h.

#define ST_MID   1

Definition at line 159 of file atarihw.h.

#define TT_5380_BAS   (0xffff8781)

Definition at line 346 of file atarihw.h.

#define tt_dmasnd   ((*(volatile struct TT_DMASND *)TT_DMASND_BAS))

Definition at line 702 of file atarihw.h.

#define TT_DMASND_BAS   (0xffff8900)

Definition at line 665 of file atarihw.h.

#define TT_HIGH   6

Definition at line 163 of file atarihw.h.

#define TT_LOW   7

Definition at line 161 of file atarihw.h.

#define tt_mfp   ((*(volatile struct MFP*)TT_MFP_BAS))

Definition at line 575 of file atarihw.h.

#define TT_MFP_BAS   (0xfffffa81)

Definition at line 574 of file atarihw.h.

#define tt_microwire   ((*(volatile struct TT_MICROWIRE *)TT_MICROWIRE_BAS))

Definition at line 751 of file atarihw.h.

#define TT_MICROWIRE_BAS   (0xffff8922)

Definition at line 746 of file atarihw.h.

#define TT_MID   4

Definition at line 162 of file atarihw.h.

#define tt_palette   ((volatile u_short *)TT_PALETTE_BASE)

Definition at line 234 of file atarihw.h.

#define TT_PALETTE_BASE   (0xffff8400)

Definition at line 233 of file atarihw.h.

#define TT_PALETTE_BLUE_MASK   0x000f

Definition at line 238 of file atarihw.h.

#define TT_PALETTE_GREEN_MASK   0x00f0

Definition at line 237 of file atarihw.h.

#define TT_PALETTE_RED_MASK   0x0f00

Definition at line 236 of file atarihw.h.

#define tt_rtc   ((*(volatile struct TT_RTC *)TT_RTC_BAS))

Definition at line 608 of file atarihw.h.

#define TT_RTC_BAS   (0xffff8961)

Definition at line 602 of file atarihw.h.

#define tt_scc_dma   ((*(volatile struct TT_DMA *)TT_SCC_DMA_BAS))

Definition at line 463 of file atarihw.h.

#define TT_SCC_DMA_BAS   (0xffff8c00)

Definition at line 462 of file atarihw.h.

#define tt_scsi   ((*(volatile struct TT_5380 *)TT_5380_BAS))

Definition at line 364 of file atarihw.h.

#define tt_scsi_dma   ((*(volatile struct TT_DMA *)TT_SCSI_DMA_BAS))

Definition at line 342 of file atarihw.h.

#define TT_SCSI_DMA_BAS   (0xffff8700)

Definition at line 321 of file atarihw.h.

#define tt_scsi_regp   ((volatile char *)TT_5380_BAS)

Definition at line 365 of file atarihw.h.

#define tt_scu   ((*(volatile struct TT_SCU *)TT_SCU_BAS))

Definition at line 598 of file atarihw.h.

#define TT_SCU_BAS   (0xffff8e01)

Definition at line 580 of file atarihw.h.

#define TT_SHIFTER_GRAYMODE   0x1000

Definition at line 230 of file atarihw.h.

#define TT_SHIFTER_MODEMASK   0x0700

Definition at line 227 of file atarihw.h.

#define TT_SHIFTER_NUMMODE   0x0008

Definition at line 228 of file atarihw.h.

#define TT_SHIFTER_PALETTE_MASK   0x000f

Definition at line 229 of file atarihw.h.

#define TT_SHIFTER_STHIGH   0x0200

Definition at line 223 of file atarihw.h.

#define TT_SHIFTER_STLOW   0x0000

Definition at line 221 of file atarihw.h.

#define TT_SHIFTER_STMID   0x0100

Definition at line 222 of file atarihw.h.

#define TT_SHIFTER_TTHIGH   0x0600

Definition at line 226 of file atarihw.h.

#define TT_SHIFTER_TTLOW   0x0700

Definition at line 224 of file atarihw.h.

#define TT_SHIFTER_TTMID   0x0400

Definition at line 225 of file atarihw.h.

#define videl   ((*(volatile struct VIDEL *)VIDEL_BAS))

Definition at line 278 of file atarihw.h.

#define VIDEL_BAS   (0xffff8260)

Definition at line 253 of file atarihw.h.

#define videl_palette   ((*(volatile struct VIDEL_PALETTE*)FPL_BAS))

Definition at line 474 of file atarihw.h.

#define YM_BAS   (0xffff8800)

Definition at line 310 of file atarihw.h.

Variable Documentation

int atari_dont_touch_floppy_select

Definition at line 58 of file config.c.

Definition at line 52 of file config.c.

u_long atari_mch_cookie

Definition at line 46 of file config.c.

u_long atari_mch_type

Definition at line 49 of file config.c.

int atari_rtc_year_offset

Definition at line 61 of file config.c.

int atari_SCC_reset_done

Definition at line 25 of file debug.c.

u_long atari_switches

Definition at line 55 of file config.c.