* IO and PCI
@ 2002-06-29 7:31 sheltraw
2002-06-29 15:29 ` IO and PCIy Tim Hockin
0 siblings, 1 reply; 2+ messages in thread
From: sheltraw @ 2002-06-29 7:31 UTC (permalink / raw)
To: linux-kernel
Hello Kernel List
Is there a way to disable IO read/writes to a PCI device. The bit 0
of command register in PCI configuration space can be used to
disable/enable memory-mapped IO but will it disable direct IO
(what is the proper term?) as well?
I would like to be able to disable direct IO read/writes to one of
two video cards in an x386 while leaving the other alone. Then
I could use the direct IO registers to do palette changing and
enable interrupts on vertical blanking without doing so on both
cards (since they both respond to the same direct IO addresses).
Of course if I knew the addresses/offsets for memory-mapped versions
of the appropriate registers on one card I could solve this problem
but I do not neccesarily have that info.
Thanks for any help!
Daniel Sheltraw
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: IO and PCIy
2002-06-29 7:31 IO and PCI sheltraw
@ 2002-06-29 15:29 ` Tim Hockin
0 siblings, 0 replies; 2+ messages in thread
From: Tim Hockin @ 2002-06-29 15:29 UTC (permalink / raw)
To: sheltraw; +Cc: linux-kernel
> Is there a way to disable IO read/writes to a PCI device. The bit 0
> of command register in PCI configuration space can be used to
> disable/enable memory-mapped IO but will it disable direct IO
> (what is the proper term?) as well?
There are two bits - IO enable and MMIO enable. They are the 0x1 and 0x2
bits in the command register, respectively.
> enable interrupts on vertical blanking without doing so on both
> cards (since they both respond to the same direct IO addresses).
umm, should they be on the same IO? I've never mucked with dual video
cards, but that sounds odd...
> Of course if I knew the addresses/offsets for memory-mapped versions
> of the appropriate registers on one card I could solve this problem
> but I do not neccesarily have that info.
The pci regions are easily readable - you should dig up a copy of the PCI
spec - very good reading....
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-06-29 15:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-29 7:31 IO and PCI sheltraw
2002-06-29 15:29 ` IO and PCIy Tim Hockin
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®