ath6kl: remove-typedef HIF_DEVICE_SCATTER_SUPPORT_INFO
remove-typedef -s HIF_DEVICE_SCATTER_SUPPORT_INFO \ "struct hif_device_scatter_support_info" drivers/staging/ath6kl/ Tested-by: Naveen Singh <nsingh@atheros.com> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
e6b5260ee8
commit
031a71c774
|
@ -110,13 +110,13 @@ typedef struct _HIF_SCATTER_REQ_PRIV {
|
|||
|
||||
#define ATH_DEBUG_SCATTER ATH_DEBUG_MAKE_MODULE_MASK(0)
|
||||
|
||||
int SetupHIFScatterSupport(HIF_DEVICE *device, HIF_DEVICE_SCATTER_SUPPORT_INFO *pInfo);
|
||||
int SetupHIFScatterSupport(HIF_DEVICE *device, struct hif_device_scatter_support_info *pInfo);
|
||||
void CleanupHIFScatterResources(HIF_DEVICE *device);
|
||||
int DoHifReadWriteScatter(HIF_DEVICE *device, BUS_REQUEST *busrequest);
|
||||
|
||||
#else // HIF_LINUX_MMC_SCATTER_SUPPORT
|
||||
|
||||
static inline int SetupHIFScatterSupport(HIF_DEVICE *device, HIF_DEVICE_SCATTER_SUPPORT_INFO *pInfo)
|
||||
static inline int SetupHIFScatterSupport(HIF_DEVICE *device, struct hif_device_scatter_support_info *pInfo)
|
||||
{
|
||||
return A_ENOTSUP;
|
||||
}
|
||||
|
|
|
@ -723,7 +723,7 @@ HIFConfigureDevice(HIF_DEVICE *device, HIF_DEVICE_CONFIG_OPCODE opcode,
|
|||
if (!device->scatter_enabled) {
|
||||
return A_ENOTSUP;
|
||||
}
|
||||
status = SetupHIFScatterSupport(device, (HIF_DEVICE_SCATTER_SUPPORT_INFO *)config);
|
||||
status = SetupHIFScatterSupport(device, (struct hif_device_scatter_support_info *)config);
|
||||
if (status) {
|
||||
device->scatter_enabled = false;
|
||||
}
|
||||
|
|
|
@ -275,7 +275,7 @@ static int HifReadWriteScatter(HIF_DEVICE *device, HIF_SCATTER_REQ *pReq)
|
|||
}
|
||||
|
||||
/* setup of HIF scatter resources */
|
||||
int SetupHIFScatterSupport(HIF_DEVICE *device, HIF_DEVICE_SCATTER_SUPPORT_INFO *pInfo)
|
||||
int SetupHIFScatterSupport(HIF_DEVICE *device, struct hif_device_scatter_support_info *pInfo)
|
||||
{
|
||||
int status = A_ERROR;
|
||||
int i;
|
||||
|
|
|
@ -132,7 +132,7 @@ struct ar6k_device {
|
|||
struct hif_device_irq_yield_params HifIRQYieldParams;
|
||||
bool DSRCanYield;
|
||||
int CurrentDSRRecvCount;
|
||||
HIF_DEVICE_SCATTER_SUPPORT_INFO HifScatterInfo;
|
||||
struct hif_device_scatter_support_info HifScatterInfo;
|
||||
struct dl_list ScatterReqHead;
|
||||
bool ScatterIsVirtual;
|
||||
int MaxRecvBundleSize;
|
||||
|
|
|
@ -203,7 +203,7 @@ typedef enum {
|
|||
*
|
||||
* HIF_CONFIGURE_QUERY_SCATTER_REQUEST_SUPPORT
|
||||
* input : none
|
||||
* output : HIF_DEVICE_SCATTER_SUPPORT_INFO
|
||||
* output : struct hif_device_scatter_support_info
|
||||
* note: This query checks if the HIF layer implements the SCATTER request interface. Scatter requests
|
||||
* allows upper layers to submit mailbox I/O operations using a list of buffers. This is useful for
|
||||
* multi-message transfers that can better utilize the bus interconnect.
|
||||
|
@ -306,14 +306,14 @@ typedef HIF_SCATTER_REQ * ( *HIF_ALLOCATE_SCATTER_REQUEST)(HIF_DEVICE *device);
|
|||
typedef void ( *HIF_FREE_SCATTER_REQUEST)(HIF_DEVICE *device, HIF_SCATTER_REQ *request);
|
||||
typedef int ( *HIF_READWRITE_SCATTER)(HIF_DEVICE *device, HIF_SCATTER_REQ *request);
|
||||
|
||||
typedef struct _HIF_DEVICE_SCATTER_SUPPORT_INFO {
|
||||
struct hif_device_scatter_support_info {
|
||||
/* information returned from HIF layer */
|
||||
HIF_ALLOCATE_SCATTER_REQUEST pAllocateReqFunc;
|
||||
HIF_FREE_SCATTER_REQUEST pFreeReqFunc;
|
||||
HIF_READWRITE_SCATTER pReadWriteScatterFunc;
|
||||
int MaxScatterEntries;
|
||||
int MaxTransferSizePerScatterReq;
|
||||
} HIF_DEVICE_SCATTER_SUPPORT_INFO;
|
||||
};
|
||||
|
||||
struct hif_device_os_device_info {
|
||||
void *pOSDevice;
|
||||
|
|
Loading…
Reference in New Issue