Hardware Monad Interface (work in progress)ContentsIndex
H.IOPorts
Description

Programmed IO (section 3.4 in the paper)

Many PC devices (including timers, the CMOS and real-time clock devices, the keyboard and mouse, network interfaces, etc.) are controlled by reading and writing data and control information to specified ports via special in and out instructions. These are available through H via the functions exported from this module.

Synopsis
type Port = Word16
inB :: Port -> H Word8
inW :: Port -> H Word16
inL :: Port -> H Word32
outB :: Port -> Word8 -> H ()
outW :: Port -> Word16 -> H ()
outL :: Port -> Word32 -> H ()
Produced by Haddock version 0.6