public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Lee Revell <rlrevell@joe-job.com>
To: abonilla <abonilla@linuxwireless.org>
Cc: Shawn Starr <shawn.starr@rogers.com>, linux-kernel@vger.kernel.org
Subject: Re: Linux support for IBM ThinkPad Disk shock prevention update...
Date: Thu, 14 Apr 2005 19:03:51 -0400	[thread overview]
Message-ID: <1113519832.19830.20.camel@mindpipe> (raw)
In-Reply-To: <20050414224215.M94640@linuxwireless.org>

On Thu, 2005-04-14 at 18:46 -0400, abonilla wrote:
> On Thu, 14 Apr 2005 17:15:16 -0400, Lee Revell wrote
> > On Thu, 2005-04-14 at 16:58 -0400, Shawn Starr wrote:
> > > We just need to figure
> > > out to get the specs from IBM
> > 
> > Best bet is probably reverse engineering it...
>  
> Lee, 
> 
> I know this is far from easy... but, What do we need to do this? I haven't
> seen such a cooler feature in a Thinkpad like the HDAPS. (Well, maybe the
> fingerprint reader) But, how can we / I help, if this is ever done?
> 

Please see:

http://dxr3.sourceforge.net/re.html

I have discovered several previously unknown emu10k1 hardware features
using this procedure to reverse engineer the Windows drivers, including
a per channel half loop interrupt, and added support to the Linux driver
for some of them.

It may be much easier to find the read and write register subroutines
than in the above guide.  The Windows driver I was working with had
exactly one subroutine that used the inb, inl, inw, outb, outw, outl
instructions, so it was trivial to set breakpoints to log all the port
I/O.  I later found it was even easier, the version of SoftIce I was
using allows you to set I/O breakpoints, so all you need to start
logging the register activity is the port.

I had a little trouble loading the IDA symbols into SoftICE at first,
just because the first few scripts I found on the net didn't work.

Some devices use memory mapped IO, I have no idea how you would RE
these.  Maybe someone else has some pointers?

Lee


  reply	other threads:[~2005-04-14 23:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-14 20:58 Linux support for IBM ThinkPad Disk shock prevention update Shawn Starr
2005-04-14 21:10 ` Alejandro Bonilla
2005-04-14 21:15 ` Lee Revell
2005-04-14 22:46   ` abonilla
2005-04-14 23:03     ` Lee Revell [this message]
2005-04-15  3:24       ` Alejandro Bonilla

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=1113519832.19830.20.camel@mindpipe \
    --to=rlrevell@joe-job.com \
    --cc=abonilla@linuxwireless.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shawn.starr@rogers.com \
    /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