pm80xx: Multiple inbound/outbound queue configuration
Subsystems (2)
PATCH v4 3/12 pm80xx: Multiple inbound/outbound queue configuration
Quoted 1 line
From
6218dd8466f6771ff46dfcd0a820f853c62cde32Mon Sep 17 00:00:00 2001
From: Sakthivel K <[email protected]>
Date: Wed, 27 Feb 2013 20:25:25 +0530
Subject: [PATCH V4 3/12] pm80xx: Multiple inbound/outbound queue configuration
Memory allocation and configuration of multiple inbound and outbound queues.
Signed-off-by Sakthivel K <[email protected]>
Signed-off-by Anand Kumar S <[email protected]>
--- drivers/scsi/pm8001/pm8001_defs.h | 14 +++-- drivers/scsi/pm8001/pm8001_hwi.c | 43 ++++++++-------- drivers/scsi/pm8001/pm8001_init.c | 101 +++++++++++++++++++++++++------------ 3 files changed, 98 insertions(+), 60 deletions(-)
drivers/scsi/pm8001/pm8001_defs.h +8 -6
@@ -48,8 +48,7 @@ enum chip_flavors { chip_8018, chip_8019 }; -#define USI_MAX_MEMCNT 9 -#define PM8001_MAX_DMA_SG SG_ALL +enum phy_speed {PHY_SPEED_15 =0x01 , PHY_SPEED_30 = 0x02,
@@ -87,13 +86,16 @@ enum port_type {#define PM8001_MAX_DEVICES 2048/* max supported device */ #define PM8001_MAX_MSIX_VEC 64/* max msi-x int for spcv/ve */ +#define USI_MAX_MEMCNT_BASE 4 +#define IB (USI_MAX_MEMCNT_BASE + 1) +#define CI (IB + PM8001_MAX_SPCV_INB_NUM) +#define OB (CI + PM8001_MAX_SPCV_INB_NUM) +#define PI (OB + PM8001_MAX_SPCV_OUTB_NUM) +#define USI_MAX_MEMCNT (PI + PM8001_MAX_SPCV_OUTB_NUM) +#define PM8001_MAX_DMA_SG SG_ALLenum memory_region_num {AAP1 =0x0 ,/* application acceleration processor */ IOP ,/* IO processor */ -CI ,/* consumer index */ -PI ,/* producer index */ -IB ,/* inbound queue */ -OB ,/* outbound queue */ NVMD ,/* NVM device */ DEV_MEM ,/* memory for devices */ CCB_MEM ,/* memory for command control block */
drivers/scsi/pm8001/pm8001_hwi.c +22 -21
96 lines not on this page · raw message
drivers/scsi/pm8001/pm8001_init.c +68 -33
147 lines not on this page · raw message
Signature · 1 line
1.7.1