hisi_sas: Allocate memories and create pools
authorJohn Garry <john.garry@huawei.com>
Tue, 17 Nov 2015 16:50:34 +0000 (00:50 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 26 Nov 2015 03:12:53 +0000 (22:12 -0500)
commit6be6de18891d5533451b2c00424f6a557dc901ec
tree33f75b9e54c23e3215962706b24456d6029ca5cf
parentc799d6bd8fe4a82333fd11f8699f621e10af2f4b
hisi_sas: Allocate memories and create pools

Allocate DMA and non-DMA memories for the controller. Also create DMA
pools.

These include:

- Delivery queues
- Completion queues
- Command status buffer
- Command table
- ITCT (For device context)
- Host slot info
- IO status
- Breakpoint
- host slot indexing
- SG data
- FIS
- interrupts names

Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_main.c