Mailinglist Archive: radeonhd (408 mails)
| < Previous | Next > |
Re: [radeonhd] Re: Understanding ATI assembler and AtomDis
- From: Alex Deucher <alexdeucher@xxxxxxxxx>
- Date: Fri, 5 Jun 2009 14:11:21 -0400
- Message-id: <a728f9f90906051111h4ba50b42nfa0018d38566f857@xxxxxxxxxxxxxx>
2009/6/5 Rafał Miłecki <zajec5@xxxxxxxxx>:
There are lots of sets of registers that have multiple instances in
register space (e.g., there are two identical sets of CRTC registers,
one for each CRTC, DACs and DIG PHYs on newer chips, etc.). That
command is used to select the offset added to the registers in order
to access different register blocks. Take a look at SetCRTC_Timing:
0009: 3da50400 COMP param[04] [.X..] <- 00
000d: 441300 JUMP_Equal 0013
0010: 3a0002 SET_REG_BLOCK 0200
if you've selected crtc 1, add an offset of 0x200 dwords (0x800 bytes)
to the registers, if it's crtc 0, do not.
Alex
--
To unsubscribe, e-mail: radeonhd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: radeonhd+help@xxxxxxxxxxxx
There is one more command I don't understand:
SET_REG_BLOCK 0000
SET_REG_BLOCK 0001
what does it do?
There are lots of sets of registers that have multiple instances in
register space (e.g., there are two identical sets of CRTC registers,
one for each CRTC, DACs and DIG PHYs on newer chips, etc.). That
command is used to select the offset added to the registers in order
to access different register blocks. Take a look at SetCRTC_Timing:
0009: 3da50400 COMP param[04] [.X..] <- 00
000d: 441300 JUMP_Equal 0013
0010: 3a0002 SET_REG_BLOCK 0200
if you've selected crtc 1, add an offset of 0x200 dwords (0x800 bytes)
to the registers, if it's crtc 0, do not.
Alex
--
To unsubscribe, e-mail: radeonhd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: radeonhd+help@xxxxxxxxxxxx
| < Previous | Next > |