Subversion Repositories Kolibri OS

Rev

Rev 1963 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1963 Rev 3764
Line 63... Line 63...
63
#define PACKET2(v)	(CP_PACKET2 | REG_SET(PACKET2_PAD, (v)))
63
#define PACKET2(v)	(CP_PACKET2 | REG_SET(PACKET2_PAD, (v)))
64
#define PACKET3(op, n)	(CP_PACKET3 |					\
64
#define PACKET3(op, n)	(CP_PACKET3 |					\
65
			 REG_SET(PACKET3_IT_OPCODE, (op)) |		\
65
			 REG_SET(PACKET3_IT_OPCODE, (op)) |		\
66
			 REG_SET(PACKET3_COUNT, (n)))
66
			 REG_SET(PACKET3_COUNT, (n)))
Line 67... Line -...
67
 
-
 
68
#define	PACKET_TYPE0	0
-
 
69
#define	PACKET_TYPE1	1
-
 
70
#define	PACKET_TYPE2	2
-
 
71
#define	PACKET_TYPE3	3
-
 
72
 
-
 
73
#define CP_PACKET_GET_TYPE(h) (((h) >> 30) & 3)
-
 
74
#define CP_PACKET_GET_COUNT(h) (((h) >> 16) & 0x3FFF)
-
 
75
#define CP_PACKET0_GET_REG(h) (((h) & 0x1FFF) << 2)
-
 
76
#define CP_PACKET0_GET_ONE_REG_WR(h) (((h) >> 15) & 1)
-
 
77
#define CP_PACKET3_GET_OPCODE(h) (((h) >> 8) & 0xFF)
-
 
78
 
67
 
79
/* Registers */
68
/* Registers */
80
#define R_000148_MC_FB_LOCATION                      0x000148
69
#define R_000148_MC_FB_LOCATION                      0x000148
81
#define   S_000148_MC_FB_START(x)                      (((x) & 0xFFFF) << 0)
70
#define   S_000148_MC_FB_START(x)                      (((x) & 0xFFFF) << 0)
82
#define   G_000148_MC_FB_START(x)                      (((x) >> 0) & 0xFFFF)
71
#define   G_000148_MC_FB_START(x)                      (((x) >> 0) & 0xFFFF)