Lines Matching +full:memory +full:- +full:controller
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0
9 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
22 * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
28 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
70 * determine the virtual memory space for the controller registers
72 * @param[in] this_controller The controller for which to read the base
86 this_controller->lex_registers = in scic_sds_pci_bar_initialization()
89 this_controller->smu_registers = in scic_sds_pci_bar_initialization()
91 this_controller->scu_registers = in scic_sds_pci_bar_initialization()
98 this_controller->smu_registers = in scic_sds_pci_bar_initialization()
101 +(0x4000 * this_controller->controller_index)); in scic_sds_pci_bar_initialization()
102 this_controller->scu_registers = in scic_sds_pci_bar_initialization()
105 +(0x400000 * this_controller->controller_index)); in scic_sds_pci_bar_initialization()
109 if (this_controller->controller_index == 0) in scic_sds_pci_bar_initialization()
111 this_controller->smu_registers = (SMU_REGISTERS_T *) in scic_sds_pci_bar_initialization()
116 if (this_controller->pci_revision == SCU_PBG_HBA_REV_B0) in scic_sds_pci_bar_initialization()
121 this_controller->smu_registers = (SMU_REGISTERS_T *) in scic_sds_pci_bar_initialization()
126 this_controller->smu_registers = (SMU_REGISTERS_T *) in scic_sds_pci_bar_initialization()
133 this_controller->scu_registers = (SCU_REGISTERS_T *) 0; in scic_sds_pci_bar_initialization()
143 * @brief This method will read from PCI memory for the SMU register
146 * @param[in] controller The controller for which to read a DWORD.
150 * @return The value being returned from the PCI memory location.
152 * @todo This PCI memory access calls likely need to be optimized into macro?
155 SCI_CONTROLLER_HANDLE_T controller, in scic_sds_pci_read_smu_dword() argument
159 return scic_cb_pci_read_dword(controller, address); in scic_sds_pci_read_smu_dword()
163 * @brief This method will write to PCI memory for the SMU register
166 * @param[in] controller The controller for which to read a DWORD.
170 * into the PCI memory location.
172 * @todo This PCI memory access calls likely need to be optimized into macro?
175 SCI_CONTROLLER_HANDLE_T controller, in scic_sds_pci_write_smu_dword() argument
180 scic_cb_pci_write_dword(controller, address, write_value); in scic_sds_pci_write_smu_dword()
184 * @brief This method will read from PCI memory for the SCU register
187 * @param[in] controller The controller for which to read a DWORD.
191 * @return The value being returned from the PCI memory location.
193 * @todo This PCI memory access calls likely need to be optimized into macro?
196 SCI_CONTROLLER_HANDLE_T controller, in scic_sds_pci_read_scu_dword() argument
200 SCIC_SDS_CONTROLLER_T * this_controller = (SCIC_SDS_CONTROLLER_T*)controller; in scic_sds_pci_read_scu_dword()
203 controller, in scic_sds_pci_read_scu_dword()
204 (void*) ((char *)(this_controller->smu_registers) + SCU_MMR_ADDRESS_WINDOW_OFFSET), in scic_sds_pci_read_scu_dword()
209 controller, in scic_sds_pci_read_scu_dword()
210 (void*) ((char *)(this_controller->smu_registers) + SCU_MMR_DATA_WINDOW_OFFSET) in scic_sds_pci_read_scu_dword()
215 * @brief This method will write to PCI memory for the SCU register
218 * @param[in] controller The controller for which to read a DWORD.
222 * into the PCI memory location.
224 * @todo This PCI memory access calls likely need to be optimized into macro?
227 SCI_CONTROLLER_HANDLE_T controller, in scic_sds_pci_write_scu_dword() argument
232 SCIC_SDS_CONTROLLER_T * this_controller = (SCIC_SDS_CONTROLLER_T*)controller; in scic_sds_pci_write_scu_dword()
235 controller, in scic_sds_pci_write_scu_dword()
236 (void*) ((char *)(this_controller->smu_registers) + SCU_MMR_ADDRESS_WINDOW_OFFSET), in scic_sds_pci_write_scu_dword()
241 controller, in scic_sds_pci_write_scu_dword()
242 (void*) ((char *)(this_controller->smu_registers) + SCU_MMR_DATA_WINDOW_OFFSET), in scic_sds_pci_write_scu_dword()