Rev 1963 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1963 | Rev 3764 | ||
---|---|---|---|
Line 62... | Line 62... | ||
62 | #define PACKET2(v) (CP_PACKET2 | REG_SET(PACKET2_PAD, (v))) |
62 | #define PACKET2(v) (CP_PACKET2 | REG_SET(PACKET2_PAD, (v))) |
63 | #define PACKET3(op, n) (CP_PACKET3 | \ |
63 | #define PACKET3(op, n) (CP_PACKET3 | \ |
64 | REG_SET(PACKET3_IT_OPCODE, (op)) | \ |
64 | REG_SET(PACKET3_IT_OPCODE, (op)) | \ |
65 | REG_SET(PACKET3_COUNT, (n))) |
65 | REG_SET(PACKET3_COUNT, (n))) |
Line 66... | Line -... | ||
66 | - | ||
67 | #define PACKET_TYPE0 0 |
- | |
68 | #define PACKET_TYPE1 1 |
- | |
69 | #define PACKET_TYPE2 2 |
- | |
70 | #define PACKET_TYPE3 3 |
- | |
71 | - | ||
72 | #define CP_PACKET_GET_TYPE(h) (((h) >> 30) & 3) |
- | |
73 | #define CP_PACKET_GET_COUNT(h) (((h) >> 16) & 0x3FFF) |
- | |
74 | #define CP_PACKET0_GET_REG(h) (((h) & 0x1FFF) << 2) |
- | |
75 | #define CP_PACKET0_GET_ONE_REG_WR(h) (((h) >> 15) & 1) |
- | |
76 | #define CP_PACKET3_GET_OPCODE(h) (((h) >> 8) & 0xFF) |
- | |
77 | 66 | ||
78 | /* Registers */ |
67 | /* Registers */ |
79 | #define R_0000F0_RBBM_SOFT_RESET 0x0000F0 |
68 | #define R_0000F0_RBBM_SOFT_RESET 0x0000F0 |
80 | #define S_0000F0_SOFT_RESET_CP(x) (((x) & 0x1) << 0) |
69 | #define S_0000F0_SOFT_RESET_CP(x) (((x) & 0x1) << 0) |
81 | #define G_0000F0_SOFT_RESET_CP(x) (((x) >> 0) & 0x1) |
70 | #define G_0000F0_SOFT_RESET_CP(x) (((x) >> 0) & 0x1) |