search for: mptstate

Displaying 4 results from an estimated 4 matches for "mptstate".

Did you mean: mp_state
2009 Oct 27
1
[PATCH 2/4] megasas: LSI MegaRAID SAS HBA emulation
...eue_pa; + void *reply_queue; + int reply_queue_len; + target_phys_addr_t consumer_pa; + target_phys_addr_t producer_pa; + + struct megasas_cmd_t frames[MEGASAS_MAX_FRAMES]; + struct megasas_cmd_t *next_fw_cmd; + + struct megasas_lun_t luns[MAX_RAID_DEVS]; + + SCSIBus bus; +} MPTState; + +#define MEGASAS_INTR_DISABLED_MASK 0xFFFFFFFF + +#define MEGASAS_INTR_ENABLED(s) (((s)->intr_mask & MEGASAS_INTR_DISABLED_MASK ) != MEGASAS_INTR_DISABLED_MASK) + +#define megasas_frame_get(f,o) \ + ldub_phys((f) + MEGASAS_FRAME_ ## o ## _OFFSET); + +#define megasas_frame_get_cmd_sta...
2009 Oct 27
1
[PATCH 2/4] megasas: LSI MegaRAID SAS HBA emulation
...eue_pa; + void *reply_queue; + int reply_queue_len; + target_phys_addr_t consumer_pa; + target_phys_addr_t producer_pa; + + struct megasas_cmd_t frames[MEGASAS_MAX_FRAMES]; + struct megasas_cmd_t *next_fw_cmd; + + struct megasas_lun_t luns[MAX_RAID_DEVS]; + + SCSIBus bus; +} MPTState; + +#define MEGASAS_INTR_DISABLED_MASK 0xFFFFFFFF + +#define MEGASAS_INTR_ENABLED(s) (((s)->intr_mask & MEGASAS_INTR_DISABLED_MASK ) != MEGASAS_INTR_DISABLED_MASK) + +#define megasas_frame_get(f,o) \ + ldub_phys((f) + MEGASAS_FRAME_ ## o ## _OFFSET); + +#define megasas_frame_get_cmd_sta...
2009 Oct 27
0
[PATCH 4/4] megasas: Add SCSI command emulation
...--- hw/megasas.c | 88 +++++++++++++++++++++++++++++++++++----------------------- 1 files changed, 53 insertions(+), 35 deletions(-) diff --git a/hw/megasas.c b/hw/megasas.c index a57e8e0..f32b313 100644 --- a/hw/megasas.c +++ b/hw/megasas.c @@ -661,40 +661,55 @@ static int megasas_handle_scsi(MPTState *s, uint8_t fcmd, } } - memset(&cmd->hdr, 0, sizeof(struct sg_io_hdr)); - cmd->hdr.interface_id = 'S'; - cmd->hdr.cmd_len = cdb_len; - cmd->hdr.cmdp = cdb; - cmd->hdr.iovec_count = cmd->sge_count; - cmd->hdr.dxferp = cmd->iov; - f...
2009 Oct 27
0
[PATCH 4/4] megasas: Add SCSI command emulation
...--- hw/megasas.c | 88 +++++++++++++++++++++++++++++++++++----------------------- 1 files changed, 53 insertions(+), 35 deletions(-) diff --git a/hw/megasas.c b/hw/megasas.c index a57e8e0..f32b313 100644 --- a/hw/megasas.c +++ b/hw/megasas.c @@ -661,40 +661,55 @@ static int megasas_handle_scsi(MPTState *s, uint8_t fcmd, } } - memset(&cmd->hdr, 0, sizeof(struct sg_io_hdr)); - cmd->hdr.interface_id = 'S'; - cmd->hdr.cmd_len = cdb_len; - cmd->hdr.cmdp = cdb; - cmd->hdr.iovec_count = cmd->sge_count; - cmd->hdr.dxferp = cmd->iov; - f...