Specifications
System Macros Invoked by Drivers
DPT_STORE
DPT_STORE
Instructs the system driver-loading procedure to store values in a table or data
structure.
Format
DPT_STORE str_type ,str_off ,oper ,exp [,pos] [,size]
Parameters
str_type
Type of data structure (CRB, DDB, IDB, ORB, or UCB) into which the driver-
loading procedure is to store the specified data, or a label denoting a table marker.
Table marker labels indicate the start of a list of DPT_STORE macro invocations
that store information for the driver-loading procedure in the driver initialization
table and driver reinitialization table sections of the DPT. If this argument is a
table marker label, no other argument is allowed. The following labels are used:
INIT Indicates the start of fields to initialize when the driver is loaded
REINIT Indicates the start of additional fields to initialize when the driver is
loaded and reinitialized when the driver is reloaded
END Indicates the end of the two lists
str_off
Unsigned offset into the data structure in which the data is to be stored. This
value cannot be more than 65,535 bytes.
oper
Type of storage operation, one of the following:
Type Meaning
B Write a byte value.
W Write a word value.
L Write a longword value.
D Write an address relative to the beginning of the driver.
V Write a bit field. If you specify a V in the oper argument, the
driver-loading procedure uses the exp, pos, and size arguments as
operands to an INSV instruction.
If an at sign (@) precedes the oper argument, the exp argument indicates the
address of the data that is to be stored and not the data itself.
exp
Expression indicating the value with which the driver-loading procedure is to
initialize the indicated field. If an at sign (@) precedes the oper argument,
the exp argument indicates the address of the data with which to initialize the
field. For example, the following macro indicates that the contents of the location
DEVICE_CHARS are to be written into the DEVCHAR field of the UCB.
DPT_STORE UCB,UCB$L_DEVCHAR,@L,DEVICE_CHARS
2–25