/* Send the interrupt coalescing parameter set by ethtool to the card.  */
int netxen_config_intr_coalesce(struct netxen_adapter *adapter)
/* Send the interrupt coalescing parameter set by ethtool to the card.  */
int netxen_config_intr_coalesce(struct netxen_adapter *adapter)
{
	nx_nic_req_t req;
	u64 word;
	int rv;
	memset(&req, 0, sizeof(nx_nic_req_t));
	req.qhdr = cpu_to_le64(NX_HOST_REQUEST << 23);
	word = NETXEN_CONFIG_INTR_COALESCE | ((u64)adapter->portnum << 16);
	req.req_hdr = cpu_to_le64(word);
	memcpy(&req.words[0], &adapter->coal, sizeof(adapter->coal));
	rv = netxen_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1);
	if (rv != 0) {
		printk(KERN_ERR "ERROR. Could not send "
			"interrupt coalescing parameters\n");
	}
	return rv;
}