~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/staging/ath6kl/include/common_drv.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
/* structure that is the state information for the default credit distribution callback
30
30
 * drivers should instantiate (zero-init as well) this structure in their driver instance
31
31
 * and pass it as a context to the HTC credit distribution functions */
32
 
typedef struct _COMMON_CREDIT_STATE_INFO {
 
32
struct common_credit_state_info {
33
33
    int TotalAvailableCredits;      /* total credits in the system at startup */
34
34
    int CurrentFreeCredits;         /* credits available in the pool that have not been
35
35
                                       given out to endpoints */
36
 
    HTC_ENDPOINT_CREDIT_DIST *pLowestPriEpDist;  /* pointer to the lowest priority endpoint dist struct */
37
 
} COMMON_CREDIT_STATE_INFO;
 
36
    struct htc_endpoint_credit_dist *pLowestPriEpDist;  /* pointer to the lowest priority endpoint dist struct */
 
37
};
38
38
 
39
 
typedef struct {
40
 
    A_INT32 (*setupTransport)(void *ar);
 
39
struct hci_transport_callbacks {
 
40
    s32 (*setupTransport)(void *ar);
41
41
    void (*cleanupTransport)(void *ar);
42
 
} HCI_TRANSPORT_CALLBACKS;
 
42
};
43
43
 
44
 
typedef struct {
 
44
struct hci_transport_misc_handles {
45
45
   void *netDevice;
46
46
   void *hifDevice;
47
47
   void *htcHandle;
48
 
} HCI_TRANSPORT_MISC_HANDLES;
 
48
};
49
49
 
50
50
/* HTC TX packet tagging definitions */
51
51
#define AR6K_CONTROL_PKT_TAG    HTC_TX_PACKET_TAG_USER_DEFINED
64
64
#endif
65
65
 
66
66
/* OS-independent APIs */
67
 
A_STATUS ar6000_setup_credit_dist(HTC_HANDLE HTCHandle, COMMON_CREDIT_STATE_INFO *pCredInfo);
68
 
 
69
 
A_STATUS ar6000_ReadRegDiag(HIF_DEVICE *hifDevice, A_UINT32 *address, A_UINT32 *data);
70
 
 
71
 
A_STATUS ar6000_WriteRegDiag(HIF_DEVICE *hifDevice, A_UINT32 *address, A_UINT32 *data);
72
 
 
73
 
A_STATUS ar6000_ReadDataDiag(HIF_DEVICE *hifDevice, A_UINT32 address,  A_UCHAR *data, A_UINT32 length);
74
 
 
75
 
A_STATUS ar6000_reset_device(HIF_DEVICE *hifDevice, A_UINT32 TargetType, A_BOOL waitForCompletion, A_BOOL coldReset);
76
 
 
77
 
void ar6000_dump_target_assert_info(HIF_DEVICE *hifDevice, A_UINT32 TargetType);
78
 
 
79
 
A_STATUS ar6000_set_htc_params(HIF_DEVICE *hifDevice,
80
 
                               A_UINT32    TargetType,
81
 
                               A_UINT32    MboxIsrYieldValue,
82
 
                               A_UINT8     HtcControlBuffers);
83
 
 
84
 
A_STATUS ar6000_prepare_target(HIF_DEVICE *hifDevice,
85
 
                               A_UINT32    TargetType,
86
 
                               A_UINT32    TargetVersion);
87
 
 
88
 
A_STATUS ar6000_set_hci_bridge_flags(HIF_DEVICE *hifDevice,
89
 
                                     A_UINT32    TargetType,
90
 
                                     A_UINT32    Flags);
91
 
 
92
 
void ar6000_copy_cust_data_from_target(HIF_DEVICE *hifDevice, A_UINT32 TargetType);
93
 
 
94
 
A_UINT8 *ar6000_get_cust_data_buffer(A_UINT32 TargetType);
95
 
 
96
 
A_STATUS ar6000_setBTState(void *context, A_UINT8 *pInBuf, A_UINT32 InBufSize);
97
 
 
98
 
A_STATUS ar6000_setDevicePowerState(void *context, A_UINT8 *pInBuf, A_UINT32 InBufSize);
99
 
 
100
 
A_STATUS ar6000_setWowMode(void *context, A_UINT8 *pInBuf, A_UINT32 InBufSize);
101
 
 
102
 
A_STATUS ar6000_setHostMode(void *context, A_UINT8 *pInBuf, A_UINT32 InBufSize);
 
67
int ar6000_setup_credit_dist(HTC_HANDLE HTCHandle, struct common_credit_state_info *pCredInfo);
 
68
 
 
69
int ar6000_ReadRegDiag(struct hif_device *hifDevice, u32 *address, u32 *data);
 
70
 
 
71
int ar6000_WriteRegDiag(struct hif_device *hifDevice, u32 *address, u32 *data);
 
72
 
 
73
int ar6000_ReadDataDiag(struct hif_device *hifDevice, u32 address,  u8 *data, u32 length);
 
74
 
 
75
int ar6000_reset_device(struct hif_device *hifDevice, u32 TargetType, bool waitForCompletion, bool coldReset);
 
76
 
 
77
void ar6000_dump_target_assert_info(struct hif_device *hifDevice, u32 TargetType);
 
78
 
 
79
int ar6000_set_htc_params(struct hif_device *hifDevice,
 
80
                               u32 TargetType,
 
81
                               u32 MboxIsrYieldValue,
 
82
                               u8 HtcControlBuffers);
 
83
 
 
84
int ar6000_set_hci_bridge_flags(struct hif_device *hifDevice,
 
85
                                     u32 TargetType,
 
86
                                     u32 Flags);
 
87
 
 
88
void ar6000_copy_cust_data_from_target(struct hif_device *hifDevice, u32 TargetType);
 
89
 
 
90
u8 *ar6000_get_cust_data_buffer(u32 TargetType);
 
91
 
 
92
int ar6000_setBTState(void *context, u8 *pInBuf, u32 InBufSize);
 
93
 
 
94
int ar6000_setDevicePowerState(void *context, u8 *pInBuf, u32 InBufSize);
 
95
 
 
96
int ar6000_setWowMode(void *context, u8 *pInBuf, u32 InBufSize);
 
97
 
 
98
int ar6000_setHostMode(void *context, u8 *pInBuf, u32 InBufSize);
103
99
 
104
100
#ifdef __cplusplus
105
101
}