User manual

56
(const struct __chapi_in * ci, brq_handle_t brq_handle);
typedef bool (CHAPI * __chapi_get_attention_objects_p)
(const struct __chapi_in * ci, brq_handle_t brq_handle, int cpu_no,
volatile unsigned long *& attention_object, unsigned long &
attention_value);
typedef bool (CHAPI * __chapi_get_brq_objects_p)
(const struct __chapi_in * ci, brq_handle_t brq_handle, int cpu_no,
volatile unsigned long *& brq_object, unsigned long & brq_mask);
typedef int (CHAPI * __chapi_get_vector_p)
(const struct __chapi_in * ci, int vector);
typedef void (CHAPI * __chapi_set_brq_vector_p)
(const struct __chapi_in * ci, brq_handle_t brq_handle, int vector);
//-----------------------------------------------------------------------------
// Memory access methods.
//
typedef unsigned int (CHAPI * __chapi_read_mem_procedure_p)
(const struct __chapi_in * ci,
unsigned int addr, unsigned int len,
char * buf);
typedef unsigned int (CHAPI * __chapi_write_mem_procedure_p)
(const struct __chapi_in * ci,
unsigned int addr, unsigned int len,
const char * buf);
#if !defined(__chapi_io_space_id_t)
typedef void * __chapi_io_space_id_t;
#endif // !defined(__chapi_io_space_id_t)
typedef __chapi_io_space_id_t (CHAPI * __chapi_create_io_space_procedure_p)
(const struct __chapi_in * ci,
unsigned int addr, unsigned int len);
typedef void (CHAPI * __chapi_move_io_space_procedure_p)
(const struct __chapi_in * ci,
__chapi_io_space_id_t space_id,
unsigned int addr, unsigned int len);
typedef void (CHAPI * __chapi_destroy_io_space_procedure_p)
(const struct __chapi_in * ci,
__chapi_io_space_id_t space_id);
//
// Connects already created and than disconnected I/O space
// Required for example when different devices response the same
// I/O windows in different conditions which can be changed at
// runtime.
//
typedef void (CHAPI * __chapi_connect_io_space_procedure_p)
(const struct __chapi_in * ci,
__chapi_io_space_id_t space_id,
unsigned int addr, unsigned int len);
// Disconnect I/O space w/o distroying it.
typedef void (CHAPI * __chapi_disconnect_io_space_procedure_p)
(const struct __chapi_in * ci,
__chapi_io_space_id_t space_id);
//-----------------------------------------------------------------------------
// Licensing routines
//