blob: bcfa7e7128464afc6d01517ac9c8a68a8f4685aa [file] [log] [blame]
Nandha Kishore Easwarane5444bc2016-10-20 13:23:23 +05301/*
2 * Copyright (c) 2011-2016 The Linux Foundation. All rights reserved.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for
5 * any purpose with or without fee is hereby granted, provided that the
6 * above copyright notice and this permission notice appear in all
7 * copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16 * PERFORMANCE OF THIS SOFTWARE.
17 */
18
19 /**
20 * @file cdp_txrx_cmn.h
21 * @brief Define the host data path converged API functions
22 * called by the host control SW and the OS interface module
23 */
24#ifndef _CDP_TXRX_CMN_REG_H_
25#define _CDP_TXRX_CMN_REG_H_
26
27#define IPQ4019_DEVICE_ID 0x12ef
28#define AR900B_DEVICE_ID 0x0040
29#define QCA9984_DEVICE_ID 0x0046
30#define QCA9888_DEVICE_ID 0x0056
31#define MOB_DRV_LEGACY_DP 0xffff/*FIXME Add MCL device IDs */
32#define LITHIUM_DP 0xfffe/*FIXME Add Litium device ID */
33/* Use these device IDs for attach in future */
34
35ol_txrx_soc_handle ol_txrx_soc_attach(struct ol_if_ops *dp_ol_if_ops);
36
37static inline ol_txrx_soc_handle cdp_soc_attach(u_int16_t devid,
38 void *hif_handle, void *scn, void *htc_handle, qdf_device_t *qdf_dev,
39 struct ol_if_ops *dp_ol_if_ops)
40{
41 switch (devid) {
42 case LITHIUM_DP: /*FIXME Add lithium devide IDs */
43 return NULL;
44 break;
45 default:
46 return ol_txrx_soc_attach(dp_ol_if_ops);
47 }
48 return NULL;
49}
50
51#endif /*_CDP_TXRX_CMN_REG_H_ */