POK(kernelpart)
/home/jaouen/pok_official/pok/trunk/kernel/include/arch/x86/ioports.h File Reference
#include <core/syscall.h>

Go to the source code of this file.

Defines

#define outb(port, data)
#define inb(port)
#define outl(port, data)
#define inl(port)

Define Documentation

#define inb (   port)
Value:
({                                                              \
  unsigned char res;                                            \
  asm volatile ("inb %w1,%0"                                    \
                :"=a" (res)                                     \
                :"d" (port));                                   \
  res;                                                          \
})

Definition at line 28 of file ioports.h.

#define inl (   port)
Value:
({                                                              \
  unsigned int res;                                             \
  asm volatile ("inl %w1,%0"                                    \
                :"=a" (res)                                     \
                :"d" (port));                                   \
  res;                                                          \
})

Definition at line 42 of file ioports.h.

#define outb (   port,
  data 
)
Value:
asm volatile ("outb %b0,%w1"                                  \
                :                                               \
                :"a" (data),"d" (port))

Definition at line 23 of file ioports.h.

#define outl (   port,
  data 
)
Value:
asm volatile ("outl %0,%w1"                                     \
                :                                               \
                :"a" (data),"d" (port))

Definition at line 37 of file ioports.h.