You should have a look in Linux Device Drivers, Cap. 9, and Cap. 12.<div><br><br><div class="gmail_quote">On Thu, Aug 18, 2011 at 1:04 PM, J.Hwan.Kim <span dir="ltr"><<a href="mailto:j.hwan.kim99@gmail.com">j.hwan.kim99@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">On 2011년 08월 18일 15:01, Vladimir Murzin wrote:<br>
> On Wed, Aug 17, 2011 at 3:33 PM, J.Hwan Kim<<a href="mailto:frog1120@gmail.com">frog1120@gmail.com</a>> wrote:<br>
>> Hi, everyone<br>
>><br>
>> In kernel source, where is the PCI IO memory resource allocation is done?<br>
>> (memory mapped io)<br>
>><br>
>> And can you explain the IO memory resource allocation mechanism?<br>
>><br>
>> Thanks in advance<br>
>><br>
>> Best Regards,<br>
>><br>
>> J.Hwan Kim<br>
<br>
> Hi J.Hwan,<br>
><br>
> Have you tried reading some books like Linux Device Drivers by<br>
> Jonathan Corbet, Alessandro<br>
> Rubini, and Greg Kroah-Hartman? In mentioned book there is a chapter<br>
> dedicated to PCI subsystem.<br>
><br>
<br>
Thank you for reply.<br>
<br>
As far as I know, the PCI mem resouces are allocated mainly by BIOS on<br>
Intel based system, but they can also be allocated by linux kernel<br>
according to boot command option.<br>
I tried to find the routine in kernel source directory, but it was not<br>
easy to find it.<br>
<br>
I want to find the source code in which linux kernel allocates the I/O<br>
memory for PCI device.<br>
I had a problem in my pci device which uses SR-IOV function indicates that<br>
the MMIO is allocated in sufficiently and my BIOS is old version,<br>
so I hope to solve the problem using the linux kerenl for allocating the<br>
I/O mem<br>
for the pci device and to know where the source code is for that.<br>
<br>
Best Regards,<br>
J.Hwan Kim<br>
<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div><br></div>