Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
amigahw.h File Reference
#include <linux/ioport.h>

Go to the source code of this file.

Data Structures

struct  amiga_hw_present
 
struct  CUSTOM
 
struct  CIA
 
struct  tod3000
 
struct  tod2000
 

Macros

#define AMI_UNKNOWN   (0)
 
#define AMI_500   (1)
 
#define AMI_500PLUS   (2)
 
#define AMI_600   (3)
 
#define AMI_1000   (4)
 
#define AMI_1200   (5)
 
#define AMI_2000   (6)
 
#define AMI_2500   (7)
 
#define AMI_3000   (8)
 
#define AMI_3000T   (9)
 
#define AMI_3000PLUS   (10)
 
#define AMI_4000   (11)
 
#define AMI_4000T   (12)
 
#define AMI_CDTV   (13)
 
#define AMI_CD32   (14)
 
#define AMI_DRACO   (15)
 
#define CS_STONEAGE   (0)
 
#define CS_OCS   (1)
 
#define CS_ECS   (2)
 
#define CS_AGA   (3)
 
#define AMIGAHW_DECLARE(name)   unsigned name : 1
 
#define AMIGAHW_SET(name)   (amiga_hw_present.name = 1)
 
#define AMIGAHW_PRESENT(name)   (amiga_hw_present.name)
 
#define DMAF_SETCLR   (0x8000)
 
#define DMAF_AUD0   (0x0001)
 
#define DMAF_AUD1   (0x0002)
 
#define DMAF_AUD2   (0x0004)
 
#define DMAF_AUD3   (0x0008)
 
#define DMAF_DISK   (0x0010)
 
#define DMAF_SPRITE   (0x0020)
 
#define DMAF_BLITTER   (0x0040)
 
#define DMAF_COPPER   (0x0080)
 
#define DMAF_RASTER   (0x0100)
 
#define DMAF_MASTER   (0x0200)
 
#define DMAF_BLITHOG   (0x0400)
 
#define DMAF_BLTNZERO   (0x2000)
 
#define DMAF_BLTDONE   (0x4000)
 
#define DMAF_ALL   (0x01FF)
 
#define zTwoBase   (0x80000000)
 
#define ZTWO_PADDR(x)   (((unsigned long)(x))-zTwoBase)
 
#define ZTWO_VADDR(x)   (((unsigned long)(x))+zTwoBase)
 
#define CUSTOM_PHYSADDR   (0xdff000)
 
#define amiga_custom   ((*(volatile struct CUSTOM *)(zTwoBase+CUSTOM_PHYSADDR)))
 
#define CIAA_PHYSADDR   (0xbfe001)
 
#define CIAB_PHYSADDR   (0xbfd000)
 
#define ciaa   ((*(volatile struct CIA *)(zTwoBase + CIAA_PHYSADDR)))
 
#define ciab   ((*(volatile struct CIA *)(zTwoBase + CIAB_PHYSADDR)))
 
#define CHIP_PHYSADDR   (0x000000)
 
#define TOD3000_CNTRL1_HOLD   0
 
#define TOD3000_CNTRL1_FREE   9
 
#define tod_3000   ((*(volatile struct tod3000 *)(zTwoBase+0xDC0000)))
 
#define TOD2000_CNTRL1_HOLD   (1<<0)
 
#define TOD2000_CNTRL1_BUSY   (1<<1)
 
#define TOD2000_CNTRL3_24HMODE   (1<<2)
 
#define TOD2000_HOUR1_PM   (1<<2)
 
#define tod_2000   ((*(volatile struct tod2000 *)(zTwoBase+0xDC0000)))
 

Functions

void amiga_chip_init (void)
 
voidamiga_chip_alloc (unsigned long size, const char *name)
 
voidamiga_chip_alloc_res (unsigned long size, struct resource *res)
 
void amiga_chip_free (void *ptr)
 
unsigned long amiga_chip_avail (void)
 

Variables

unsigned long amiga_chipset
 
unsigned long amiga_eclock
 
unsigned long amiga_colorclock
 
unsigned long amiga_chip_size
 
unsigned char amiga_vblank
 
struct amiga_hw_present amiga_hw_present
 
volatile unsigned short amiga_audio_min_period
 

Macro Definition Documentation

#define AMI_1000   (4)

Definition at line 29 of file amigahw.h.

#define AMI_1200   (5)

Definition at line 30 of file amigahw.h.

#define AMI_2000   (6)

Definition at line 31 of file amigahw.h.

#define AMI_2500   (7)

Definition at line 32 of file amigahw.h.

#define AMI_3000   (8)

Definition at line 33 of file amigahw.h.

#define AMI_3000PLUS   (10)

Definition at line 35 of file amigahw.h.

#define AMI_3000T   (9)

Definition at line 34 of file amigahw.h.

#define AMI_4000   (11)

Definition at line 36 of file amigahw.h.

#define AMI_4000T   (12)

Definition at line 37 of file amigahw.h.

#define AMI_500   (1)

Definition at line 26 of file amigahw.h.

#define AMI_500PLUS   (2)

Definition at line 27 of file amigahw.h.

#define AMI_600   (3)

Definition at line 28 of file amigahw.h.

#define AMI_CD32   (14)

Definition at line 39 of file amigahw.h.

#define AMI_CDTV   (13)

Definition at line 38 of file amigahw.h.

#define AMI_DRACO   (15)

Definition at line 40 of file amigahw.h.

#define AMI_UNKNOWN   (0)

Definition at line 25 of file amigahw.h.

#define amiga_custom   ((*(volatile struct CUSTOM *)(zTwoBase+CUSTOM_PHYSADDR)))

Definition at line 272 of file amigahw.h.

#define AMIGAHW_DECLARE (   name)    unsigned name : 1

Definition at line 65 of file amigahw.h.

#define AMIGAHW_PRESENT (   name)    (amiga_hw_present.name)

Definition at line 67 of file amigahw.h.

#define AMIGAHW_SET (   name)    (amiga_hw_present.name = 1)

Definition at line 66 of file amigahw.h.

#define CHIP_PHYSADDR   (0x000000)

Definition at line 279 of file amigahw.h.

#define ciaa   ((*(volatile struct CIA *)(zTwoBase + CIAA_PHYSADDR)))

Definition at line 276 of file amigahw.h.

#define CIAA_PHYSADDR   (0xbfe001)

Definition at line 274 of file amigahw.h.

#define ciab   ((*(volatile struct CIA *)(zTwoBase + CIAB_PHYSADDR)))

Definition at line 277 of file amigahw.h.

#define CIAB_PHYSADDR   (0xbfd000)

Definition at line 275 of file amigahw.h.

#define CS_AGA   (3)

Definition at line 52 of file amigahw.h.

#define CS_ECS   (2)

Definition at line 51 of file amigahw.h.

#define CS_OCS   (1)

Definition at line 50 of file amigahw.h.

#define CS_STONEAGE   (0)

Definition at line 49 of file amigahw.h.

#define CUSTOM_PHYSADDR   (0xdff000)

Definition at line 271 of file amigahw.h.

#define DMAF_ALL   (0x01FF)

Definition at line 247 of file amigahw.h.

#define DMAF_AUD0   (0x0001)

Definition at line 234 of file amigahw.h.

#define DMAF_AUD1   (0x0002)

Definition at line 235 of file amigahw.h.

#define DMAF_AUD2   (0x0004)

Definition at line 236 of file amigahw.h.

#define DMAF_AUD3   (0x0008)

Definition at line 237 of file amigahw.h.

#define DMAF_BLITHOG   (0x0400)

Definition at line 244 of file amigahw.h.

#define DMAF_BLITTER   (0x0040)

Definition at line 240 of file amigahw.h.

#define DMAF_BLTDONE   (0x4000)

Definition at line 246 of file amigahw.h.

#define DMAF_BLTNZERO   (0x2000)

Definition at line 245 of file amigahw.h.

#define DMAF_COPPER   (0x0080)

Definition at line 241 of file amigahw.h.

#define DMAF_DISK   (0x0010)

Definition at line 238 of file amigahw.h.

#define DMAF_MASTER   (0x0200)

Definition at line 243 of file amigahw.h.

#define DMAF_RASTER   (0x0100)

Definition at line 242 of file amigahw.h.

#define DMAF_SETCLR   (0x8000)

Definition at line 233 of file amigahw.h.

#define DMAF_SPRITE   (0x0020)

Definition at line 239 of file amigahw.h.

#define TOD2000_CNTRL1_BUSY   (1<<1)

Definition at line 344 of file amigahw.h.

#define TOD2000_CNTRL1_HOLD   (1<<0)

Definition at line 343 of file amigahw.h.

#define TOD2000_CNTRL3_24HMODE   (1<<2)

Definition at line 345 of file amigahw.h.

#define TOD2000_HOUR1_PM   (1<<2)

Definition at line 346 of file amigahw.h.

#define TOD3000_CNTRL1_FREE   9

Definition at line 321 of file amigahw.h.

#define TOD3000_CNTRL1_HOLD   0

Definition at line 320 of file amigahw.h.

#define tod_2000   ((*(volatile struct tod2000 *)(zTwoBase+0xDC0000)))

Definition at line 347 of file amigahw.h.

#define tod_3000   ((*(volatile struct tod3000 *)(zTwoBase+0xDC0000)))

Definition at line 322 of file amigahw.h.

#define ZTWO_PADDR (   x)    (((unsigned long)(x))-zTwoBase)

Definition at line 268 of file amigahw.h.

#define ZTWO_VADDR (   x)    (((unsigned long)(x))+zTwoBase)

Definition at line 269 of file amigahw.h.

#define zTwoBase   (0x80000000)

Definition at line 267 of file amigahw.h.

Function Documentation

void* amiga_chip_alloc ( unsigned long  size,
const char name 
)

Definition at line 44 of file chipram.c.

void* amiga_chip_alloc_res ( unsigned long  size,
struct resource res 
)

Definition at line 72 of file chipram.c.

unsigned long amiga_chip_avail ( void  )

Definition at line 115 of file chipram.c.

void amiga_chip_free ( void ptr)

Definition at line 93 of file chipram.c.

void amiga_chip_init ( void  )

Definition at line 32 of file chipram.c.

Variable Documentation

volatile unsigned short amiga_audio_min_period

Definition at line 33 of file amisound.c.

unsigned long amiga_chip_size

Definition at line 23 of file chipram.c.

unsigned long amiga_chipset

Definition at line 48 of file config.c.

unsigned long amiga_colorclock

Definition at line 45 of file config.c.

unsigned long amiga_eclock

Definition at line 42 of file config.c.

Definition at line 56 of file config.c.

unsigned char amiga_vblank

Definition at line 51 of file config.c.