2 * Copyright (c) 2004-2010 Atheros Communications Inc.
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.
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
29 #ifndef __AR3KPSCONFIG_H
30 #define __AR3KPSCONFIG_H
33 * Define the flag HCI_TRANSPORT_SDIO and undefine HCI_TRANSPORT_UART if the transport being used is SDIO.
35 #undef HCI_TRANSPORT_UART
38 #include <linux/errno.h>
39 #include <linux/signal.h>
42 #include <linux/ioctl.h>
43 #include <linux/firmware.h>
46 #include <net/bluetooth/bluetooth.h>
47 #include <net/bluetooth/hci_core.h>
49 #include "ar3kpsparser.h"
51 #define FPGA_REGISTER 0x4FFC
52 #define BDADDR_TYPE_STRING 0
53 #define BDADDR_TYPE_HEX 1
54 #define CONFIG_PATH "ar3k"
56 #define PS_ASIC_FILE "PS_ASIC.pst"
57 #define PS_FPGA_FILE "PS_FPGA.pst"
59 #define PATCH_FILE "RamPatch.txt"
60 #define BDADDR_FILE "ar3kbdaddr.pst"
62 #define ROM_VER_AR3001_3_1_0 30000
63 #define ROM_VER_AR3001_3_1_1 30101
66 #ifndef HCI_TRANSPORT_SDIO
67 #define AR3K_CONFIG_INFO struct hci_dev
68 extern wait_queue_head_t HciEvent;
69 extern wait_queue_t Eventwait;
70 extern A_UCHAR *HciEventpacket;
71 #endif /* #ifndef HCI_TRANSPORT_SDIO */
73 A_STATUS AthPSInitialize(AR3K_CONFIG_INFO *hdev);
74 A_STATUS ReadPSEvent(A_UCHAR* Data);
75 #endif /* __AR3KPSCONFIG_H */