|
#define | DEBUG |
|
#define | CONFIG_FB_AMIGA_OCS /* define at least one fb driver, this will change later */ |
|
#define | CONFIG_FB_AMIGA_OCS_ONLY |
|
#define | IS_OCS (1) |
|
#define | IS_ECS (0) |
|
#define | IS_AGA (0) |
|
#define | DPRINTK(fmt, args...) printk(KERN_DEBUG "%s: " fmt, __func__ , ## args) |
|
#define | CUSTOM_OFS(fld) ((long)&((struct CUSTOM*)0)->fld) |
|
#define | BPC0_HIRES (0x8000) |
|
#define | BPC0_BPU2 (0x4000) /* Bit plane used count */ |
|
#define | BPC0_BPU1 (0x2000) |
|
#define | BPC0_BPU0 (0x1000) |
|
#define | BPC0_HAM (0x0800) /* HAM mode */ |
|
#define | BPC0_DPF (0x0400) /* Double playfield */ |
|
#define | BPC0_COLOR (0x0200) /* Enable colorburst */ |
|
#define | BPC0_GAUD (0x0100) /* Genlock audio enable */ |
|
#define | BPC0_UHRES (0x0080) /* Ultrahi res enable */ |
|
#define | BPC0_SHRES (0x0040) /* Super hi res mode */ |
|
#define | BPC0_BYPASS (0x0020) /* Bypass LUT - AGA */ |
|
#define | BPC0_BPU3 (0x0010) /* AGA */ |
|
#define | BPC0_LPEN (0x0008) /* Light pen enable */ |
|
#define | BPC0_LACE (0x0004) /* Interlace */ |
|
#define | BPC0_ERSY (0x0002) /* External resync */ |
|
#define | BPC0_ECSENA (0x0001) /* ECS enable */ |
|
#define | BPC2_ZDBPSEL2 (0x4000) /* Bitplane to be used for ZD - AGA */ |
|
#define | BPC2_ZDBPSEL1 (0x2000) |
|
#define | BPC2_ZDBPSEL0 (0x1000) |
|
#define | BPC2_ZDBPEN (0x0800) /* Enable ZD with ZDBPSELx - AGA */ |
|
#define | BPC2_ZDCTEN (0x0400) /* Enable ZD with palette bit #31 - AGA */ |
|
#define | BPC2_KILLEHB (0x0200) /* Kill EHB mode - AGA */ |
|
#define | BPC2_RDRAM (0x0100) /* Color table accesses read, not write - AGA */ |
|
#define | BPC2_SOGEN (0x0080) /* SOG output pin high - AGA */ |
|
#define | BPC2_PF2PRI (0x0040) /* PF2 priority over PF1 */ |
|
#define | BPC2_PF2P2 (0x0020) /* PF2 priority wrt sprites */ |
|
#define | BPC2_PF2P1 (0x0010) |
|
#define | BPC2_PF2P0 (0x0008) |
|
#define | BPC2_PF1P2 (0x0004) /* ditto PF1 */ |
|
#define | BPC2_PF1P1 (0x0002) |
|
#define | BPC2_PF1P0 (0x0001) |
|
#define | BPC3_BANK2 (0x8000) /* Bits to select color register bank */ |
|
#define | BPC3_BANK1 (0x4000) |
|
#define | BPC3_BANK0 (0x2000) |
|
#define | BPC3_PF2OF2 (0x1000) /* Bits for color table offset when PF2 */ |
|
#define | BPC3_PF2OF1 (0x0800) |
|
#define | BPC3_PF2OF0 (0x0400) |
|
#define | BPC3_LOCT (0x0200) /* Color register writes go to low bits */ |
|
#define | BPC3_SPRES1 (0x0080) /* Sprite resolution bits */ |
|
#define | BPC3_SPRES0 (0x0040) |
|
#define | BPC3_BRDRBLNK (0x0020) /* Border blanked? */ |
|
#define | BPC3_BRDRTRAN (0x0010) /* Border transparent? */ |
|
#define | BPC3_ZDCLKEN (0x0004) /* ZD pin is 14 MHz (HIRES) clock output */ |
|
#define | BPC3_BRDRSPRT (0x0002) /* Sprites in border? */ |
|
#define | BPC3_EXTBLKEN (0x0001) /* BLANK programmable */ |
|
#define | BPC4_BPLAM7 (0x8000) /* bitplane color XOR field */ |
|
#define | BPC4_BPLAM6 (0x4000) |
|
#define | BPC4_BPLAM5 (0x2000) |
|
#define | BPC4_BPLAM4 (0x1000) |
|
#define | BPC4_BPLAM3 (0x0800) |
|
#define | BPC4_BPLAM2 (0x0400) |
|
#define | BPC4_BPLAM1 (0x0200) |
|
#define | BPC4_BPLAM0 (0x0100) |
|
#define | BPC4_ESPRM7 (0x0080) /* 4 high bits for even sprite colors */ |
|
#define | BPC4_ESPRM6 (0x0040) |
|
#define | BPC4_ESPRM5 (0x0020) |
|
#define | BPC4_ESPRM4 (0x0010) |
|
#define | BPC4_OSPRM7 (0x0008) /* 4 high bits for odd sprite colors */ |
|
#define | BPC4_OSPRM6 (0x0004) |
|
#define | BPC4_OSPRM5 (0x0002) |
|
#define | BPC4_OSPRM4 (0x0001) |
|
#define | BMC0_HARDDIS (0x4000) /* Disable hardware limits */ |
|
#define | BMC0_LPENDIS (0x2000) /* Disable light pen latch */ |
|
#define | BMC0_VARVBEN (0x1000) /* Enable variable vertical blank */ |
|
#define | BMC0_LOLDIS (0x0800) /* Disable long/short line toggle */ |
|
#define | BMC0_CSCBEN (0x0400) /* Composite sync/blank */ |
|
#define | BMC0_VARVSYEN (0x0200) /* Enable variable vertical sync */ |
|
#define | BMC0_VARHSYEN (0x0100) /* Enable variable horizontal sync */ |
|
#define | BMC0_VARBEAMEN (0x0080) /* Enable variable beam counters */ |
|
#define | BMC0_DUAL (0x0040) /* Enable alternate horizontal beam counter */ |
|
#define | BMC0_PAL (0x0020) /* Set decodes for PAL */ |
|
#define | BMC0_VARCSYEN (0x0010) /* Enable variable composite sync */ |
|
#define | BMC0_BLANKEN (0x0008) /* Blank enable (no longer used on AGA) */ |
|
#define | BMC0_CSYTRUE (0x0004) /* CSY polarity */ |
|
#define | BMC0_VSYTRUE (0x0002) /* VSY polarity */ |
|
#define | BMC0_HSYTRUE (0x0001) /* HSY polarity */ |
|
#define | FMODE_SSCAN2 (0x8000) /* Sprite scan-doubling */ |
|
#define | FMODE_BSCAN2 (0x4000) /* Use PF2 modulus every other line */ |
|
#define | FMODE_SPAGEM (0x0008) /* Sprite page mode */ |
|
#define | FMODE_SPR32 (0x0004) /* Sprite 32 bit fetch */ |
|
#define | FMODE_BPAGEM (0x0002) /* Bitplane page mode */ |
|
#define | FMODE_BPL32 (0x0001) /* Bitplane 32 bit fetch */ |
|
#define | PAL_DIWSTRT_H (360) /* PAL Window Limits */ |
|
#define | PAL_DIWSTRT_V (48) |
|
#define | PAL_HTOTAL (1816) |
|
#define | PAL_VTOTAL (625) |
|
#define | NTSC_DIWSTRT_H (360) /* NTSC Window Limits */ |
|
#define | NTSC_DIWSTRT_V (40) |
|
#define | NTSC_HTOTAL (1816) |
|
#define | NTSC_VTOTAL (525) |
|
#define | up2(v) (((v) + 1) & -2) |
|
#define | down2(v) ((v) & -2) |
|
#define | div2(v) ((v)>>1) |
|
#define | mod2(v) ((v) & 1) |
|
#define | up4(v) (((v) + 3) & -4) |
|
#define | down4(v) ((v) & -4) |
|
#define | mul4(v) ((v) << 2) |
|
#define | div4(v) ((v)>>2) |
|
#define | mod4(v) ((v) & 3) |
|
#define | up8(v) (((v) + 7) & -8) |
|
#define | down8(v) ((v) & -8) |
|
#define | div8(v) ((v)>>3) |
|
#define | mod8(v) ((v) & 7) |
|
#define | up16(v) (((v) + 15) & -16) |
|
#define | down16(v) ((v) & -16) |
|
#define | div16(v) ((v)>>4) |
|
#define | mod16(v) ((v) & 15) |
|
#define | up32(v) (((v) + 31) & -32) |
|
#define | down32(v) ((v) & -32) |
|
#define | div32(v) ((v)>>5) |
|
#define | mod32(v) ((v) & 31) |
|
#define | up64(v) (((v) + 63) & -64) |
|
#define | down64(v) ((v) & -64) |
|
#define | div64(v) ((v)>>6) |
|
#define | mod64(v) ((v) & 63) |
|
#define | upx(x, v) (((v) + (x) - 1) & -(x)) |
|
#define | downx(x, v) ((v) & -(x)) |
|
#define | modx(x, v) ((v) & ((x) - 1)) |
|
#define | DIVUL(x1, x2) |
|
#define | highw(x) ((u_long)(x)>>16 & 0xffff) |
|
#define | loww(x) ((u_long)(x) & 0xffff) |
|
#define | custom amiga_custom |
|
#define | VBlankOn() custom.intena = IF_SETCLR|IF_COPER |
|
#define | VBlankOff() custom.intena = IF_COPER |
|
#define | VIDEOMEMSIZE_AGA_2M (1310720) /* AGA (2MB) : max 1280*1024*256 */ |
|
#define | VIDEOMEMSIZE_AGA_1M (786432) /* AGA (1MB) : max 1024*768*256 */ |
|
#define | VIDEOMEMSIZE_ECS_2M (655360) /* ECS (2MB) : max 1280*1024*16 */ |
|
#define | VIDEOMEMSIZE_ECS_1M (393216) /* ECS (1MB) : max 1024*768*16 */ |
|
#define | VIDEOMEMSIZE_OCS (262144) /* OCS : max ca. 800*600*16 */ |
|
#define | SPRITEMEMSIZE (64 * 64 / 4) /* max 64*64*4 */ |
|
#define | DUMMYSPRITEMEMSIZE (8) |
|
#define | CHIPRAM_SAFETY_LIMIT (16384) |
|
#define | assignchunk(name, type, ptr, size) |
|
#define | CMOVE(val, reg) (CUSTOM_OFS(reg) << 16 | (val)) |
|
#define | CMOVE2(val, reg) ((CUSTOM_OFS(reg) + 2) << 16 | (val)) |
|
#define | CWAIT(x, y) (((y) & 0x1fe) << 23 | ((x) & 0x7f0) << 13 | 0x0001fffe) |
|
#define | CEND (0xfffffffe) |
|
#define | FBIOGET_FCURSORINFO 0x4607 |
|
#define | FBIOGET_VCURSORINFO 0x4608 |
|
#define | FBIOPUT_VCURSORINFO 0x4609 |
|
#define | FBIOGET_CURSORSTATE 0x460A |
|
#define | FBIOPUT_CURSORSTATE 0x460B |
|
#define | FB_CURSOR_OFF 0 |
|
#define | FB_CURSOR_ON 1 |
|
#define | FB_CURSOR_FLASH 2 |
|
#define | NUM_TOTAL_MODES ARRAY_SIZE(ami_modedb) |
|
#define | DEFMODE_PAL 2 /* "pal" for PAL OCS/ECS */ |
|
#define | DEFMODE_NTSC 0 /* "ntsc" for NTSC OCS/ECS */ |
|
#define | DEFMODE_AMBER_PAL 3 /* "pal-lace" for flicker fixed PAL (A3000) */ |
|
#define | DEFMODE_AMBER_NTSC 1 /* "ntsc-lace" for flicker fixed NTSC (A3000) */ |
|
#define | DEFMODE_AGA 19 /* "vga70" for AGA */ |
|
#define | hscroll2hw(hscroll) |
|
#define | diwstrt2hw(diwstrt_h, diwstrt_v) (((diwstrt_v) << 7 & 0xff00) | ((diwstrt_h)>>2 & 0x00ff)) |
|
#define | diwstop2hw(diwstop_h, diwstop_v) (((diwstop_v) << 7 & 0xff00) | ((diwstop_h)>>2 & 0x00ff)) |
|
#define | diwhigh2hw(diwstrt_h, diwstrt_v, diwstop_h, diwstop_v) |
|
#define | ddfstrt2hw(ddfstrt) div8(ddfstrt) |
|
#define | ddfstop2hw(ddfstop) div8(ddfstop) |
|
#define | hsstrt2hw(hsstrt) (div8(hsstrt)) |
|
#define | hsstop2hw(hsstop) (div8(hsstop)) |
|
#define | htotal2hw(htotal) (div8(htotal) - 1) |
|
#define | vsstrt2hw(vsstrt) (div2(vsstrt)) |
|
#define | vsstop2hw(vsstop) (div2(vsstop)) |
|
#define | vtotal2hw(vtotal) (div2(vtotal) - 1) |
|
#define | hcenter2hw(htotal) (div8(htotal)) |
|
#define | hbstrt2hw(hbstrt) (((hbstrt) << 8 & 0x0700) | ((hbstrt)>>3 & 0x00ff)) |
|
#define | hbstop2hw(hbstop) (((hbstop) << 8 & 0x0700) | ((hbstop)>>3 & 0x00ff)) |
|
#define | vbstrt2hw(vbstrt) (div2(vbstrt)) |
|
#define | vbstop2hw(vbstop) (div2(vbstop)) |
|
#define | rgb2hw8_high(red, green, blue) (((red & 0xf0) << 4) | (green & 0xf0) | ((blue & 0xf0)>>4)) |
|
#define | rgb2hw8_low(red, green, blue) (((red & 0x0f) << 8) | ((green & 0x0f) << 4) | (blue & 0x0f)) |
|
#define | rgb2hw4(red, green, blue) (((red & 0xf0) << 4) | (green & 0xf0) | ((blue & 0xf0)>>4)) |
|
#define | rgb2hw2(red, green, blue) (((red & 0xc0) << 4) | (green & 0xc0) | ((blue & 0xc0)>>4)) |
|
#define | spr2hw_pos(start_v, start_h) (((start_v) << 7 & 0xff00) | ((start_h)>>3 & 0x00ff)) |
|
#define | spr2hw_ctl(start_v, start_h, stop_v) |
|
#define | get_vbpos() ((u_short)((*(u_long volatile *)&custom.vposr >> 7) & 0xffe)) |
|
#define | COPINITSIZE (sizeof(copins) * 40) |
|
#define | COPLISTSIZE (sizeof(copins) * 64) |
|
#define | Please update me |
|