Specifications

OpenVMS System Routines Called by OpenVMS AXP Device Drivers
IOC$CRAM_CMD
Command Index Description
CRAMCMD$K_WTBYTE32 Byte write in 32-bit space
CRAMCMD$K_RDQUAD64 Quadword read in 64 bit space
CRAMCMD$K_RDLONG64 Longword read in 64 bit space
CRAMCMD$K_RDWORD64 Word read in 64 bit space
CRAMCMD$K_RDBYTE64 Byte read in 64 bit space
CRAMCMD$K_WTQUAD64 Quadword write in 64 bit space
CRAMCMD$K_WTLONG64 Longword write in 64 bit space
CRAMCMD$K_WTWORD64 Word write in 64 bit space
CRAMCMD$K_WTBYTE64 Byte write in 64 bit space
byte_offset
VMS Usage: longword_unsigned
type: longword (unsigned)
access: read only
mechanism: by value
Byte offset of the field to be written or read from the base of device interface
register (CSR) space. Calculation of the RBADR and MASK fields of the hardware
mailbox depends on the addressing and masking mechanisms provided by the
remote bus. The byte_offset argument is used by IOC$CRAM_CMD to calculate
the RBADR.
adp_ptr
VMS Usage: longword_unsigned
type: longword (unsigned)
access: read only
mechanism: by reference
Address of ADP associated with this command. IOC$CRAM_CMD uses this
parameter to determine which tightly-coupled I/O interconnect is the object of the
mailbox transaction and to construct the mailbox command accordingly.
cram_ptr
VMS Usage: longword_unsigned
type: longword (unsigned)
access: read only
mechanism: by reference
Address of CRAM. IOC$CRAM_CMD returns the command, mask, and remote
bus address values in the corresponding fields of the hardware I/O mailbox.
Returns
VMS Usage: cond_value
type: longword_unsigned
access: longword (unsigned)
mechanism: write only—by value
Status indicating the success or failure of the operation.
A–15