Go to the documentation of this file.
16 #ifndef _M68K_AMIGAHW_H
17 #define _M68K_AMIGAHW_H
25 #define AMI_UNKNOWN (0)
27 #define AMI_500PLUS (2)
35 #define AMI_3000PLUS (10)
37 #define AMI_4000T (12)
40 #define AMI_DRACO (15)
49 #define CS_STONEAGE (0)
65 #define AMIGAHW_DECLARE(name) unsigned name : 1
66 #define AMIGAHW_SET(name) (amiga_hw_present.name = 1)
67 #define AMIGAHW_PRESENT(name) (amiga_hw_present.name)
233 #define DMAF_SETCLR (0x8000)
234 #define DMAF_AUD0 (0x0001)
235 #define DMAF_AUD1 (0x0002)
236 #define DMAF_AUD2 (0x0004)
237 #define DMAF_AUD3 (0x0008)
238 #define DMAF_DISK (0x0010)
239 #define DMAF_SPRITE (0x0020)
240 #define DMAF_BLITTER (0x0040)
241 #define DMAF_COPPER (0x0080)
242 #define DMAF_RASTER (0x0100)
243 #define DMAF_MASTER (0x0200)
244 #define DMAF_BLITHOG (0x0400)
245 #define DMAF_BLTNZERO (0x2000)
246 #define DMAF_BLTDONE (0x4000)
247 #define DMAF_ALL (0x01FF)
267 #define zTwoBase (0x80000000)
268 #define ZTWO_PADDR(x) (((unsigned long)(x))-zTwoBase)
269 #define ZTWO_VADDR(x) (((unsigned long)(x))+zTwoBase)
271 #define CUSTOM_PHYSADDR (0xdff000)
272 #define amiga_custom ((*(volatile struct CUSTOM *)(zTwoBase+CUSTOM_PHYSADDR)))
274 #define CIAA_PHYSADDR (0xbfe001)
275 #define CIAB_PHYSADDR (0xbfd000)
276 #define ciaa ((*(volatile struct CIA *)(zTwoBase + CIAA_PHYSADDR)))
277 #define ciab ((*(volatile struct CIA *)(zTwoBase + CIAB_PHYSADDR)))
279 #define CHIP_PHYSADDR (0x000000)
288 static inline void amifb_video_off(
void)
320 #define TOD3000_CNTRL1_HOLD 0
321 #define TOD3000_CNTRL1_FREE 9
322 #define tod_3000 ((*(volatile struct tod3000 *)(zTwoBase+0xDC0000)))
343 #define TOD2000_CNTRL1_HOLD (1<<0)
344 #define TOD2000_CNTRL1_BUSY (1<<1)
345 #define TOD2000_CNTRL3_24HMODE (1<<2)
346 #define TOD2000_HOUR1_PM (1<<2)
347 #define tod_2000 ((*(volatile struct tod2000 *)(zTwoBase+0xDC0000)))