arcmsr: more readability improvements
Signed-off-by: Ching Huang <ching2048@areca.com.tw> Reviewed-by: Tomas Henzl <thenzl@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
d15dd55d04
commit
f75ab39a4b
1 changed files with 26 additions and 47 deletions
|
@ -2814,53 +2814,32 @@ static bool arcmsr_hbaD_get_config(struct AdapterControlBlock *acb)
|
||||||
acb->dma_coherent2 = dma_coherent2;
|
acb->dma_coherent2 = dma_coherent2;
|
||||||
reg = (struct MessageUnit_D *)dma_coherent2;
|
reg = (struct MessageUnit_D *)dma_coherent2;
|
||||||
acb->pmuD = reg;
|
acb->pmuD = reg;
|
||||||
reg->chip_id = acb->mem_base0 + ARCMSR_ARC1214_CHIP_ID;
|
reg->chip_id = MEM_BASE0(ARCMSR_ARC1214_CHIP_ID);
|
||||||
reg->cpu_mem_config = acb->mem_base0 +
|
reg->cpu_mem_config = MEM_BASE0(ARCMSR_ARC1214_CPU_MEMORY_CONFIGURATION);
|
||||||
ARCMSR_ARC1214_CPU_MEMORY_CONFIGURATION;
|
reg->i2o_host_interrupt_mask = MEM_BASE0(ARCMSR_ARC1214_I2_HOST_INTERRUPT_MASK);
|
||||||
reg->i2o_host_interrupt_mask = acb->mem_base0 +
|
reg->sample_at_reset = MEM_BASE0(ARCMSR_ARC1214_SAMPLE_RESET);
|
||||||
ARCMSR_ARC1214_I2_HOST_INTERRUPT_MASK;
|
reg->reset_request = MEM_BASE0(ARCMSR_ARC1214_RESET_REQUEST);
|
||||||
reg->sample_at_reset = acb->mem_base0 + ARCMSR_ARC1214_SAMPLE_RESET;
|
reg->host_int_status = MEM_BASE0(ARCMSR_ARC1214_MAIN_INTERRUPT_STATUS);
|
||||||
reg->reset_request = acb->mem_base0 + ARCMSR_ARC1214_RESET_REQUEST;
|
reg->pcief0_int_enable = MEM_BASE0(ARCMSR_ARC1214_PCIE_F0_INTERRUPT_ENABLE);
|
||||||
reg->host_int_status = acb->mem_base0 +
|
reg->inbound_msgaddr0 = MEM_BASE0(ARCMSR_ARC1214_INBOUND_MESSAGE0);
|
||||||
ARCMSR_ARC1214_MAIN_INTERRUPT_STATUS;
|
reg->inbound_msgaddr1 = MEM_BASE0(ARCMSR_ARC1214_INBOUND_MESSAGE1);
|
||||||
reg->pcief0_int_enable = acb->mem_base0 +
|
reg->outbound_msgaddr0 = MEM_BASE0(ARCMSR_ARC1214_OUTBOUND_MESSAGE0);
|
||||||
ARCMSR_ARC1214_PCIE_F0_INTERRUPT_ENABLE;
|
reg->outbound_msgaddr1 = MEM_BASE0(ARCMSR_ARC1214_OUTBOUND_MESSAGE1);
|
||||||
reg->inbound_msgaddr0 = acb->mem_base0 +
|
reg->inbound_doorbell = MEM_BASE0(ARCMSR_ARC1214_INBOUND_DOORBELL);
|
||||||
ARCMSR_ARC1214_INBOUND_MESSAGE0;
|
reg->outbound_doorbell = MEM_BASE0(ARCMSR_ARC1214_OUTBOUND_DOORBELL);
|
||||||
reg->inbound_msgaddr1 = acb->mem_base0 +
|
reg->outbound_doorbell_enable = MEM_BASE0(ARCMSR_ARC1214_OUTBOUND_DOORBELL_ENABLE);
|
||||||
ARCMSR_ARC1214_INBOUND_MESSAGE1;
|
reg->inboundlist_base_low = MEM_BASE0(ARCMSR_ARC1214_INBOUND_LIST_BASE_LOW);
|
||||||
reg->outbound_msgaddr0 = acb->mem_base0 +
|
reg->inboundlist_base_high = MEM_BASE0(ARCMSR_ARC1214_INBOUND_LIST_BASE_HIGH);
|
||||||
ARCMSR_ARC1214_OUTBOUND_MESSAGE0;
|
reg->inboundlist_write_pointer = MEM_BASE0(ARCMSR_ARC1214_INBOUND_LIST_WRITE_POINTER);
|
||||||
reg->outbound_msgaddr1 = acb->mem_base0 +
|
reg->outboundlist_base_low = MEM_BASE0(ARCMSR_ARC1214_OUTBOUND_LIST_BASE_LOW);
|
||||||
ARCMSR_ARC1214_OUTBOUND_MESSAGE1;
|
reg->outboundlist_base_high = MEM_BASE0(ARCMSR_ARC1214_OUTBOUND_LIST_BASE_HIGH);
|
||||||
reg->inbound_doorbell = acb->mem_base0 +
|
reg->outboundlist_copy_pointer = MEM_BASE0(ARCMSR_ARC1214_OUTBOUND_LIST_COPY_POINTER);
|
||||||
ARCMSR_ARC1214_INBOUND_DOORBELL;
|
reg->outboundlist_read_pointer = MEM_BASE0(ARCMSR_ARC1214_OUTBOUND_LIST_READ_POINTER);
|
||||||
reg->outbound_doorbell = acb->mem_base0 +
|
reg->outboundlist_interrupt_cause = MEM_BASE0(ARCMSR_ARC1214_OUTBOUND_INTERRUPT_CAUSE);
|
||||||
ARCMSR_ARC1214_OUTBOUND_DOORBELL;
|
reg->outboundlist_interrupt_enable = MEM_BASE0(ARCMSR_ARC1214_OUTBOUND_INTERRUPT_ENABLE);
|
||||||
reg->outbound_doorbell_enable = acb->mem_base0 +
|
reg->message_wbuffer = MEM_BASE0(ARCMSR_ARC1214_MESSAGE_WBUFFER);
|
||||||
ARCMSR_ARC1214_OUTBOUND_DOORBELL_ENABLE;
|
reg->message_rbuffer = MEM_BASE0(ARCMSR_ARC1214_MESSAGE_RBUFFER);
|
||||||
reg->inboundlist_base_low = acb->mem_base0 +
|
reg->msgcode_rwbuffer = MEM_BASE0(ARCMSR_ARC1214_MESSAGE_RWBUFFER);
|
||||||
ARCMSR_ARC1214_INBOUND_LIST_BASE_LOW;
|
|
||||||
reg->inboundlist_base_high = acb->mem_base0 +
|
|
||||||
ARCMSR_ARC1214_INBOUND_LIST_BASE_HIGH;
|
|
||||||
reg->inboundlist_write_pointer = acb->mem_base0 +
|
|
||||||
ARCMSR_ARC1214_INBOUND_LIST_WRITE_POINTER;
|
|
||||||
reg->outboundlist_base_low = acb->mem_base0 +
|
|
||||||
ARCMSR_ARC1214_OUTBOUND_LIST_BASE_LOW;
|
|
||||||
reg->outboundlist_base_high = acb->mem_base0 +
|
|
||||||
ARCMSR_ARC1214_OUTBOUND_LIST_BASE_HIGH;
|
|
||||||
reg->outboundlist_copy_pointer = acb->mem_base0 +
|
|
||||||
ARCMSR_ARC1214_OUTBOUND_LIST_COPY_POINTER;
|
|
||||||
reg->outboundlist_read_pointer = acb->mem_base0 +
|
|
||||||
ARCMSR_ARC1214_OUTBOUND_LIST_READ_POINTER;
|
|
||||||
reg->outboundlist_interrupt_cause = acb->mem_base0 +
|
|
||||||
ARCMSR_ARC1214_OUTBOUND_INTERRUPT_CAUSE;
|
|
||||||
reg->outboundlist_interrupt_enable = acb->mem_base0 +
|
|
||||||
ARCMSR_ARC1214_OUTBOUND_INTERRUPT_ENABLE;
|
|
||||||
reg->message_wbuffer = acb->mem_base0 + ARCMSR_ARC1214_MESSAGE_WBUFFER;
|
|
||||||
reg->message_rbuffer = acb->mem_base0 + ARCMSR_ARC1214_MESSAGE_RBUFFER;
|
|
||||||
reg->msgcode_rwbuffer = acb->mem_base0 +
|
|
||||||
ARCMSR_ARC1214_MESSAGE_RWBUFFER;
|
|
||||||
iop_firm_model = (char __iomem *)(®->msgcode_rwbuffer[15]);
|
iop_firm_model = (char __iomem *)(®->msgcode_rwbuffer[15]);
|
||||||
iop_firm_version = (char __iomem *)(®->msgcode_rwbuffer[17]);
|
iop_firm_version = (char __iomem *)(®->msgcode_rwbuffer[17]);
|
||||||
iop_device_map = (char __iomem *)(®->msgcode_rwbuffer[21]);
|
iop_device_map = (char __iomem *)(®->msgcode_rwbuffer[21]);
|
||||||
|
|
Loading…
Reference in a new issue