Re: Help with reading register

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

 



On Tue, 30 Jul 2002, Kirill Messel wrote:

> If PCI card has 3 BAR How can i read value from BAR 3 with any offset?
> Thanks Kirill

io_base = pci_resource_start(pci_dev, BAR);

then you can outb/w/l and inb/w/l

e.g.

data = inb(io_base+OFFSET);

Cheers,
	Zwane

-- 
function.linuxpower.ca

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