mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vishal Linux <vishal.linux@gmail.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: How to get SDA/SCL bit position in the control word register of the video card?
Date: Thu, 24 Nov 2005 10:45:14 +0000	[thread overview]
Message-ID: <e3e24c6a0511240245i1d395ae6g4d768a75a602d6ce@mail.gmail.com> (raw)

Hello,


I am trying to communicate to the monitor eeprom to get the monitor
capabilities and for that i need to have SDA/SCL bit positions in the
control word register of the video card (to read and wrtie data using
i2c protocol).

Different video card vendors have different offsets for the control
word register and different bit positions for SDA/SCL.

I tried to use linux kernel API char* get_EDID_from_BIOS(void*) and
then using kgdb to debug the kernel module (that i wrote) to get the
same  but failed to find the way to get the above.

I do have the offset of the control word register and Masking Value of
Intel and Matrox card but i would like NOT to hardcode the masking
value and the offset in my code. This will lead me to modify  my code
for the different cards.

Is there any way to get the control word register's address (and then
SDA/SCL bit position) on the linux operating system. Is this
information available to linux kernel ?

FYI : Masking Value that i am referring to is the value that has to be
ANDed to the DATA(bit - 0/1) before writing it to Control word
register so that the right bit can be written on to the SDA/SCL lines.

Any pointers to this or your guidance would be highly appreciated.

warm regards,
Vishal Soni.

             reply	other threads:[~2005-11-24 10:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-24 10:45 Vishal Linux [this message]
2005-11-24 10:53 ` Vojtech Pavlik
2005-11-25 19:33 ` Jean Delvare
2005-11-26  4:12   ` Vishal Linux
2005-11-26 10:36     ` Jean Delvare
2005-11-26 11:25       ` Vishal Soni
2005-11-26 11:34       ` Antonino A. Daplas

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=e3e24c6a0511240245i1d395ae6g4d768a75a602d6ce@mail.gmail.com \
    --to=vishal.linux@gmail.com \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®