Re: how to write info to a pci device

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

 



Eric Clément (clement.eric@xxxxxxxxx) wrote:
> Hi,
> 
> I know the base address (I/O memory) of my device, but I don't know
> how to write information to the device.
> 
> Which fonction shoud I use :
> 
> outb, writeb or ... ?

I think you should use outb();
You can see how is declared writeb() for x86 :

	http://lxr.linux.no/source/include/asm-i386/io.h#L165
	
But I think you should give more information to us to be able to help
you.

						- Christophe

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