Modestus Moon OS  R4
CS 450 project
io.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define outb(port, data)   asm volatile ("outb %%al,%%dx" : : "a" (data), "d" (port))
 
#define inb(port)
 

Macro Definition Documentation

#define inb (   port)
Value:
({ \
unsigned char r; \
asm volatile ("inb %%dx,%%al": "=a" (r): "d" (port)); \
r; \
})
#define asm
Definition: system.h:11

Definition at line 15 of file io.h.

Referenced by do_isr(), get_date(), get_time(), init_serial(), and serial_poll().

#define outb (   port,
  data 
)    asm volatile ("outb %%al,%%dx" : : "a" (data), "d" (port))