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

« back to all changes in this revision

Viewing changes to drivers/staging/ath6kl/include/bmi.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:
32
32
/* Header files */
33
33
#include "a_config.h"
34
34
#include "athdefs.h"
35
 
#include "a_types.h"
36
35
#include "hif.h"
37
36
#include "a_osapi.h"
38
37
#include "bmi_msg.h"
43
42
void
44
43
BMICleanup(void);
45
44
 
46
 
A_STATUS
47
 
BMIDone(HIF_DEVICE *device);
48
 
 
49
 
A_STATUS
50
 
BMIGetTargetInfo(HIF_DEVICE *device, struct bmi_target_info *targ_info);
51
 
 
52
 
A_STATUS
53
 
BMIReadMemory(HIF_DEVICE *device,
54
 
              A_UINT32 address,
55
 
              A_UCHAR *buffer,
56
 
              A_UINT32 length);
57
 
 
58
 
A_STATUS
59
 
BMIWriteMemory(HIF_DEVICE *device,
60
 
               A_UINT32 address,
61
 
               A_UCHAR *buffer,
62
 
               A_UINT32 length);
63
 
 
64
 
A_STATUS
65
 
BMIExecute(HIF_DEVICE *device,
66
 
           A_UINT32 address,
67
 
           A_UINT32 *param);
68
 
 
69
 
A_STATUS
70
 
BMISetAppStart(HIF_DEVICE *device,
71
 
               A_UINT32 address);
72
 
 
73
 
A_STATUS
74
 
BMIReadSOCRegister(HIF_DEVICE *device,
75
 
                   A_UINT32 address,
76
 
                   A_UINT32 *param);
77
 
 
78
 
A_STATUS
79
 
BMIWriteSOCRegister(HIF_DEVICE *device,
80
 
                    A_UINT32 address,
81
 
                    A_UINT32 param);
82
 
 
83
 
A_STATUS
84
 
BMIrompatchInstall(HIF_DEVICE *device,
85
 
                   A_UINT32 ROM_addr,
86
 
                   A_UINT32 RAM_addr,
87
 
                   A_UINT32 nbytes,
88
 
                   A_UINT32 do_activate,
89
 
                   A_UINT32 *patch_id);
90
 
 
91
 
A_STATUS
92
 
BMIrompatchUninstall(HIF_DEVICE *device,
93
 
                     A_UINT32 rompatch_id);
94
 
 
95
 
A_STATUS
96
 
BMIrompatchActivate(HIF_DEVICE *device,
97
 
                    A_UINT32 rompatch_count,
98
 
                    A_UINT32 *rompatch_list);
99
 
 
100
 
A_STATUS
101
 
BMIrompatchDeactivate(HIF_DEVICE *device,
102
 
                      A_UINT32 rompatch_count,
103
 
                      A_UINT32 *rompatch_list);
104
 
 
105
 
A_STATUS
106
 
BMILZStreamStart(HIF_DEVICE *device,
107
 
                 A_UINT32 address);
108
 
 
109
 
A_STATUS
110
 
BMILZData(HIF_DEVICE *device,
111
 
          A_UCHAR *buffer,
112
 
          A_UINT32 length);
113
 
 
114
 
A_STATUS
115
 
BMIFastDownload(HIF_DEVICE *device,
116
 
                A_UINT32 address,
117
 
                A_UCHAR *buffer,
118
 
                A_UINT32 length);
119
 
 
120
 
A_STATUS
121
 
BMIRawWrite(HIF_DEVICE *device,
122
 
            A_UCHAR *buffer,
123
 
            A_UINT32 length);
124
 
 
125
 
A_STATUS
126
 
BMIRawRead(HIF_DEVICE *device, 
127
 
           A_UCHAR *buffer, 
128
 
           A_UINT32 length, 
129
 
           A_BOOL want_timeout);
 
45
int
 
46
BMIDone(struct hif_device *device);
 
47
 
 
48
int
 
49
BMIGetTargetInfo(struct hif_device *device, struct bmi_target_info *targ_info);
 
50
 
 
51
int
 
52
BMIReadMemory(struct hif_device *device,
 
53
              u32 address,
 
54
              u8 *buffer,
 
55
              u32 length);
 
56
 
 
57
int
 
58
BMIWriteMemory(struct hif_device *device,
 
59
               u32 address,
 
60
               u8 *buffer,
 
61
               u32 length);
 
62
 
 
63
int
 
64
BMIExecute(struct hif_device *device,
 
65
           u32 address,
 
66
           u32 *param);
 
67
 
 
68
int
 
69
BMISetAppStart(struct hif_device *device,
 
70
               u32 address);
 
71
 
 
72
int
 
73
BMIReadSOCRegister(struct hif_device *device,
 
74
                   u32 address,
 
75
                   u32 *param);
 
76
 
 
77
int
 
78
BMIWriteSOCRegister(struct hif_device *device,
 
79
                    u32 address,
 
80
                    u32 param);
 
81
 
 
82
int
 
83
BMIrompatchInstall(struct hif_device *device,
 
84
                   u32 ROM_addr,
 
85
                   u32 RAM_addr,
 
86
                   u32 nbytes,
 
87
                   u32 do_activate,
 
88
                   u32 *patch_id);
 
89
 
 
90
int
 
91
BMIrompatchUninstall(struct hif_device *device,
 
92
                     u32 rompatch_id);
 
93
 
 
94
int
 
95
BMIrompatchActivate(struct hif_device *device,
 
96
                    u32 rompatch_count,
 
97
                    u32 *rompatch_list);
 
98
 
 
99
int
 
100
BMIrompatchDeactivate(struct hif_device *device,
 
101
                      u32 rompatch_count,
 
102
                      u32 *rompatch_list);
 
103
 
 
104
int
 
105
BMILZStreamStart(struct hif_device *device,
 
106
                 u32 address);
 
107
 
 
108
int
 
109
BMILZData(struct hif_device *device,
 
110
          u8 *buffer,
 
111
          u32 length);
 
112
 
 
113
int
 
114
BMIFastDownload(struct hif_device *device,
 
115
                u32 address,
 
116
                u8 *buffer,
 
117
                u32 length);
 
118
 
 
119
int
 
120
BMIRawWrite(struct hif_device *device,
 
121
            u8 *buffer,
 
122
            u32 length);
 
123
 
 
124
int
 
125
BMIRawRead(struct hif_device *device, 
 
126
           u8 *buffer, 
 
127
           u32 length,
 
128
           bool want_timeout);
130
129
 
131
130
#ifdef __cplusplus
132
131
}