
Add support for QCA9379 chip on x86 platform for USB and SDIO attach. Change-Id: I1192e47f6ca186bbcaa6d1fb28d40cb16d6dfe0b CRs-Fixed: 2181012
85 lines
3.1 KiB
C
85 lines
3.1 KiB
C
/*
|
|
* Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
|
|
*
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
* above copyright notice and this permission notice appear in all
|
|
* copies.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
|
|
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
|
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
|
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
|
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
|
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
* PERFORMANCE OF THIS SOFTWARE.
|
|
*/
|
|
|
|
#include "hif.h"
|
|
#include "hif_main.h"
|
|
#include "multibus.h"
|
|
#include "ce_main.h"
|
|
#include "if_pci.h"
|
|
#include "ahb_api.h"
|
|
#include "dummy.h"
|
|
|
|
/**
|
|
* hif_initialize_ahb_ops() - initialize the ahb ops
|
|
* @bus_ops: hif_bus_ops table pointer to initialize
|
|
*
|
|
* This function will assign the set of callbacks that needs
|
|
* to be called for ipq4019 platform
|
|
*
|
|
* Return: QDF_STATUS_SUCCESS
|
|
*/
|
|
QDF_STATUS hif_initialize_ahb_ops(struct hif_bus_ops *bus_ops)
|
|
{
|
|
bus_ops->hif_bus_open = &hif_ahb_open;
|
|
bus_ops->hif_bus_close = &hif_ahb_close;
|
|
bus_ops->hif_bus_prevent_linkdown = &hif_dummy_bus_prevent_linkdown;
|
|
bus_ops->hif_reset_soc = &hif_ahb_reset_soc;
|
|
bus_ops->hif_bus_suspend = &hif_dummy_bus_suspend;
|
|
bus_ops->hif_bus_resume = &hif_dummy_bus_resume;
|
|
bus_ops->hif_target_sleep_state_adjust =
|
|
&hif_dummy_target_sleep_state_adjust;
|
|
|
|
bus_ops->hif_disable_isr = &hif_ahb_disable_isr;
|
|
bus_ops->hif_nointrs = &hif_ahb_nointrs;
|
|
bus_ops->hif_enable_bus = &hif_ahb_enable_bus;
|
|
bus_ops->hif_disable_bus = &hif_ahb_disable_bus;
|
|
bus_ops->hif_bus_configure = &hif_ahb_bus_configure;
|
|
bus_ops->hif_get_config_item = &hif_dummy_get_config_item;
|
|
bus_ops->hif_set_mailbox_swap = &hif_dummy_set_mailbox_swap;
|
|
bus_ops->hif_claim_device = &hif_dummy_claim_device;
|
|
bus_ops->hif_shutdown_device = &hif_ce_stop;
|
|
bus_ops->hif_stop = &hif_ce_stop;
|
|
bus_ops->hif_cancel_deferred_target_sleep =
|
|
&hif_dummy_cancel_deferred_target_sleep;
|
|
bus_ops->hif_irq_disable = &hif_ahb_irq_disable;
|
|
bus_ops->hif_irq_enable = &hif_ahb_irq_enable;
|
|
bus_ops->hif_dump_registers = &hif_ahb_dump_registers;
|
|
bus_ops->hif_dump_target_memory = &hif_dummy_dump_target_memory;
|
|
bus_ops->hif_ipa_get_ce_resource = &hif_dummy_ipa_get_ce_resource;
|
|
bus_ops->hif_mask_interrupt_call = &hif_dummy_mask_interrupt_call;
|
|
bus_ops->hif_enable_power_management =
|
|
&hif_dummy_enable_power_management;
|
|
bus_ops->hif_disable_power_management =
|
|
&hif_dummy_disable_power_management;
|
|
bus_ops->hif_grp_irq_configure = &hif_ahb_configure_grp_irq;
|
|
bus_ops->hif_addr_in_boundary = &hif_dummy_addr_in_boundary;
|
|
bus_ops->hif_needs_bmi = &hif_ahb_needs_bmi;
|
|
|
|
return QDF_STATUS_SUCCESS;
|
|
}
|
|
|
|
/**
|
|
* hif_ahb_get_context_size() - return the size of the snoc context
|
|
*
|
|
* Return the size of the context. (0 for invalid bus)
|
|
*/
|
|
int hif_ahb_get_context_size(void)
|
|
{
|
|
return sizeof(struct hif_pci_softc);
|
|
}
|