NAME
vme_rmw - Performs a VMEbus read/modify/write cycle.
SYNOPSIS
vme_rmw [-a addr_mod] [-A vme_addr] [-d dwidth] [-f flags]OPTIONS
- -a addr_mod
-
VMEbus address modifer. Possible values are:
- VME_A16S - Short supervisory access.
- VME_A16U - Short nonprivileged access
- VME_A24SB - Standard supervisory block transfer
- VME_A24SD - Standard supervisory data access
- VME_A24SP - Standard supervisory program access
- VME_A24UB - Standard nonprivileged block transfer
- VME_A24UD - Standard nonprivileged data access
- VME_A24UP - Standard nonprivileged program access
- VME_A32SB - Extended supervisory block transfer
- VME_A32SD - Extended supervisory data access
- VME_A32SP - Extended supervisory program access
- VME_A32UB - Extended nonprivileged block transfer
- VME_A32UD - Extended nonprivileged data access
- VME_A32UP - Extended nonprivileged program access
- -A vme_addr
-
VMEbus address to begin transfer.
- -d dwidth
-
Transfer data width. Possible values are:
- VME_D8
- VME_D16
- VME_D32
- -f flags
-
Flags to pass to the vme_master_window_create function. The following constants may be OR'ed together:
- VME_CTL_PWEN - Enable posted writes.
- VME_CTL_EXCLUSIVE - This window will not be shared.
One of the following values for max data width can be used. If a value is not specifed, a default max data width is selected.
- VME_CTL_MAX_DW_64
- VME_CTL_MAX_DW_32
- VME_CTL_MAX_DW_16
- VME_CTL_MAX_DW_8
- VME_CTL_PCI_IO_SPACE - Open the window to PCI I/O space.
PARAMETERS
- mask
Mask of bits to compare.
- cmp
Bit value against which the read value is compared.
- swap
Bit values to write to bits that compare true.
DESCRIPTION
Performs a VMEbus read/modify/write cycle. The cycle is performed by reading a value from the VMEbus and bitwise-comparing masked values (true/false) with the contents of cmp. All true bits are swapped with the contents of the swap register.