4 * Copyright 2004, Broadcom Corporation
7 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
8 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
9 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
10 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
17 /* osl handle type forward declaration */
18 typedef struct osl_info osl_t
;
19 typedef struct osl_dmainfo osldma_t
;
21 #define OSL_PKTTAG_SZ 32 /* Size of PktTag */
23 /* Drivers use PKTFREESETCB to register a callback function when a packet is freed by OSL */
24 typedef void (*pktfree_cb_fn_t
)(void *ctx
, void *pkt
, unsigned int status
);
27 #include <pcbios_osl.h>
28 #elif defined(__IOPOS__)
29 #include <iopos_osl.h>
31 #include <linux_osl.h>
36 #elif defined(_MINOSL_)
39 #include <macosx_osl.h>
40 #elif defined(__NetBSD__)
45 #error "Unsupported OSL requested"
49 #define SET_REG(osh, r, mask, val) W_REG((osh), (r), ((R_REG((osh), r) & ~(mask)) | (val)))