public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG] cannot access IO ports in CMI8738 sound chip.
@ 2008-01-21  6:25 Katsuya MATSUBARA
  2008-01-21  6:41 ` Paul Mundt
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Katsuya MATSUBARA @ 2008-01-21  6:25 UTC (permalink / raw)
  To: linux-sh


 Hi all,

 I am writing a code to use a CMI8738 sound chip, which is
 widely used on Intel x86. I am using such a chip through
 a PCI slot on R2D-PLUS.
 The CMI8738 has IO ports. The pci_resource_start() gives
 an IO port number (0x4000), however, this number cannot be
 used for IO accessing by in*()/out*().

 I found a patch for fixing PCI IO port accessing in some SH7780
 platforms and then submitted a similar patch for RTS7751R2D;
 http://www.spinics.net/lists/linux-sh/msg00254.html
 In my understanding, these patch substitute memory addresses
 for IO port numbers. Is it correct?
 Unfortunately CMI8738 cannot treat (large) memory addresses
 as IO port numers because some upper bits of 'Base Address
 Register 0' in the PCI configuration space cannot be updated.
 (pcibios_setup_bars() in arch/sh/drivers/pci/pci-auto.c
 updates the register with the memory address.)
 
 How should I fix the problem?
---
 Katsuya Matsubara

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-01-30  5:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-21  6:25 [BUG] cannot access IO ports in CMI8738 sound chip Katsuya MATSUBARA
2008-01-21  6:41 ` Paul Mundt
2008-01-21  7:39 ` Katsuya MATSUBARA
2008-01-21  7:52 ` Paul Mundt
2008-01-21  8:04 ` Katsuya MATSUBARA
2008-01-21  8:35 ` Paul Mundt
2008-01-21  9:18 ` Katsuya MATSUBARA
2008-01-21  9:37 ` Paul Mundt
2008-01-30  5:27 ` Katsuya MATSUBARA

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox