Re[2]: how to write info to a pci device

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

 



Eric> outb seem to be Intel specific and writeb need to map I/0 memory with ioremap

Eric> Which method is more standard for a pci device (portable)?

I think writeb() is more portable because e.g. in a PowerPC system you cant use inb(), outb()! Also
PowerPC is big endian, PCI is little endian. Sometimes you may have to use byte/word/double
word(Intel terminology) reverse inst. to access it in a PPC system. This functions can do it
magically for you! 

-- 
Bora SAHIN




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