Re: PCI IO regions and IDE

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

 



struct ata_pci_init_native_mode(...)
{
   unsigned long bmdma;
   ...
   bmdma = pci_resource_start(pdev, 4);
   /* Memory reference to a direct physical address. */
   if (inb(bmdma + 2) & 8)
   ...
}


Perhaps you might want to use request_region() before using inb()?

Regards,

Rajat

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