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 203... Line 203...
203
#define PACKET2(v)	(CP_PACKET2 | REG_SET(PACKET2_PAD, (v)))
203
#define PACKET2(v)	(CP_PACKET2 | REG_SET(PACKET2_PAD, (v)))
204
#define PACKET3(op, n)	(CP_PACKET3 |					\
204
#define PACKET3(op, n)	(CP_PACKET3 |					\
205
			 REG_SET(PACKET3_IT_OPCODE, (op)) |		\
205
			 REG_SET(PACKET3_IT_OPCODE, (op)) |		\
206
			 REG_SET(PACKET3_COUNT, (n)))
206
			 REG_SET(PACKET3_COUNT, (n)))
Line 207... Line -...
207
 
-
 
208
#define	PACKET_TYPE0	0
-
 
209
#define	PACKET_TYPE1	1
-
 
210
#define	PACKET_TYPE2	2
-
 
211
#define	PACKET_TYPE3	3
-
 
212
 
-
 
213
#define CP_PACKET_GET_TYPE(h) (((h) >> 30) & 3)
-
 
214
#define CP_PACKET_GET_COUNT(h) (((h) >> 16) & 0x3FFF)
-
 
215
#define CP_PACKET0_GET_REG(h) (((h) & 0x1FFF) << 2)
-
 
216
#define CP_PACKET0_GET_ONE_REG_WR(h) (((h) >> 15) & 1)
-
 
217
#define CP_PACKET3_GET_OPCODE(h) (((h) >> 8) & 0xFF)
-
 
218
 
207
 
219
/* Registers */
208
/* Registers */
220
#define R_0000F0_RBBM_SOFT_RESET                     0x0000F0
209
#define R_0000F0_RBBM_SOFT_RESET                     0x0000F0
221
#define   S_0000F0_SOFT_RESET_CP(x)                    (((x) & 0x1) << 0)
210
#define   S_0000F0_SOFT_RESET_CP(x)                    (((x) & 0x1) << 0)
222
#define   G_0000F0_SOFT_RESET_CP(x)                    (((x) >> 0) & 0x1)
211
#define   G_0000F0_SOFT_RESET_CP(x)                    (((x) >> 0) & 0x1)