|
|
1.1 ! root 1: typedef struct Duart Duart; ! 2: ! 3: #define SYNCREG ((char*)0x40400000) ! 4: #define DISPLAYRAM 0x02000000 ! 5: #define DUARTREG ((Duart*)0x40100000) ! 6: #define PORT ((uchar *)0x40300000) ! 7: ! 8: /* ! 9: * Balu ! 10: */ ! 11: typedef struct Balu Balu; ! 12: ! 13: struct Balu{ ! 14: ulong src[4]; ! 15: ulong dst[4]; ! 16: ulong res[4]; ! 17: ulong cr0; ! 18: ulong cr1; ! 19: }; ! 20: ! 21: #define BALU ((Balu *) 0xc0000000) ! 22: #define OR(x,n) (ulong *) (((ulong) (x)) | n) ! 23: #define SOR(x) (OR(x,0x30000000)) ! 24: #define DOR(x) (OR(x,0x20000000)) ! 25: ! 26: /* goo for cr0 manipulations */ ! 27: #define OPLENMA 0x0000ffff /* 15 bits only needed */ ! 28: #define OPLENSH 0 ! 29: #define OPCNTMA 0xffff0000 /* 16 bit signed */ ! 30: #define OPCNTSH 16 ! 31: ! 32: /* goo for cr1 manipulations */ ! 33: #define ALUOPMA 0x0000001f /* 5bits */ ! 34: #define ALUOPSH 0 ! 35: #define PIXELMA 0x00000060 /* 2bits */ ! 36: #define PIXELSH 5 ! 37: #define SHMAGMA 0x00000f80 /* 5bits */ ! 38: #define SHMAGSH 7 ! 39: #define ALIGNMA 0x00003000 /* 2bits */ ! 40: #define ALIGNSH 12 ! 41: #define RLSCANMA 0x00004000 /* 1bit */ ! 42: #define RLSCANSH 14 ! 43: #define QOPMA 0x00008000 /* 1bit */ ! 44: #define QOPSH 15 ! 45: #define RMASKMA 0x001f0000 /* 5bits */ ! 46: #define RMASKSH 16 ! 47: #define LMASKMA 0x03e00000 /* 5bits */ ! 48: #define LMASKSH 21 ! 49: ! 50: enum ! 51: { ! 52: SUB = 0x10, /* balu arithmetic codes */ ! 53: SSUB = 0x11, ! 54: ADD = 0x12, ! 55: SADD = 0x13, ! 56: MIN = 0x14, ! 57: MAX = 0x15 ! 58: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.