pio_andw_rmw(D3X)
pio_andw_rmw - word I/O-bus read-modify-write cycle routines
As shipped in IRIX 6.5.22. Unchanged since IRIX 6.5.
NAME pio_andw_rmw - word I/O-bus read-modify-write cycle routines SYNOPSIS pio_andw_rmw(piomap_t *piomap, iopaddr_t pioaddr, unsigned long mask); DESCRIPTION pio_andw_rmw perform an atomic I/O-bus read-modify-write operation. This function reads a word from the address given by the pioaddr argument. The function then ANDs the 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_andb_rmw(D3X), pio_andh_rmw(D3X)