コード例 #1
0
int fb_pointer_update(async_sess_t *sess, sysarg_t x, sysarg_t y, bool visible)
{
    async_exch_t *exch = async_exchange_begin(sess);
    int ret = async_req_3_0(exch, FB_POINTER_UPDATE, x, y, visible);
    async_exchange_end(exch);

    return ret;
}
コード例 #2
0
ファイル: remote_audio_mixer.c プロジェクト: jvesely/helenos
/**
 * Set control item to a new level.
 * @param[in] exch IPC exchange connected to the device.
 * @param[in] item The control item controlling the channel.
 * @param[in] level The new value.
 * @return Error code.
 */
int audio_mixer_set_item_level(async_exch_t *exch, unsigned item,
    unsigned level)
{
	if (!exch)
		return EINVAL;
	return async_req_3_0(exch, DEV_IFACE_ID(AUDIO_MIXER_IFACE),
	    IPC_M_AUDIO_MIXER_SET_ITEM_LEVEL, item, level);
}
コード例 #3
0
int fb_vp_putchar(async_sess_t *sess, vp_handle_t vp, sysarg_t col,
                  sysarg_t row, wchar_t ch)
{
    async_exch_t *exch = vp_exchange_begin(sess, vp);
    int ret = async_req_3_0(exch, FB_VP_PUTCHAR, col, row, ch);
    vp_exchange_end(exch);

    return ret;
}
コード例 #4
0
ファイル: nic.c プロジェクト: fhector/helenOS-0.5-Hector
/** Set which offload computations can be performed on the NIC.
 *
 * @param[in] dev_sess
 * @param[in] mask     Mask for the options (only those set here will be set)
 * @param[in] active   Which options should be enabled and which disabled
 *
 * @return EOK If the operation was successfully completed
 *
 */
int nic_offload_set(async_sess_t *dev_sess, uint32_t mask, uint32_t active)
{
	async_exch_t *exch = async_exchange_begin(dev_sess);
	int rc = async_req_3_0(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
	    NIC_AUTONEG_RESTART, (sysarg_t) mask, (sysarg_t) active);
	async_exchange_end(exch);
	
	return rc;
}
コード例 #5
0
ファイル: remote_pci.c プロジェクト: jvesely/helenos
int pci_config_space_write_8(async_sess_t *sess, uint32_t address, uint8_t val)
{
	async_exch_t *exch = async_exchange_begin(sess);
	int rc = async_req_3_0(exch, DEV_IFACE_ID(PCI_DEV_IFACE),
	    IPC_M_CONFIG_SPACE_WRITE_8, address, val);
	async_exchange_end(exch);
	
	return rc;
}