/* Returns a pointer to the continuation type 1 IOCB packet.  */
static cont_a64_entry_t* qla2x00_prep_cont_type1_iocb(scsi_qla_host_t *vha)
/* Returns a pointer to the continuation type 1 IOCB packet.  */
static cont_a64_entry_t* qla2x00_prep_cont_type1_iocb(scsi_qla_host_t *vha)
{
	cont_a64_entry_t *cont_pkt;
	struct req_que *req = vha->req;
	req->ring_index++;
	if (req->ring_index == req->length) {
		req->ring_index = 0;
		req->ring_ptr = req->ring;
	} else {
		req->ring_ptr++;
	}
	cont_pkt = (cont_a64_entry_t *)req->ring_ptr;
	*((uint32_t *)(&cont_pkt->entry_type)) =
	    __constant_cpu_to_le32(CONTINUE_A64_TYPE);
	return (cont_pkt);
}