Adding PCI memory to kernel.

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

 



Hello,

  I have a PCI card with RAM mapped through BAR 0. What is the best way to 
add this memory to the kernel from the device driver? Is the following
sufficient?

  mem_start = pci_resource_start(struct pci_dev *mydev, 0);
  mem_len = pci_resource_len(struct pci_dev *mydev, 0);

  add_memory_region(mem_start, mem_len, ??)

  I am using x86_64, Fedora Core 3.

Thanks.

Sadik.

--
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