Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228127
b: refs/heads/master
c: 1070137
h: refs/heads/master
i:
  228125: 559c8fa
  228123: 7181093
  228119: de30a16
  228111: 86b93f8
  228095: f7e67f0
v: v3
  • Loading branch information
Brett Rudley authored and Greg Kroah-Hartman committed Nov 17, 2010
1 parent fe74297 commit 6322a36
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 23 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2e3161390130f50fdbb4b989c667f42e5008107f
refs/heads/master: 1070137de3e3b0f3fdfedc420a06a43d05a6e705
13 changes: 0 additions & 13 deletions trunk/drivers/staging/brcm80211/include/linux_osl.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,6 @@ extern void osl_pci_write_config(osl_t *osh, uint offset, uint size, uint val);
extern uint osl_pci_bus(osl_t *osh);
extern uint osl_pci_slot(osl_t *osh);

/* Pkttag flag should be part of public information */
typedef struct {
uint pktalloced; /* Number of allocated packet buffers */
bool mmbus; /* Bus supports memory-mapped register accesses */
pktfree_cb_fn_t tx_fn; /* Callback function for PKTFREE */
void *tx_ctx; /* Context to the callback function */
#if defined(BCMSDIO) && !defined(BRCM_FULLMAC)
osl_rreg_fn_t rreg_fn; /* Read Register function */
osl_wreg_fn_t wreg_fn; /* Write Register function */
void *reg_ctx; /* Context to the reg callback functions */
#endif
} osl_pubinfo_t;

#define PKTFREESETCB(osh, _tx_fn, _tx_ctx) \
do { \
((osl_pubinfo_t *)osh)->tx_fn = _tx_fn; \
Expand Down
26 changes: 24 additions & 2 deletions trunk/drivers/staging/brcm80211/include/osl.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,34 @@
#ifndef _osl_h_
#define _osl_h_

/* Drivers use PKTFREESETCB to register a callback function
when a packet is freed by OSL */
typedef void (*pktfree_cb_fn_t) (void *ctx, void *pkt, unsigned int status);

struct osl_pubinfo {
uint pktalloced; /* Number of allocated packet buffers */
bool mmbus; /* Bus supports memory-mapped registers */
pktfree_cb_fn_t tx_fn; /* Callback function for PKTFREE */
void *tx_ctx; /* Context to the callback function */
#if defined(BCMSDIO) && !defined(BRCM_FULLMAC)
osl_rreg_fn_t rreg_fn; /* Read Register function */
osl_wreg_fn_t wreg_fn; /* Write Register function */
void *reg_ctx; /* Context to the reg callback functions */
#endif
};

/* osl handle type forward declaration */
struct osl_info {
struct osl_pubinfo pub;
uint magic;
void *pdev;
uint bustype;
};

typedef struct osl_info osl_t;
typedef struct osl_pubinfo osl_pubinfo_t;
typedef struct osl_dmainfo osldma_t;

/* Drivers use PKTFREESETCB to register a callback function when a packet is freed by OSL */
typedef void (*pktfree_cb_fn_t) (void *ctx, void *pkt, unsigned int status);

#ifdef BCMSDIO
/* Drivers use REGOPSSET() to register register read/write funcitons */
Expand Down
7 changes: 0 additions & 7 deletions trunk/drivers/staging/brcm80211/util/linux_osl.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,6 @@
#define OS_HANDLE_MAGIC 0x1234abcd /* Magic # to recognise osh */
#define BCM_MEM_FILENAME_LEN 24 /* Mem. filename length */

struct osl_info {
osl_pubinfo_t pub;
uint magic;
void *pdev;
uint bustype;
};

/* Global ASSERT type flag */
u32 g_assert_type;

Expand Down

0 comments on commit 6322a36

Please sign in to comment.