User manual

123
bool get_brq_objects(unsigned int cpu_no,
volatile unsigned long *& brq_object,
unsigned long & brq_mask);
where
cpu_no - CPU number to get brq objects for;
brq_object - reference to the pointer which will be updated with the pointer to the
bus requests mask of specified CPU;
brq_mask - reference to the bus request mask for particular bus request which
defines the bit in bus requests server mask correspondent to the bus request.
This method is used to get CPU BRQ objects for particular CPU in order to have direct
access to the CPU BRQ mask. This technique is designed for the case of hardware used
in device emulation, pure emulation doesn't require this stuff. This method is mapped to
the routine identified by the get_brq_objects entry of the chapi_in communication context.
C++ wrappers to work with configuration options
chapi_cfg_option_t
Basic functionality of option is defined by the class chapi_cfg_option_t which establishes
constructors to wrap routine identified by the add_config_option entry of chapi_in
communication context and encapsulates the list of option values. This class shouldn’t be
used directly during the loadable components development. See description of derived
classes below. Here is the list of public members:
chapi_cfg_option_t(const struct __chapi_in * ci, const char *opt_name,
config_option_t opt_type, int opt_vals_count, int opt_size);
chapi_cfg_option_t(const chapi_cfg_option_t &option);
where
ci - pointer to the chapi_in communication context supplied for the device
during the initialization;
opt_name - option name to create;
opt_type - the type of option to create (one of the following opt_type_integer,
opt_type_boolean, opt_type_ string);
opt_vals_count - the number of option values supported by the option (>= 1);
opt_size - the size of one option value;
option - reference to the option object which should be used for initialization.
This is a set of constructors which are used to create the option for loadable device.