From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Daniel Palmer <me@danielpalmer.co.uk>
Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: PATA_ARTOP reads byte from PCI IO port without mapping it to the right address.
Date: Wed, 30 Mar 2011 20:26:28 +0100 [thread overview]
Message-ID: <20110330202628.5dc8db5f@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <4D937FDC.4090607@danielpalmer.co.uk>
> unsigned long io = pci_resource_start(pdev, 4); // This
> returns 0x1400 on my machine
That is the PCI port address.
> u8 reg;
>
> ppi[0] = &info_628x;
> if (inb(io) & 0x10)
> // This reads from 0x1400, which isn't were the port actually
> is in the processors address
This reads from I/O port 0x1400 - your inb logic and I/O port mapping on
the platform is responsible for making that work.
next prev parent reply other threads:[~2011-03-30 19:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-30 19:09 Daniel Palmer
2011-03-30 19:26 ` Alan Cox [this message]
2011-03-30 19:36 ` Linus Torvalds
2011-03-30 19:48 ` Daniel Palmer
2011-03-30 20:00 ` Arnd Bergmann
2011-03-30 20:24 ` Daniel Palmer
2011-03-30 20:37 ` Arnd Bergmann
2011-03-30 20:24 ` Alan Cox
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=20110330202628.5dc8db5f@lxorguk.ukuu.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=me@danielpalmer.co.uk \
/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®