[PATCH] via-cuda (CUDA_COMBINED_FORMAT_IIC)

STALE9545d

2 messages, 2 authors, 2000-08-30 · open the first message on its own page

[PATCH] via-cuda (CUDA_COMBINED_FORMAT_IIC)

From: Iain Sandoe <hidden>
Date: 2000-08-29 23:53:09

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.

Re: [PATCH] via-cuda (CUDA_COMBINED_FORMAT_IIC)

From: Michel Lanners <hidden>
Date: 2000-08-30 05:59:37

Hi Iain,

On  30 Aug, this message from Iain Sandoe echoed through cyberspace:
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   mlan@cpu.lu            |
http://www.cpu.lu/~mlan        |                     Learn Always. "


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help