pio_andh_rmw(D3X)
pio_andh_rmw - half-word I/O-bus read-modify-write cycle routine
As shipped in IRIX 6.5.5. Unchanged since IRIX 6.5.
NAME pio_andh_rmw - half-word I/O-bus read-modify-write cycle routine SYNOPSIS pio_andh_rmw(piomap_t *piomap, iopaddr_t pioaddr, unsigned short mask); DESCRIPTION pio_andh_rmw performs an atomic I/O-bus read-modify-write operation. This function reads a half-word from the address given by the pioaddr argument. The function then ANDs the half-word with the mask specified by mask, and writes the result to the address, pioaddr. To prevent any other I/O-bus cycles during this operation, this function locks the I/O bus. piomap is the PIO map returned from pio_mapalloc(D3X). Note The address must be correctly aligned for the given transfer. See Also pio_orb_rmw(D3X), pio_andh_rmw(D3X), pio_andw_rmw(D3X)