Re: IO ports issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Am Donnerstag, 22. Mai 2003 10:09 schrieben Sie:
> Today, Franz Reinhardt wrote:
> > 1. Rubini mentioned it in his book.
> > 2. the saa7134 driver and IIRC bttv does it that way
>
> Yes, correct.
>
> > /* get mmio */
>
> It is for MMIO only. You still use [in|out][b|w|l] for IO ports
> proper.
>
> AC seemed to suggest that it is not even necessary to call
> *_request_region*() which seems to be correct.  I do it anyway, as
> /proc/ioports then shows my module as having claimed that part of IO
> space.

Just to go for sure:

AC's example: Take the io ports from pci address space and write to the 
physical adresses, using inb,outb ...

saa7134 driver: Take the io ports from pci address space, request and 
remap them and write to the virtual adresses, using writel, readl ..

After that I suggest, you can always write to io ports (at least on x86 
arch) without mapping to memory nor requesting *region*(). 

Franz




[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux