next up previous contents
Next: I/O register detail Up: Operation Previous: Operation

I/O register map

There are eight 32-bit registers in a P-PCI-LV interface. Table gif shows those registers. Those registers can be accessed via PCI I/O address space. Linux supports functions called inl and outl for accessing PCI I/O address space in 32-bit unit. The access methods are as follows;

extern inline unsigned int
inl (unsigned short port)
{
  unsigned int _v;

  __asm__ __volatile__ ("inl %w1,%0":"=a" (_v):"Nd" (port));
  return _v;
}
extern inline void
outl (unsigned int value, unsigned short port)
{
  __asm__ __volatile__ ("outl %0,%w1": :"a" (value), "Nd" (port));
}

 
Table: I/O register map  



Yoshiji Yasu
2002年08月06日 18時03分20秒