All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Iain Sandoe" <iain@sandoe.co.uk>
To: linuxppc-dev@lists.linuxppc.org
Subject: [PATCH] via-cuda (CUDA_COMBINED_FORMAT_IIC)
Date: Wed, 30 Aug 2000 00:53:09 +0100	[thread overview]
Message-ID: <200008292353.AAA19158@hyperion.valhalla.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 1412 bytes --]

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.

[-- Attachment #2: i2c-probe.txt.bz2 --]
[-- Type: application/binary, Size: 937 bytes --]

[-- Attachment #3: cuda-combined-code-frag.txt.bz2 --]
[-- Type: application/binary, Size: 1102 bytes --]

[-- Attachment #4: cuda-CF-2-2-17p20b1-a.diff.bz2 --]
[-- Type: application/binary, Size: 7570 bytes --]

             reply	other threads:[~2000-08-29 23:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-29 23:53 Iain Sandoe [this message]
2000-08-30  5:59 ` [PATCH] via-cuda (CUDA_COMBINED_FORMAT_IIC) Michel Lanners
  -- strict thread matches above, loose matches on Subject: below --
2000-08-30  8:37 Iain Sandoe
2000-08-30  9:22 ` Michel Lanners
2000-08-30 11:44   ` Geert Uytterhoeven
2000-08-30  9:37 Iain Sandoe
2000-08-30 19:42 Iain Sandoe
2000-08-30 20:52 ` David A. Gatwood
2000-08-30 21:03 Iain Sandoe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200008292353.AAA19158@hyperion.valhalla.net \
    --to=iain@sandoe.co.uk \
    --cc=linuxppc-dev@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.