Re: RAM or "empty"?

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

 



> An empty region of memory is where there exist no physical ram / io memory.
> I can quote a real life example.
> I had a pci bridge and some devices on the secondary side of the bridge. 
> I configured 1 MB
> starting from 0x8000_0000 for the bridge. i.e, any access to this 
> address will fetch data from the pci devices
> then I do a request_mem_region (0x80000000, 0x00100000, "pci_non_trans");
> An ioremap () on the returned address will give a virtual address which 
> can be used for accessing it.

ioremap on the returned address??:
addr =  request_mem_region ( physical, ...);
ioremap( addr, ... ) ???... 
first I thought the correct was the inverse:  
addr = ioremap(physical, ..); 
request_mem_region( addr, ...), 
but Thekkedath (if i understood him correctly; thanks Thekkedath)
alerted me i must request_mem_region( physical, ...); but i am still
thinking i must ioremap( physical, ...) ... Am I wrong (again?) ?

- Riba



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux