Commit bc8adcd5 authored by Roland Vossen's avatar Roland Vossen Committed by Greg Kroah-Hartman

staging: brcm80211: removed function declaration typedefs from dma.h part 4

Softmac related code cleanup. Typedefs are undesirable according to the
CodingStyle document.
Signed-off-by: default avatarRoland Vossen <rvossen@broadcom.com>
Reviewed-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6fe3c48d
...@@ -395,13 +395,13 @@ const struct di_fcn_s dma64proc = { ...@@ -395,13 +395,13 @@ const struct di_fcn_s dma64proc = {
(void (*)(struct dma_pub *)) dma64_txresume, (void (*)(struct dma_pub *)) dma64_txresume,
(bool(*)(struct dma_pub *)) dma64_txsuspended, (bool(*)(struct dma_pub *)) dma64_txsuspended,
(bool(*)(struct dma_pub *)) dma64_txsuspendedidle, (bool(*)(struct dma_pub *)) dma64_txsuspendedidle,
(di_txfast_t) dma64_txfast, (int (*)(struct dma_pub *, struct sk_buff *, bool)) dma64_txfast,
(di_txunframed_t) dma64_txunframed, (int (*)(struct dma_pub *, void *, uint, bool)) dma64_txunframed,
(di_getpos_t) dma64_getpos, (void *(*)(struct dma_pub *, bool)) dma64_getpos,
(bool(*)(struct dma_pub *)) dma64_txstopped, (bool(*)(struct dma_pub *)) dma64_txstopped,
(di_txreclaim_t) dma64_txreclaim, (void (*)(struct dma_pub *, enum txd_range)) dma64_txreclaim,
(di_getnexttxp_t) dma64_getnexttxp, (void *(*)(struct dma_pub *, enum txd_range)) dma64_getnexttxp,
(di_peeknexttxp_t) _dma_peeknexttxp, (void *(*)(struct dma_pub *)) _dma_peeknexttxp,
(void (*)(struct dma_pub *)) _dma_txblock, (void (*)(struct dma_pub *)) _dma_txblock,
(void (*)(struct dma_pub *)) _dma_txunblock, (void (*)(struct dma_pub *)) _dma_txunblock,
(uint (*)(struct dma_pub *)) _dma_txactive, (uint (*)(struct dma_pub *)) _dma_txactive,
...@@ -413,17 +413,17 @@ const struct di_fcn_s dma64proc = { ...@@ -413,17 +413,17 @@ const struct di_fcn_s dma64proc = {
(bool(*)(struct dma_pub *)) dma64_rxstopped, (bool(*)(struct dma_pub *)) dma64_rxstopped,
(bool(*)(struct dma_pub *)) _dma_rxenable, (bool(*)(struct dma_pub *)) _dma_rxenable,
(bool(*)(struct dma_pub *)) dma64_rxenabled, (bool(*)(struct dma_pub *)) dma64_rxenabled,
(di_rx_t) _dma_rx, (void *(*)(struct dma_pub *)) _dma_rx,
(bool(*)(struct dma_pub *)) _dma_rxfill, (bool(*)(struct dma_pub *)) _dma_rxfill,
(void (*)(struct dma_pub *)) _dma_rxreclaim, (void (*)(struct dma_pub *)) _dma_rxreclaim,
(di_getnextrxp_t) _dma_getnextrxp, (void *(*)(struct dma_pub *, bool)) _dma_getnextrxp,
(di_peeknextrxp_t) _dma_peeknextrxp, (void *(*)(struct dma_pub *)) _dma_peeknextrxp,
(di_rxparam_get_t) _dma_rx_param_get, (void (*)(struct dma_pub *, u16 *, u16 *)) _dma_rx_param_get,
(void (*)(struct dma_pub *)) _dma_fifoloopbackenable, (void (*)(struct dma_pub *)) _dma_fifoloopbackenable,
(di_getvar_t) _dma_getvar, (unsigned long (*)(struct dma_pub *, const char *)) _dma_getvar,
(void (*)(struct dma_pub *)) _dma_counterreset, (void (*)(struct dma_pub *)) _dma_counterreset,
(di_ctrlflags_t) _dma_ctrlflags, (uint (*)(struct dma_pub *, uint, uint)) _dma_ctrlflags,
NULL, NULL,
NULL, NULL,
NULL, NULL,
......
...@@ -58,30 +58,6 @@ enum txd_range { ...@@ -58,30 +58,6 @@ enum txd_range {
DMA_RANGE_TRANSFERED DMA_RANGE_TRANSFERED
}; };
/* dma function type */
typedef int (*di_txfast_t) (struct dma_pub *dmah, struct sk_buff *p,
bool commit);
typedef int (*di_txunframed_t) (struct dma_pub *dmah, void *p, uint len,
bool commit);
typedef void *(*di_getpos_t) (struct dma_pub *di, bool direction);
typedef void *(*di_rx_t) (struct dma_pub *dmah);
typedef void (*di_txreclaim_t) (struct dma_pub *dmah, enum txd_range range);
typedef unsigned long (*di_getvar_t) (struct dma_pub *dmah,
const char *name);
typedef void *(*di_getnexttxp_t) (struct dma_pub *dmah, enum txd_range range);
typedef void *(*di_getnextrxp_t) (struct dma_pub *dmah, bool forceall);
typedef void *(*di_peeknexttxp_t) (struct dma_pub *dmah);
typedef void *(*di_peeknextrxp_t) (struct dma_pub *dmah);
typedef void (*di_rxparam_get_t) (struct dma_pub *dmah, u16 *rxoffset,
u16 *rxbufsize);
typedef uint(*di_ctrlflags_t) (struct dma_pub *dmah, uint mask, uint flags);
typedef char *(*di_dump_t) (struct dma_pub *dmah, struct brcmu_strbuf *b,
bool dumpring);
typedef char *(*di_dumptx_t) (struct dma_pub *dmah, struct brcmu_strbuf *b,
bool dumpring);
typedef char *(*di_dumprx_t) (struct dma_pub *dmah, struct brcmu_strbuf *b,
bool dumpring);
/* dma opsvec */ /* dma opsvec */
struct di_fcn_s { struct di_fcn_s {
void (*detach)(struct dma_pub *dmah); void (*detach)(struct dma_pub *dmah);
...@@ -92,13 +68,14 @@ struct di_fcn_s { ...@@ -92,13 +68,14 @@ struct di_fcn_s {
void (*txresume)(struct dma_pub *dmah); void (*txresume)(struct dma_pub *dmah);
bool (*txsuspended)(struct dma_pub *dmah); bool (*txsuspended)(struct dma_pub *dmah);
bool (*txsuspendedidle)(struct dma_pub *dmah); bool (*txsuspendedidle)(struct dma_pub *dmah);
di_txfast_t txfast; int (*txfast)(struct dma_pub *dmah, struct sk_buff *p, bool commit);
di_txunframed_t txunframed; int (*txunframed)(struct dma_pub *dmah, void *p, uint len, bool commit);
di_getpos_t getpos;
void *(*getpos)(struct dma_pub *di, bool direction);
bool (*txstopped)(struct dma_pub *dmah); bool (*txstopped)(struct dma_pub *dmah);
di_txreclaim_t txreclaim; void (*txreclaim)(struct dma_pub *dmah, enum txd_range range);
di_getnexttxp_t getnexttxp; void *(*getnexttxp)(struct dma_pub *dmah, enum txd_range range);
di_peeknexttxp_t peeknexttxp; void *(*peeknexttxp) (struct dma_pub *dmah);
void (*txblock) (struct dma_pub *dmah); void (*txblock) (struct dma_pub *dmah);
void (*txunblock) (struct dma_pub *dmah); void (*txunblock) (struct dma_pub *dmah);
uint (*txactive)(struct dma_pub *dmah); uint (*txactive)(struct dma_pub *dmah);
...@@ -110,20 +87,25 @@ struct di_fcn_s { ...@@ -110,20 +87,25 @@ struct di_fcn_s {
bool (*rxstopped)(struct dma_pub *dmah); bool (*rxstopped)(struct dma_pub *dmah);
bool (*rxenable)(struct dma_pub *dmah); bool (*rxenable)(struct dma_pub *dmah);
bool (*rxenabled)(struct dma_pub *dmah); bool (*rxenabled)(struct dma_pub *dmah);
di_rx_t rx; void *(*rx)(struct dma_pub *dmah);
bool (*rxfill)(struct dma_pub *dmah); bool (*rxfill)(struct dma_pub *dmah);
void (*rxreclaim)(struct dma_pub *dmah); void (*rxreclaim)(struct dma_pub *dmah);
di_getnextrxp_t getnextrxp; void *(*getnextrxp)(struct dma_pub *dmah, bool forceall);
di_peeknextrxp_t peeknextrxp; void *(*peeknextrxp)(struct dma_pub *dmah);
di_rxparam_get_t rxparam_get; void (*rxparam_get)(struct dma_pub *dmah, u16 *rxoffset,
u16 *rxbufsize);
void (*fifoloopbackenable)(struct dma_pub *dmah); void (*fifoloopbackenable)(struct dma_pub *dmah);
di_getvar_t d_getvar; unsigned long (*d_getvar)(struct dma_pub *dmah, const char *name);
void (*counterreset)(struct dma_pub *dmah); void (*counterreset)(struct dma_pub *dmah);
di_ctrlflags_t ctrlflags; uint (*ctrlflags)(struct dma_pub *dmah, uint mask, uint flags);
di_dump_t dump; char *(*dump)(struct dma_pub *dmah, struct brcmu_strbuf *b,
di_dumptx_t dumptx; bool dumpring);
di_dumprx_t dumprx; char *(*dumptx)(struct dma_pub *dmah, struct brcmu_strbuf *b,
bool dumpring);
char *(*dumprx)(struct dma_pub *dmah, struct brcmu_strbuf *b,
bool dumpring);
uint (*rxactive)(struct dma_pub *dmah); uint (*rxactive)(struct dma_pub *dmah);
uint (*txpending)(struct dma_pub *dmah); uint (*txpending)(struct dma_pub *dmah);
uint (*txcommitted)(struct dma_pub *dmah); uint (*txcommitted)(struct dma_pub *dmah);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment