Skip to contentSkip to conversation

via-cuda (CUDA_COMBINED_FORMAT_IIC)

PATCH In review Iain Sandoe 2 participants 2 messages Aug 29, 2000 – Aug 30, 2000

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 via-cuda (CUDA_COMBINED_FORMAT_IIC)

hi,

Attached are:

1/ a patch that adds CUDA_COMBINED_FORMAT_IIC support (at the moment to 2.2.17 - although it should go into 2.4.0 relatively easily). This allows you to dump the contents of things on the i2c bus (where it is supported) using via-cuda.

This has meant a modification of the cuda state machine, in the process I've made it a bit more paranoid about passed params & buffer overflows etc.

This release has an amount of (ifdef'd) debugging printks that will be removed if no-one reports any serious problems.

files patched:
drivers/macintosh/via-cuda.c
include/asm-ppc/adb.h
include/asm-ppc/cuda.h

It also adds support for using cuda adb in xmon for 2.2.x (separate patch to follow) - this is already done in 2.4.0.

2/ a small code fragment showing the use of the COMBINED_FORMAT_IIC command (you *must* set the adb request reply length to limit what you want back - since the cuda does not seem to stop sending voluntarily).

3/ the output of this when run on my G3-beige.

Unfortunately, the one chip I *really* want to probe (the TDA7433 on the audio card - i2c address 0x8a) doesn't seem to give a proper response... so if anyone knows more about this - I'd be interested.

Patches against linuxcare linux-pmac-benh as of approx. 00:00 BST 29/09/2000.
Should be equally OK against linux-pmac-stable.

I'll post them on sourceforge linuxppc & update my web page later...

Iain.

#1 lore raw

Hi Iain,

On 30 Aug, this message from Iain Sandoe echoed through cyberspace:

Quoted 3 lines

Unfortunately, the one chip I *really* want to probe (the TDA7433 on the audio card - i2c address 0x8a) doesn't seem to give a proper response... so if anyone knows more about this - I'd be interested.

Hmm, are you sure it is actually attached to the CUDA's I2C bus? The 7x00/8x00 series have a video input chip on an I2C bus as well, but not on CUDA... it's on PlanB, which includes its own I2C implementation. I don't know about the sound chips in those boxes, however. My first bet would be looking around AWACS if there is no I2C bus hidden there somewhere.

Michel

-------------------------------------------------------------------------

Michel Lanners                 |  " Read Philosophy.  Study Art.
23, Rue Paul Henkes            |    Ask Questions.  Make Mistakes.
L-1710 Luxembourg              |
email   [email protected]            |
http://www.cpu.lu/~mlan        |                     Learn Always. "

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/