blob: a9918d7cd82cedfddc85bf5a7d830bf48efe2117 [file] [log] [blame]
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001/*
2 * Copyright (c) 2014 The Linux Foundation. All rights reserved.
3 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
20 */
21
22/*
23 * This file was originally distributed by Qualcomm Atheros, Inc.
24 * under proprietary terms before Copyright ownership was assigned
25 * to the Linux Foundation.
26 */
27
28#ifndef _OL_FW_H_
29#define _OL_FW_H_
30
31#ifdef QCA_WIFI_FTM
32#include "cdf_types.h"
33#endif
34#include "hif.h"
35
36#define AR6004_VERSION_REV1_3 0x31c8088a
37
38#define AR9888_REV2_VERSION 0x4100016c
39#define AR6320_REV1_VERSION 0x5000000
40#define AR6320_REV1_1_VERSION 0x5000001
41#define AR6320_REV1_VERSION_1 AR6320_REV1_1_VERSION
42#define AR6320_REV1_3_VERSION 0x5000003
43#define AR6320_REV2_VERSION AR6320_REV1_1_VERSION
44#define AR6320_REV2_1_VERSION 0x5010000
45#define AR6320_REV3_VERSION 0x5020000
46#define AR6320_REV3_2_VERSION 0x5030000
47#define AR6320_REV4_VERSION AR6320_REV2_1_VERSION
48#define AR6320_DEV_VERSION 0x1000000
49
50#ifdef HIF_PCI
51void ol_target_failure(void *instance, CDF_STATUS status);
52uint8_t ol_get_number_of_peers_supported(struct ol_softc *scn);
53#else
54static inline void ol_target_failure(void *instance, CDF_STATUS status)
55{
56 return;
57}
58
59static inline uint8_t ol_get_number_of_peers_supported(struct ol_softc *scn)
60{
61 return 1;
62}
63#endif
64#endif /* _OL_FW_H_ */