/drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsconfig.h
C++ Header | 75 lines | 30 code | 17 blank | 28 comment | 0 complexity | 741a8e8cad22df9bf80fdef1794a3b68 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
1/*
2 * Copyright (c) 2004-2010 Atheros Communications Inc.
3 * All rights reserved.
4 *
5 * This file defines the symbols exported by Atheros PS and patch download module.
6 * define the constant HCI_TRANSPORT_SDIO if the module is being used for HCI SDIO transport.
7 * defined.
8 *
9 *
10 * ar3kcpsconfig.h
11 *
12 *
13 *
14 * The software source and binaries included in this development package are
15 * licensed, not sold. You, or your company, received the package under one
16 * or more license agreements. The rights granted to you are specifically
17 * listed in these license agreement(s). All other rights remain with Atheros
18 * Communications, Inc., its subsidiaries, or the respective owner including
19 * those listed on the included copyright notices.. Distribution of any
20 * portion of this package must be in strict compliance with the license
21 * agreement(s) terms.
22 *
23 *
24 *
25 */
26
27
28
29#ifndef __AR3KPSCONFIG_H
30#define __AR3KPSCONFIG_H
31
32/*
33 * Define the flag HCI_TRANSPORT_SDIO and undefine HCI_TRANSPORT_UART if the transport being used is SDIO.
34 */
35#undef HCI_TRANSPORT_UART
36
37#include <linux/fs.h>
38#include <linux/errno.h>
39#include <linux/signal.h>
40
41
42#include <linux/ioctl.h>
43#include <linux/firmware.h>
44
45
46#include <net/bluetooth/bluetooth.h>
47#include <net/bluetooth/hci_core.h>
48
49#include "ar3kpsparser.h"
50
51#define FPGA_REGISTER 0x4FFC
52#define BDADDR_TYPE_STRING 0
53#define BDADDR_TYPE_HEX 1
54#define CONFIG_PATH "ar3k"
55
56#define PS_ASIC_FILE "PS_ASIC.pst"
57#define PS_FPGA_FILE "PS_FPGA.pst"
58
59#define PATCH_FILE "RamPatch.txt"
60#define BDADDR_FILE "ar3kbdaddr.pst"
61
62#define ROM_VER_AR3001_3_1_0 30000
63#define ROM_VER_AR3001_3_1_1 30101
64
65
66#ifndef HCI_TRANSPORT_SDIO
67#define struct ar3k_config_info struct hci_dev
68extern wait_queue_head_t HciEvent;
69extern wait_queue_t Eventwait;
70extern u8 *HciEventpacket;
71#endif /* #ifndef HCI_TRANSPORT_SDIO */
72
73int AthPSInitialize(struct ar3k_config_info *hdev);
74int ReadPSEvent(u8* Data);
75#endif /* __AR3KPSCONFIG_H */