search for: srp_max_iu_len

Displaying 2 results from an estimated 2 matches for "srp_max_iu_len".

2006 Aug 02
2
[PATCH 1/6] scsifront/back drivers'' common Makefile and header
...r ed8d345449c1 -r 7111077b493e xen/include/public/io/scsi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xen/include/public/io/scsi.h Wed Aug 02 15:14:15 2006 +0900 @@ -0,0 +1,41 @@ +#ifndef __XEN__PUBLIC_IO_SCSI_H__ +#define __XEN__PUBLIC_IO_SCSI_H__ + +#include "ring.h" + +#define SRP_MAX_IU_LEN 256 +#define SRP_CAN_QUEUE 8 + +struct scsi_request { + char buf[SRP_MAX_IU_LEN]; +}; + +struct scsi_response { + char buf[sizeof(struct srp_rsp)]; +}; + +DEFINE_RING_TYPES(scsi, struct scsi_request, struct scsi_response); + +#define SRP_MAX_INDIRECT ((SRP_MAX_IU_LEN - \ + sizeof (struct srp...
2007 Jan 02
0
[PATCH 1/4] add scsi-target and IO_CMD_EPOLL_WAIT patches
...+ goto free_vport; ++ err = scsi_tgt_alloc_queue(shost); ++ if (err) ++ goto put_host; ++ ++ target = host_to_srp_target(shost); ++ target->shost = shost; ++ vport->dma_dev = dev; ++ target->ldata = vport; ++ err = srp_target_alloc(target, &dev->dev, INITIAL_SRP_LIMIT, ++ SRP_MAX_IU_LEN); ++ if (err) ++ goto put_host; ++ ++ dma = (unsigned int *) vio_get_attribute(dev, "ibm,my-dma-window", ++ &dma_size); ++ if (!dma || dma_size != 40) { ++ eprintk("Couldn''t get window property %d\n", dma_size); ++ err = -EIO; ++ goto free_srp_target; ++ }...