Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1009)

Side by Side Diff: chromeos/drivers/ath6kl/include/common_drv.h

Issue 646055: Atheros AR600x driver + build glue (Closed)
Patch Set: Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/drivers/ath6kl/include/cnxmgmt.h ('k') | chromeos/drivers/ath6kl/include/dbglog.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 //------------------------------------------------------------------------------
2 // <copyright file="common_drv.h" company="Atheros">
3 // Copyright (c) 2004-2008 Atheros Corporation. All rights reserved.
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License version 2 as
7 // published by the Free Software Foundation;
8 //
9 // Software distributed under the License is distributed on an "AS
10 // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
11 // implied. See the License for the specific language governing
12 // rights and limitations under the License.
13 //
14 //
15 //------------------------------------------------------------------------------
16 //==============================================================================
17 // Author(s): ="Atheros"
18 //==============================================================================
19 #ifndef COMMON_DRV_H_
20 #define COMMON_DRV_H_
21
22 #include "hif.h"
23 #include "htc_packet.h"
24 #include "htc_api.h"
25
26 /* structure that is the state information for the default credit distribution c allback
27 * drivers should instantiate (zero-init as well) this structure in their driver instance
28 * and pass it as a context to the HTC credit distribution functions */
29 typedef struct _COMMON_CREDIT_STATE_INFO {
30 int TotalAvailableCredits; /* total credits in the system at startup */
31 int CurrentFreeCredits; /* credits available in the pool that have n ot been
32 given out to endpoints */
33 HTC_ENDPOINT_CREDIT_DIST *pLowestPriEpDist; /* pointer to the lowest priori ty endpoint dist struct */
34 } COMMON_CREDIT_STATE_INFO;
35
36 typedef struct {
37 A_INT32 (*setupTransport)(void *ar);
38 void (*cleanupTransport)(void *ar);
39 } HCI_TRANSPORT_CALLBACKS;
40
41 typedef struct {
42 void *netDevice;
43 void *hifDevice;
44 void *htcHandle;
45 } HCI_TRANSPORT_MISC_HANDLES;
46
47 /* HTC TX packet tagging definitions */
48 #define AR6K_CONTROL_PKT_TAG HTC_TX_PACKET_TAG_USER_DEFINED
49 #define AR6K_DATA_PKT_TAG (AR6K_CONTROL_PKT_TAG + 1)
50
51 #define AR6002_VERSION_REV1 0x20000086
52 #define AR6002_VERSION_REV2 0x20000188
53
54 #ifdef __cplusplus
55 extern "C" {
56 #endif
57
58 /* OS-independent APIs */
59 A_STATUS ar6000_setup_credit_dist(HTC_HANDLE HTCHandle, COMMON_CREDIT_STATE_INFO *pCredInfo);
60
61 A_STATUS ar6000_ReadRegDiag(HIF_DEVICE *hifDevice, A_UINT32 *address, A_UINT32 * data);
62
63 A_STATUS ar6000_WriteRegDiag(HIF_DEVICE *hifDevice, A_UINT32 *address, A_UINT32 *data);
64
65 A_STATUS ar6000_ReadDataDiag(HIF_DEVICE *hifDevice, A_UINT32 address, A_UCHAR * data, A_UINT32 length);
66
67 A_STATUS ar6000_reset_device(HIF_DEVICE *hifDevice, A_UINT32 TargetType, A_BOOL waitForCompletion, A_BOOL coldReset);
68
69 void ar6000_dump_target_assert_info(HIF_DEVICE *hifDevice, A_UINT32 TargetType);
70
71 A_STATUS ar6000_set_htc_params(HIF_DEVICE *hifDevice,
72 A_UINT32 TargetType,
73 A_UINT32 MboxIsrYieldValue,
74 A_UINT8 HtcControlBuffers);
75
76 A_STATUS ar6000_prepare_target(HIF_DEVICE *hifDevice,
77 A_UINT32 TargetType,
78 A_UINT32 TargetVersion);
79
80 A_STATUS ar6000_set_hci_bridge_flags(HIF_DEVICE *hifDevice,
81 A_UINT32 TargetType,
82 A_UINT32 Flags);
83
84 #ifdef __cplusplus
85 }
86 #endif
87
88 #endif /*COMMON_DRV_H_*/
OLDNEW
« no previous file with comments | « chromeos/drivers/ath6kl/include/cnxmgmt.h ('k') | chromeos/drivers/ath6kl/include/dbglog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698