Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _VIDEO_S3BLIT_H |
| 2 | #define _VIDEO_S3BLIT_H |
| 3 | |
| 4 | /* s3 commands */ |
| 5 | #define S3_BITBLT 0xc011 |
| 6 | #define S3_TWOPOINTLINE 0x2811 |
| 7 | #define S3_FILLEDRECT 0x40b1 |
| 8 | |
| 9 | #define S3_FIFO_EMPTY 0x0400 |
| 10 | #define S3_HDW_BUSY 0x0200 |
| 11 | |
| 12 | /* Enhanced register mapping (MMIO mode) */ |
| 13 | |
| 14 | #define S3_READ_SEL 0xbee8 /* offset f */ |
| 15 | #define S3_MULT_MISC 0xbee8 /* offset e */ |
| 16 | #define S3_ERR_TERM 0x92e8 |
| 17 | #define S3_FRGD_COLOR 0xa6e8 |
| 18 | #define S3_BKGD_COLOR 0xa2e8 |
| 19 | #define S3_PIXEL_CNTL 0xbee8 /* offset a */ |
| 20 | #define S3_FRGD_MIX 0xbae8 |
| 21 | #define S3_BKGD_MIX 0xb6e8 |
| 22 | #define S3_CUR_Y 0x82e8 |
| 23 | #define S3_CUR_X 0x86e8 |
| 24 | #define S3_DESTY_AXSTP 0x8ae8 |
| 25 | #define S3_DESTX_DIASTP 0x8ee8 |
| 26 | #define S3_MIN_AXIS_PCNT 0xbee8 /* offset 0 */ |
| 27 | #define S3_MAJ_AXIS_PCNT 0x96e8 |
| 28 | #define S3_CMD 0x9ae8 |
| 29 | #define S3_GP_STAT 0x9ae8 |
| 30 | #define S3_ADVFUNC_CNTL 0x4ae8 |
| 31 | #define S3_WRT_MASK 0xaae8 |
| 32 | #define S3_RD_MASK 0xaee8 |
| 33 | |
| 34 | /* Enhanced register mapping (Packed MMIO mode, write only) */ |
| 35 | #define S3_ALT_CURXY 0x8100 |
| 36 | #define S3_ALT_CURXY2 0x8104 |
| 37 | #define S3_ALT_STEP 0x8108 |
| 38 | #define S3_ALT_STEP2 0x810c |
| 39 | #define S3_ALT_ERR 0x8110 |
| 40 | #define S3_ALT_CMD 0x8118 |
| 41 | #define S3_ALT_MIX 0x8134 |
| 42 | #define S3_ALT_PCNT 0x8148 |
| 43 | #define S3_ALT_PAT 0x8168 |
| 44 | |
| 45 | /* Drawing modes */ |
| 46 | #define S3_NOTCUR 0x0000 |
| 47 | #define S3_LOGICALZERO 0x0001 |
| 48 | #define S3_LOGICALONE 0x0002 |
| 49 | #define S3_LEAVEASIS 0x0003 |
| 50 | #define S3_NOTNEW 0x0004 |
| 51 | #define S3_CURXORNEW 0x0005 |
| 52 | #define S3_NOT_CURXORNEW 0x0006 |
| 53 | #define S3_NEW 0x0007 |
| 54 | #define S3_NOTCURORNOTNEW 0x0008 |
| 55 | #define S3_CURORNOTNEW 0x0009 |
| 56 | #define S3_NOTCURORNEW 0x000a |
| 57 | #define S3_CURORNEW 0x000b |
| 58 | #define S3_CURANDNEW 0x000c |
| 59 | #define S3_NOTCURANDNEW 0x000d |
| 60 | #define S3_CURANDNOTNEW 0x000e |
| 61 | #define S3_NOTCURANDNOTNEW 0x000f |
| 62 | |
| 63 | #define S3_CRTC_ADR 0x03d4 |
| 64 | #define S3_CRTC_DATA 0x03d5 |
| 65 | |
| 66 | #define S3_REG_LOCK2 0x39 |
| 67 | #define S3_HGC_MODE 0x45 |
| 68 | |
| 69 | #define S3_HWGC_ORGX_H 0x46 |
| 70 | #define S3_HWGC_ORGX_L 0x47 |
| 71 | #define S3_HWGC_ORGY_H 0x48 |
| 72 | #define S3_HWGC_ORGY_L 0x49 |
| 73 | #define S3_HWGC_DX 0x4e |
| 74 | #define S3_HWGC_DY 0x4f |
| 75 | |
| 76 | |
| 77 | #define S3_LAW_CTL 0x58 |
| 78 | |
| 79 | #endif /* _VIDEO_S3BLIT_H */ |