Staging: brcm80211: remove uintptr typedef usage
Use a unsigned long, that is the proper type for this type of thing on Linux. Cc: Brett Rudley <brudley@broadcom.com> Cc: Henry Ptasinski <henryp@broadcom.com> Cc: Nohee Ko <noheek@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
8ee48db6be
commit
f024c48a77
|
@ -442,7 +442,7 @@ bcmsdh_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||||
SDLX_MSG(("%s: Cannot enable PCI device\n", __func__));
|
SDLX_MSG(("%s: Cannot enable PCI device\n", __func__));
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
sdh = bcmsdh_attach(osh, (void *)(uintptr) pci_resource_start(pdev, 0),
|
sdh = bcmsdh_attach(osh, (void *)(unsigned long)pci_resource_start(pdev, 0),
|
||||||
(void **)®s, pdev->irq);
|
(void **)®s, pdev->irq);
|
||||||
if (!sdh) {
|
if (!sdh) {
|
||||||
SDLX_MSG(("%s: bcmsdh_attach failed\n", __func__));
|
SDLX_MSG(("%s: bcmsdh_attach failed\n", __func__));
|
||||||
|
|
|
@ -413,7 +413,7 @@ int dhd_prot_attach(dhd_pub_t *dhd)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ensure that the msg buf directly follows the cdc msg struct */
|
/* ensure that the msg buf directly follows the cdc msg struct */
|
||||||
if ((uintptr) (&cdc->msg + 1) != (uintptr) cdc->buf) {
|
if ((unsigned long)(&cdc->msg + 1) != (unsigned long)cdc->buf) {
|
||||||
DHD_ERROR(("dhd_prot_t is not correctly defined\n"));
|
DHD_ERROR(("dhd_prot_t is not correctly defined\n"));
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1476,7 +1476,7 @@ int dhd_iscan_print_cache(iscan_buf_t *iscan_skip)
|
||||||
bi->BSSID.octet[2], bi->BSSID.octet[3],
|
bi->BSSID.octet[2], bi->BSSID.octet[3],
|
||||||
bi->BSSID.octet[4], bi->BSSID.octet[5]));
|
bi->BSSID.octet[4], bi->BSSID.octet[5]));
|
||||||
|
|
||||||
bi = (wl_bss_info_t *) ((uintptr) bi +
|
bi = (wl_bss_info_t *)((unsigned long)bi +
|
||||||
dtoh32(bi->length));
|
dtoh32(bi->length));
|
||||||
}
|
}
|
||||||
iscan_cur = iscan_cur->next;
|
iscan_cur = iscan_cur->next;
|
||||||
|
@ -1541,7 +1541,7 @@ int dhd_iscan_delete_bss(void *dhdp, void *addr, iscan_buf_t *iscan_skip)
|
||||||
bi->BSSID.octet[5]));
|
bi->BSSID.octet[5]));
|
||||||
|
|
||||||
bi_new = bi;
|
bi_new = bi;
|
||||||
bi = (wl_bss_info_t *) ((uintptr) bi +
|
bi = (wl_bss_info_t *)((unsigned long)bi +
|
||||||
dtoh32
|
dtoh32
|
||||||
(bi->length));
|
(bi->length));
|
||||||
/*
|
/*
|
||||||
|
@ -1567,17 +1567,14 @@ int dhd_iscan_delete_bss(void *dhdp, void *addr, iscan_buf_t *iscan_skip)
|
||||||
bi->BSSID.octet[5]));
|
bi->BSSID.octet[5]));
|
||||||
|
|
||||||
bi_next =
|
bi_next =
|
||||||
(wl_bss_info_t
|
(wl_bss_info_t *)((unsigned long)bi +
|
||||||
*) ((uintptr) bi +
|
|
||||||
dtoh32
|
dtoh32
|
||||||
(bi->length));
|
(bi->length));
|
||||||
bcopy(bi, bi_new,
|
bcopy(bi, bi_new,
|
||||||
dtoh32
|
dtoh32
|
||||||
(bi->length));
|
(bi->length));
|
||||||
bi_new =
|
bi_new =
|
||||||
(wl_bss_info_t
|
(wl_bss_info_t *)((unsigned long)bi_new +
|
||||||
*) ((uintptr)
|
|
||||||
bi_new +
|
|
||||||
dtoh32
|
dtoh32
|
||||||
(bi_new->
|
(bi_new->
|
||||||
length));
|
length));
|
||||||
|
@ -1594,7 +1591,7 @@ int dhd_iscan_delete_bss(void *dhdp, void *addr, iscan_buf_t *iscan_skip)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
bi = (wl_bss_info_t *) ((uintptr) bi +
|
bi = (wl_bss_info_t *)((unsigned long)bi +
|
||||||
dtoh32(bi->length));
|
dtoh32(bi->length));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1649,7 +1646,7 @@ int dhd_iscan_remove_duplicates(void *dhdp, iscan_buf_t *iscan_cur)
|
||||||
|
|
||||||
dhd_iscan_delete_bss(dhdp, bi->BSSID.octet, iscan_cur);
|
dhd_iscan_delete_bss(dhdp, bi->BSSID.octet, iscan_cur);
|
||||||
|
|
||||||
bi = (wl_bss_info_t *) ((uintptr) bi + dtoh32(bi->length));
|
bi = (wl_bss_info_t *)((unsigned long)bi + dtoh32(bi->length));
|
||||||
}
|
}
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
|
|
@ -358,7 +358,7 @@ extern void bcmsdh_enable_hw_oob_intr(void *sdh, bool enable);
|
||||||
#define PKTALIGN(osh, p, len, align) \
|
#define PKTALIGN(osh, p, len, align) \
|
||||||
do { \
|
do { \
|
||||||
uint datalign; \
|
uint datalign; \
|
||||||
datalign = (uintptr)PKTDATA((p)); \
|
datalign = (unsigned long)PKTDATA((p)); \
|
||||||
datalign = roundup(datalign, (align)) - datalign; \
|
datalign = roundup(datalign, (align)) - datalign; \
|
||||||
ASSERT(datalign < (align)); \
|
ASSERT(datalign < (align)); \
|
||||||
ASSERT(PKTLEN((p)) >= ((len) + datalign)); \
|
ASSERT(PKTLEN((p)) >= ((len) + datalign)); \
|
||||||
|
@ -924,7 +924,7 @@ static int dhdsdio_txpkt(dhd_bus_t *bus, void *pkt, uint chan, bool free_pkt)
|
||||||
frame = (u8 *) PKTDATA(pkt);
|
frame = (u8 *) PKTDATA(pkt);
|
||||||
|
|
||||||
/* Add alignment padding, allocate new packet if needed */
|
/* Add alignment padding, allocate new packet if needed */
|
||||||
pad = ((uintptr) frame % DHD_SDALIGN);
|
pad = ((unsigned long)frame % DHD_SDALIGN);
|
||||||
if (pad) {
|
if (pad) {
|
||||||
if (PKTHEADROOM(pkt) < pad) {
|
if (PKTHEADROOM(pkt) < pad) {
|
||||||
DHD_INFO(("%s: insufficient headroom %d for %d pad\n",
|
DHD_INFO(("%s: insufficient headroom %d for %d pad\n",
|
||||||
|
@ -947,7 +947,7 @@ static int dhdsdio_txpkt(dhd_bus_t *bus, void *pkt, uint chan, bool free_pkt)
|
||||||
free_pkt = true;
|
free_pkt = true;
|
||||||
pkt = new;
|
pkt = new;
|
||||||
frame = (u8 *) PKTDATA(pkt);
|
frame = (u8 *) PKTDATA(pkt);
|
||||||
ASSERT(((uintptr) frame % DHD_SDALIGN) == 0);
|
ASSERT(((unsigned long)frame % DHD_SDALIGN) == 0);
|
||||||
pad = 0;
|
pad = 0;
|
||||||
} else {
|
} else {
|
||||||
PKTPUSH(pkt, pad);
|
PKTPUSH(pkt, pad);
|
||||||
|
@ -1087,7 +1087,7 @@ int dhd_bus_txdata(struct dhd_bus *bus, void *pkt)
|
||||||
|
|
||||||
/* Add space for the header */
|
/* Add space for the header */
|
||||||
PKTPUSH(pkt, SDPCM_HDRLEN);
|
PKTPUSH(pkt, SDPCM_HDRLEN);
|
||||||
ASSERT(IS_ALIGNED((uintptr) PKTDATA(pkt), 2));
|
ASSERT(IS_ALIGNED((unsigned long)PKTDATA(pkt), 2));
|
||||||
|
|
||||||
prec = PRIO2PREC((PKTPRIO(pkt) & PRIOMASK));
|
prec = PRIO2PREC((PKTPRIO(pkt) & PRIOMASK));
|
||||||
|
|
||||||
|
@ -1241,7 +1241,7 @@ int dhd_bus_txctl(struct dhd_bus *bus, unsigned char *msg, uint msglen)
|
||||||
|
|
||||||
/* Add alignment padding (optional for ctl frames) */
|
/* Add alignment padding (optional for ctl frames) */
|
||||||
if (dhd_alignctl) {
|
if (dhd_alignctl) {
|
||||||
doff = ((uintptr) frame % DHD_SDALIGN);
|
doff = ((unsigned long)frame % DHD_SDALIGN);
|
||||||
if (doff) {
|
if (doff) {
|
||||||
frame -= doff;
|
frame -= doff;
|
||||||
len += doff;
|
len += doff;
|
||||||
|
@ -1265,7 +1265,7 @@ int dhd_bus_txctl(struct dhd_bus *bus, unsigned char *msg, uint msglen)
|
||||||
if (forcealign && (len & (ALIGNMENT - 1)))
|
if (forcealign && (len & (ALIGNMENT - 1)))
|
||||||
len = roundup(len, ALIGNMENT);
|
len = roundup(len, ALIGNMENT);
|
||||||
|
|
||||||
ASSERT(IS_ALIGNED((uintptr) frame, 2));
|
ASSERT(IS_ALIGNED((unsigned long)frame, 2));
|
||||||
|
|
||||||
/* Need to lock here to protect txseq and SDIO tx calls */
|
/* Need to lock here to protect txseq and SDIO tx calls */
|
||||||
dhd_os_sdlock(bus->dhd);
|
dhd_os_sdlock(bus->dhd);
|
||||||
|
@ -2336,7 +2336,7 @@ dhdsdio_doiovar(dhd_bus_t *bus, const bcm_iovar_t *vi, u32 actionid,
|
||||||
|
|
||||||
sd_ptr = (sdreg_t *) params;
|
sd_ptr = (sdreg_t *) params;
|
||||||
|
|
||||||
addr = (uintptr) bus->regs + sd_ptr->offset;
|
addr = (unsigned long)bus->regs + sd_ptr->offset;
|
||||||
size = sd_ptr->func;
|
size = sd_ptr->func;
|
||||||
int_val = (s32) bcmsdh_reg_read(bus->sdh, addr, size);
|
int_val = (s32) bcmsdh_reg_read(bus->sdh, addr, size);
|
||||||
if (bcmsdh_regfail(bus->sdh))
|
if (bcmsdh_regfail(bus->sdh))
|
||||||
|
@ -2352,7 +2352,7 @@ dhdsdio_doiovar(dhd_bus_t *bus, const bcm_iovar_t *vi, u32 actionid,
|
||||||
|
|
||||||
sd_ptr = (sdreg_t *) params;
|
sd_ptr = (sdreg_t *) params;
|
||||||
|
|
||||||
addr = (uintptr) bus->regs + sd_ptr->offset;
|
addr = (unsigned long)bus->regs + sd_ptr->offset;
|
||||||
size = sd_ptr->func;
|
size = sd_ptr->func;
|
||||||
bcmsdh_reg_write(bus->sdh, addr, size, sd_ptr->value);
|
bcmsdh_reg_write(bus->sdh, addr, size, sd_ptr->value);
|
||||||
if (bcmsdh_regfail(bus->sdh))
|
if (bcmsdh_regfail(bus->sdh))
|
||||||
|
@ -3086,7 +3086,7 @@ dhdsdio_read_control(dhd_bus_t *bus, u8 *hdr, uint len, uint doff)
|
||||||
bus->rxctl = bus->rxbuf;
|
bus->rxctl = bus->rxbuf;
|
||||||
if (dhd_alignctl) {
|
if (dhd_alignctl) {
|
||||||
bus->rxctl += firstread;
|
bus->rxctl += firstread;
|
||||||
pad = ((uintptr) bus->rxctl % DHD_SDALIGN);
|
pad = ((unsigned long)bus->rxctl % DHD_SDALIGN);
|
||||||
if (pad)
|
if (pad)
|
||||||
bus->rxctl += (DHD_SDALIGN - pad);
|
bus->rxctl += (DHD_SDALIGN - pad);
|
||||||
bus->rxctl -= firstread;
|
bus->rxctl -= firstread;
|
||||||
|
@ -3681,7 +3681,7 @@ static uint dhdsdio_readframes(dhd_bus_t *bus, uint maxframes, bool *finished)
|
||||||
bus->rxctl = bus->rxbuf;
|
bus->rxctl = bus->rxbuf;
|
||||||
if (dhd_alignctl) {
|
if (dhd_alignctl) {
|
||||||
bus->rxctl += firstread;
|
bus->rxctl += firstread;
|
||||||
pad = ((uintptr) bus->rxctl %
|
pad = ((unsigned long)bus->rxctl %
|
||||||
DHD_SDALIGN);
|
DHD_SDALIGN);
|
||||||
if (pad)
|
if (pad)
|
||||||
bus->rxctl +=
|
bus->rxctl +=
|
||||||
|
@ -5091,7 +5091,7 @@ static void *dhdsdio_probe(u16 venid, u16 devid, u16 bus_no,
|
||||||
DHD_INFO(("%s: venid 0x%04x devid 0x%04x\n", __func__, venid, devid));
|
DHD_INFO(("%s: venid 0x%04x devid 0x%04x\n", __func__, venid, devid));
|
||||||
|
|
||||||
/* We make assumptions about address window mappings */
|
/* We make assumptions about address window mappings */
|
||||||
ASSERT((uintptr) regsva == SI_ENUM_BASE);
|
ASSERT((unsigned long)regsva == SI_ENUM_BASE);
|
||||||
|
|
||||||
/* BCMSDH passes venid and devid based on CIS parsing -- but
|
/* BCMSDH passes venid and devid based on CIS parsing -- but
|
||||||
* low-power start
|
* low-power start
|
||||||
|
@ -5363,7 +5363,7 @@ dhdsdio_probe_attach(struct dhd_bus *bus, osl_t *osh, void *sdh, void *regsva,
|
||||||
pktq_init(&bus->txq, (PRIOMASK + 1), QLEN);
|
pktq_init(&bus->txq, (PRIOMASK + 1), QLEN);
|
||||||
|
|
||||||
/* Locate an appropriately-aligned portion of hdrbuf */
|
/* Locate an appropriately-aligned portion of hdrbuf */
|
||||||
bus->rxhdr = (u8 *) roundup((uintptr)&bus->hdrbuf[0], DHD_SDALIGN);
|
bus->rxhdr = (u8 *) roundup((unsigned long)&bus->hdrbuf[0], DHD_SDALIGN);
|
||||||
|
|
||||||
/* Set the poll and/or interrupt flags */
|
/* Set the poll and/or interrupt flags */
|
||||||
bus->intr = (bool) dhd_intr;
|
bus->intr = (bool) dhd_intr;
|
||||||
|
@ -5405,10 +5405,10 @@ static bool dhdsdio_probe_malloc(dhd_bus_t *bus, osl_t *osh, void *sdh)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Align the buffer */
|
/* Align the buffer */
|
||||||
if ((uintptr) bus->databuf % DHD_SDALIGN)
|
if ((unsigned long)bus->databuf % DHD_SDALIGN)
|
||||||
bus->dataptr =
|
bus->dataptr =
|
||||||
bus->databuf + (DHD_SDALIGN -
|
bus->databuf + (DHD_SDALIGN -
|
||||||
((uintptr) bus->databuf % DHD_SDALIGN));
|
((unsigned long)bus->databuf % DHD_SDALIGN));
|
||||||
else
|
else
|
||||||
bus->dataptr = bus->databuf;
|
bus->dataptr = bus->databuf;
|
||||||
|
|
||||||
|
@ -5739,9 +5739,9 @@ static int dhdsdio_download_code_file(struct dhd_bus *bus, char *fw_path)
|
||||||
__func__, MEMBLOCK));
|
__func__, MEMBLOCK));
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
if ((u32) (uintptr) memblock % DHD_SDALIGN)
|
if ((u32)(unsigned long)memblock % DHD_SDALIGN)
|
||||||
memptr +=
|
memptr +=
|
||||||
(DHD_SDALIGN - ((u32) (uintptr) memblock % DHD_SDALIGN));
|
(DHD_SDALIGN - ((u32)(unsigned long)memblock % DHD_SDALIGN));
|
||||||
|
|
||||||
/* Download image */
|
/* Download image */
|
||||||
while ((len =
|
while ((len =
|
||||||
|
|
|
@ -364,7 +364,7 @@ static inline struct wl_bss_info *next_bss(struct wl_scan_results *list,
|
||||||
struct wl_bss_info *bss)
|
struct wl_bss_info *bss)
|
||||||
{
|
{
|
||||||
return bss = bss ?
|
return bss = bss ?
|
||||||
(struct wl_bss_info *)((uintptr) bss +
|
(struct wl_bss_info *)((unsigned long)bss +
|
||||||
dtoh32(bss->length)) : list->bss_info;
|
dtoh32(bss->length)) : list->bss_info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -903,11 +903,11 @@ wl_iw_get_aplist(struct net_device *dev,
|
||||||
|
|
||||||
for (i = 0, dwrq->length = 0;
|
for (i = 0, dwrq->length = 0;
|
||||||
i < list->count && dwrq->length < IW_MAX_AP; i++) {
|
i < list->count && dwrq->length < IW_MAX_AP; i++) {
|
||||||
bi = bi ? (wl_bss_info_t *) ((uintptr) bi +
|
bi = bi ? (wl_bss_info_t *) ((unsigned long)bi +
|
||||||
dtoh32(bi->length)) : list->
|
dtoh32(bi->length)) : list->
|
||||||
bss_info;
|
bss_info;
|
||||||
ASSERT(((uintptr) bi + dtoh32(bi->length)) <=
|
ASSERT(((unsigned long)bi + dtoh32(bi->length)) <=
|
||||||
((uintptr) list + buflen));
|
((unsigned long)list + buflen));
|
||||||
|
|
||||||
if (!(dtoh16(bi->capability) & DOT11_CAP_ESS))
|
if (!(dtoh16(bi->capability) & DOT11_CAP_ESS))
|
||||||
continue;
|
continue;
|
||||||
|
@ -976,11 +976,11 @@ wl_iw_iscan_get_aplist(struct net_device *dev,
|
||||||
bi = NULL;
|
bi = NULL;
|
||||||
for (i = 0, dwrq->length = 0;
|
for (i = 0, dwrq->length = 0;
|
||||||
i < list->count && dwrq->length < IW_MAX_AP; i++) {
|
i < list->count && dwrq->length < IW_MAX_AP; i++) {
|
||||||
bi = bi ? (wl_bss_info_t *) ((uintptr) bi +
|
bi = bi ? (wl_bss_info_t *) ((unsigned long)bi +
|
||||||
dtoh32(bi->length)) :
|
dtoh32(bi->length)) :
|
||||||
list->bss_info;
|
list->bss_info;
|
||||||
ASSERT(((uintptr) bi + dtoh32(bi->length)) <=
|
ASSERT(((unsigned long)bi + dtoh32(bi->length)) <=
|
||||||
((uintptr) list + WLC_IW_ISCAN_MAXLEN));
|
((unsigned long)list + WLC_IW_ISCAN_MAXLEN));
|
||||||
|
|
||||||
if (!(dtoh16(bi->capability) & DOT11_CAP_ESS))
|
if (!(dtoh16(bi->capability) & DOT11_CAP_ESS))
|
||||||
continue;
|
continue;
|
||||||
|
@ -1508,7 +1508,7 @@ wl_iw_get_scan_prep(wl_scan_results_t *list,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
bi = bi ? (wl_bss_info_t *) ((uintptr) bi +
|
bi = bi ? (wl_bss_info_t *)((unsigned long)bi +
|
||||||
dtoh32(bi->length)) : list->
|
dtoh32(bi->length)) : list->
|
||||||
bss_info;
|
bss_info;
|
||||||
|
|
||||||
|
@ -1568,7 +1568,7 @@ wl_iw_get_scan_prep(wl_scan_results_t *list,
|
||||||
|
|
||||||
if (bi->rateset.count) {
|
if (bi->rateset.count) {
|
||||||
if (((event - extra) +
|
if (((event - extra) +
|
||||||
IW_EV_LCP_LEN) <= (uintptr) end) {
|
IW_EV_LCP_LEN) <= (unsigned long)end) {
|
||||||
value = event + IW_EV_LCP_LEN;
|
value = event + IW_EV_LCP_LEN;
|
||||||
iwe.cmd = SIOCGIWRATE;
|
iwe.cmd = SIOCGIWRATE;
|
||||||
iwe.u.bitrate.fixed = iwe.u.bitrate.disabled =
|
iwe.u.bitrate.fixed = iwe.u.bitrate.disabled =
|
||||||
|
@ -1774,11 +1774,11 @@ wl_iw_iscan_get_scan(struct net_device *dev,
|
||||||
bi = NULL;
|
bi = NULL;
|
||||||
for (ii = 0; ii < list->count && apcnt < IW_MAX_AP;
|
for (ii = 0; ii < list->count && apcnt < IW_MAX_AP;
|
||||||
apcnt++, ii++) {
|
apcnt++, ii++) {
|
||||||
bi = bi ? (wl_bss_info_t *) ((uintptr) bi +
|
bi = bi ? (wl_bss_info_t *)((unsigned long)bi +
|
||||||
dtoh32(bi->length)) :
|
dtoh32(bi->length)) :
|
||||||
list->bss_info;
|
list->bss_info;
|
||||||
ASSERT(((uintptr) bi + dtoh32(bi->length)) <=
|
ASSERT(((unsigned long)bi + dtoh32(bi->length)) <=
|
||||||
((uintptr) list + WLC_IW_ISCAN_MAXLEN));
|
((unsigned long)list + WLC_IW_ISCAN_MAXLEN));
|
||||||
|
|
||||||
if (event + ETHER_ADDR_LEN + bi->SSID_len +
|
if (event + ETHER_ADDR_LEN + bi->SSID_len +
|
||||||
IW_EV_UINT_LEN + IW_EV_FREQ_LEN + IW_EV_QUAL_LEN >=
|
IW_EV_UINT_LEN + IW_EV_FREQ_LEN + IW_EV_QUAL_LEN >=
|
||||||
|
|
|
@ -436,7 +436,7 @@
|
||||||
#ifdef __i386__
|
#ifdef __i386__
|
||||||
1 ||
|
1 ||
|
||||||
#endif
|
#endif
|
||||||
(((uintptr) src1 | (uintptr) src2 | (uintptr) dst) &
|
(((unsigned long) src1 | (unsigned long) src2 | (unsigned long) dst) &
|
||||||
3) == 0) {
|
3) == 0) {
|
||||||
/* ARM CM3 rel time: 1229 (727 if alignment check could be omitted) */
|
/* ARM CM3 rel time: 1229 (727 if alignment check could be omitted) */
|
||||||
/* x86 supports unaligned. This version runs 6x-9x faster on x86. */
|
/* x86 supports unaligned. This version runs 6x-9x faster on x86. */
|
||||||
|
|
|
@ -54,7 +54,7 @@ typedef void *(*di_rx_t) (hnddma_t *dmah);
|
||||||
typedef bool(*di_rxfill_t) (hnddma_t *dmah);
|
typedef bool(*di_rxfill_t) (hnddma_t *dmah);
|
||||||
typedef void (*di_txreclaim_t) (hnddma_t *dmah, txd_range_t range);
|
typedef void (*di_txreclaim_t) (hnddma_t *dmah, txd_range_t range);
|
||||||
typedef void (*di_rxreclaim_t) (hnddma_t *dmah);
|
typedef void (*di_rxreclaim_t) (hnddma_t *dmah);
|
||||||
typedef uintptr(*di_getvar_t) (hnddma_t *dmah, const char *name);
|
typedef unsigned long (*di_getvar_t) (hnddma_t *dmah, const char *name);
|
||||||
typedef void *(*di_getnexttxp_t) (hnddma_t *dmah, txd_range_t range);
|
typedef void *(*di_getnexttxp_t) (hnddma_t *dmah, txd_range_t range);
|
||||||
typedef void *(*di_getnextrxp_t) (hnddma_t *dmah, bool forceall);
|
typedef void *(*di_getnextrxp_t) (hnddma_t *dmah, bool forceall);
|
||||||
typedef void *(*di_peeknexttxp_t) (hnddma_t *dmah);
|
typedef void *(*di_peeknexttxp_t) (hnddma_t *dmah);
|
||||||
|
|
|
@ -131,8 +131,8 @@ extern void osl_dma_unmap(osl_t *osh, uint pa, uint size, int direction);
|
||||||
#ifdef BRCM_FULLMAC
|
#ifdef BRCM_FULLMAC
|
||||||
#include <bcmsdh.h>
|
#include <bcmsdh.h>
|
||||||
#endif
|
#endif
|
||||||
#define OSL_WRITE_REG(osh, r, v) (bcmsdh_reg_write(NULL, (uintptr)(r), sizeof(*(r)), (v)))
|
#define OSL_WRITE_REG(osh, r, v) (bcmsdh_reg_write(NULL, (unsigned long)(r), sizeof(*(r)), (v)))
|
||||||
#define OSL_READ_REG(osh, r) (bcmsdh_reg_read(NULL, (uintptr)(r), sizeof(*(r))))
|
#define OSL_READ_REG(osh, r) (bcmsdh_reg_read(NULL, (unsigned long)(r), sizeof(*(r))))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(BCMSDIO)
|
#if defined(BCMSDIO)
|
||||||
|
|
|
@ -269,7 +269,7 @@ typedef struct si_info {
|
||||||
|
|
||||||
#define GOODCOREADDR(x, b) (((x) >= (b)) && ((x) < ((b) + SI_MAXCORES * SI_CORE_SIZE)) && \
|
#define GOODCOREADDR(x, b) (((x) >= (b)) && ((x) < ((b) + SI_MAXCORES * SI_CORE_SIZE)) && \
|
||||||
IS_ALIGNED((x), SI_CORE_SIZE))
|
IS_ALIGNED((x), SI_CORE_SIZE))
|
||||||
#define GOODREGS(regs) ((regs) != NULL && IS_ALIGNED((uintptr)(regs), SI_CORE_SIZE))
|
#define GOODREGS(regs) ((regs) != NULL && IS_ALIGNED((unsigned long)(regs), SI_CORE_SIZE))
|
||||||
#define BADCOREADDR 0
|
#define BADCOREADDR 0
|
||||||
#define GOODIDX(idx) (((uint)idx) < SI_MAXCORES)
|
#define GOODIDX(idx) (((uint)idx) < SI_MAXCORES)
|
||||||
#define NOREV -1 /* Invalid rev */
|
#define NOREV -1 /* Invalid rev */
|
||||||
|
|
|
@ -19,17 +19,6 @@
|
||||||
|
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
|
||||||
#if defined(__x86_64__)
|
|
||||||
#define TYPEDEF_UINTPTR
|
|
||||||
typedef unsigned long long int uintptr;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef TYPEDEF_UINTPTR
|
|
||||||
typedef unsigned int uintptr;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#undef TYPEDEF_UINTPTR
|
|
||||||
|
|
||||||
#ifndef OFF
|
#ifndef OFF
|
||||||
#define OFF 0
|
#define OFF 0
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -206,7 +206,7 @@ wlc_info_t *wlc_attach_malloc(osl_t *osh, uint unit, uint *err, uint devid)
|
||||||
|
|
||||||
for (i = 1; i < MAXBANDS; i++) {
|
for (i = 1; i < MAXBANDS; i++) {
|
||||||
wlc->hw->bandstate[i] = (wlc_hwband_t *)
|
wlc->hw->bandstate[i] = (wlc_hwband_t *)
|
||||||
((uintptr) wlc->hw->bandstate[0] +
|
((unsigned long)wlc->hw->bandstate[0] +
|
||||||
(sizeof(wlc_hwband_t) * i));
|
(sizeof(wlc_hwband_t) * i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -249,7 +249,7 @@ wlc_info_t *wlc_attach_malloc(osl_t *osh, uint unit, uint *err, uint devid)
|
||||||
int i;
|
int i;
|
||||||
for (i = 1; i < WLC_DEFAULT_KEYS; i++) {
|
for (i = 1; i < WLC_DEFAULT_KEYS; i++) {
|
||||||
wlc->wsec_def_keys[i] = (wsec_key_t *)
|
wlc->wsec_def_keys[i] = (wsec_key_t *)
|
||||||
((uintptr) wlc->wsec_def_keys[0] +
|
((unsigned long)wlc->wsec_def_keys[0] +
|
||||||
(sizeof(wsec_key_t) * i));
|
(sizeof(wsec_key_t) * i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -277,7 +277,7 @@ wlc_info_t *wlc_attach_malloc(osl_t *osh, uint unit, uint *err, uint devid)
|
||||||
|
|
||||||
for (i = 1; i < MAXBANDS; i++) {
|
for (i = 1; i < MAXBANDS; i++) {
|
||||||
wlc->bandstate[i] =
|
wlc->bandstate[i] =
|
||||||
(wlcband_t *) ((uintptr) wlc->bandstate[0] +
|
(wlcband_t *) ((unsigned long)wlc->bandstate[0] +
|
||||||
(sizeof(wlcband_t) * i));
|
(sizeof(wlcband_t) * i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3516,12 +3516,12 @@ _wlc_ioctl(wlc_info_t *wlc, int cmd, void *arg, int len, struct wlc_if *wlcif)
|
||||||
if (r->size == sizeof(u32))
|
if (r->size == sizeof(u32))
|
||||||
r->val =
|
r->val =
|
||||||
R_REG(osh,
|
R_REG(osh,
|
||||||
(u32 *) ((unsigned char *) (uintptr) regs +
|
(u32 *)((unsigned char *)(unsigned long)regs +
|
||||||
r->byteoff));
|
r->byteoff));
|
||||||
else if (r->size == sizeof(u16))
|
else if (r->size == sizeof(u16))
|
||||||
r->val =
|
r->val =
|
||||||
R_REG(osh,
|
R_REG(osh,
|
||||||
(u16 *) ((unsigned char *) (uintptr) regs +
|
(u16 *)((unsigned char *)(unsigned long)regs +
|
||||||
r->byteoff));
|
r->byteoff));
|
||||||
else
|
else
|
||||||
bcmerror = BCME_BADADDR;
|
bcmerror = BCME_BADADDR;
|
||||||
|
@ -3551,11 +3551,11 @@ _wlc_ioctl(wlc_info_t *wlc, int cmd, void *arg, int len, struct wlc_if *wlcif)
|
||||||
}
|
}
|
||||||
if (r->size == sizeof(u32))
|
if (r->size == sizeof(u32))
|
||||||
W_REG(osh,
|
W_REG(osh,
|
||||||
(u32 *) ((unsigned char *) (uintptr) regs +
|
(u32 *)((unsigned char *)(unsigned long) regs +
|
||||||
r->byteoff), r->val);
|
r->byteoff), r->val);
|
||||||
else if (r->size == sizeof(u16))
|
else if (r->size == sizeof(u16))
|
||||||
W_REG(osh,
|
W_REG(osh,
|
||||||
(u16 *) ((unsigned char *) (uintptr) regs +
|
(u16 *)((unsigned char *)(unsigned long) regs +
|
||||||
r->byteoff), r->val);
|
r->byteoff), r->val);
|
||||||
else
|
else
|
||||||
bcmerror = BCME_BADADDR;
|
bcmerror = BCME_BADADDR;
|
||||||
|
@ -4607,7 +4607,7 @@ wlc_iovar_op(wlc_info_t *wlc, const char *name,
|
||||||
ASSERT(!set || (!params && !p_len));
|
ASSERT(!set || (!params && !p_len));
|
||||||
|
|
||||||
if (!set && (len == sizeof(int)) &&
|
if (!set && (len == sizeof(int)) &&
|
||||||
!(IS_ALIGNED((uintptr) (arg), (uint) sizeof(int)))) {
|
!(IS_ALIGNED((unsigned long)(arg), (uint) sizeof(int)))) {
|
||||||
WL_ERROR(("wl%d: %s unaligned get ptr for %s\n",
|
WL_ERROR(("wl%d: %s unaligned get ptr for %s\n",
|
||||||
wlc->pub->unit, __func__, name));
|
wlc->pub->unit, __func__, name));
|
||||||
ASSERT(0);
|
ASSERT(0);
|
||||||
|
@ -4755,7 +4755,7 @@ wlc_doiovar(void *hdl, const bcm_iovar_t *vi, u32 actionid,
|
||||||
bcopy(params, &int_val, sizeof(int_val));
|
bcopy(params, &int_val, sizeof(int_val));
|
||||||
|
|
||||||
if (p_len >= (int)sizeof(int_val) * 2)
|
if (p_len >= (int)sizeof(int_val) * 2)
|
||||||
bcopy((void *)((uintptr) params + sizeof(int_val)), &int_val2,
|
bcopy((void *)((unsigned long)params + sizeof(int_val)), &int_val2,
|
||||||
sizeof(int_val));
|
sizeof(int_val));
|
||||||
|
|
||||||
/* convenience int ptr for 4-byte gets (requires int aligned arg) */
|
/* convenience int ptr for 4-byte gets (requires int aligned arg) */
|
||||||
|
@ -6318,7 +6318,7 @@ wlc_d11hdrs_mac80211(wlc_info_t *wlc, struct ieee80211_hw *hw,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* RTS PLCP header */
|
/* RTS PLCP header */
|
||||||
ASSERT(IS_ALIGNED((uintptr) txh->RTSPhyHeader, sizeof(u16)));
|
ASSERT(IS_ALIGNED((unsigned long)txh->RTSPhyHeader, sizeof(u16)));
|
||||||
rts_plcp = txh->RTSPhyHeader;
|
rts_plcp = txh->RTSPhyHeader;
|
||||||
if (use_cts)
|
if (use_cts)
|
||||||
rts_phylen = DOT11_CTS_LEN + DOT11_FCS_LEN;
|
rts_phylen = DOT11_CTS_LEN + DOT11_FCS_LEN;
|
||||||
|
@ -7164,7 +7164,7 @@ wlc_recvctl(wlc_info_t *wlc, osl_t *osh, d11rxhdr_t *rxh, void *p)
|
||||||
ASSERT(!PKTNEXT(p));
|
ASSERT(!PKTNEXT(p));
|
||||||
ASSERT(!PKTLINK(p));
|
ASSERT(!PKTLINK(p));
|
||||||
|
|
||||||
ASSERT(IS_ALIGNED((uintptr) skb->data, 2));
|
ASSERT(IS_ALIGNED((unsigned long)skb->data, 2));
|
||||||
|
|
||||||
memcpy(IEEE80211_SKB_RXCB(p), &rx_status, sizeof(rx_status));
|
memcpy(IEEE80211_SKB_RXCB(p), &rx_status, sizeof(rx_status));
|
||||||
ieee80211_rx_irqsafe(wlc->pub->ieee_hw, p);
|
ieee80211_rx_irqsafe(wlc->pub->ieee_hw, p);
|
||||||
|
|
|
@ -448,7 +448,7 @@ wlc_rpc_id_get(struct rpc_info *rpc, rpc_buf_t *buf)
|
||||||
bcm_xdr_buf_init(&b, bcm_rpc_buf_data(bcm_rpc_tp_get(rpc), buf),
|
bcm_xdr_buf_init(&b, bcm_rpc_buf_data(bcm_rpc_tp_get(rpc), buf),
|
||||||
sizeof(u32));
|
sizeof(u32));
|
||||||
|
|
||||||
bcm_xdr_unpack_u32(&b, (u32 *) ((uintptr) & rpc_id));
|
bcm_xdr_unpack_u32(&b, (u32 *)((unsigned long) & rpc_id));
|
||||||
return rpc_id;
|
return rpc_id;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -123,7 +123,7 @@ void ai_scan(si_t *sih, void *regs, uint devid)
|
||||||
|
|
||||||
case PCI_BUS:
|
case PCI_BUS:
|
||||||
/* Set wrappers address */
|
/* Set wrappers address */
|
||||||
sii->curwrap = (void *)((uintptr) regs + SI_CORE_SIZE);
|
sii->curwrap = (void *)((unsigned long)regs + SI_CORE_SIZE);
|
||||||
|
|
||||||
/* Now point the window at the erom */
|
/* Now point the window at the erom */
|
||||||
OSL_PCI_WRITE_CONFIG(sii->osh, PCI_BAR0_WIN, 4, erombase);
|
OSL_PCI_WRITE_CONFIG(sii->osh, PCI_BAR0_WIN, 4, erombase);
|
||||||
|
|
|
@ -432,7 +432,7 @@ uint pktsetprio(void *pkt, bool update_vtag)
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
|
|
||||||
pktdata = (u8 *) PKTDATA(pkt);
|
pktdata = (u8 *) PKTDATA(pkt);
|
||||||
ASSERT(IS_ALIGNED((uintptr) pktdata, sizeof(u16)));
|
ASSERT(IS_ALIGNED((unsigned long)pktdata, sizeof(u16)));
|
||||||
|
|
||||||
eh = (struct ether_header *)pktdata;
|
eh = (struct ether_header *)pktdata;
|
||||||
|
|
||||||
|
|
|
@ -218,7 +218,7 @@ static uint _dma_txcommitted(dma_info_t *di);
|
||||||
|
|
||||||
static void *_dma_peeknexttxp(dma_info_t *di);
|
static void *_dma_peeknexttxp(dma_info_t *di);
|
||||||
static void *_dma_peeknextrxp(dma_info_t *di);
|
static void *_dma_peeknextrxp(dma_info_t *di);
|
||||||
static uintptr _dma_getvar(dma_info_t *di, const char *name);
|
static unsigned long _dma_getvar(dma_info_t *di, const char *name);
|
||||||
static void _dma_counterreset(dma_info_t *di);
|
static void _dma_counterreset(dma_info_t *di);
|
||||||
static void _dma_fifoloopbackenable(dma_info_t *di);
|
static void _dma_fifoloopbackenable(dma_info_t *di);
|
||||||
static uint _dma_ctrlflags(dma_info_t *di, uint mask, uint flags);
|
static uint _dma_ctrlflags(dma_info_t *di, uint mask, uint flags);
|
||||||
|
@ -1363,10 +1363,10 @@ static uint _dma_ctrlflags(dma_info_t *di, uint mask, uint flags)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* get the address of the var in order to change later */
|
/* get the address of the var in order to change later */
|
||||||
static uintptr _dma_getvar(dma_info_t *di, const char *name)
|
static unsigned long _dma_getvar(dma_info_t *di, const char *name)
|
||||||
{
|
{
|
||||||
if (!strcmp(name, "&txavail"))
|
if (!strcmp(name, "&txavail"))
|
||||||
return (uintptr) &(di->hnddma.txavail);
|
return (unsigned long)&(di->hnddma.txavail);
|
||||||
else {
|
else {
|
||||||
ASSERT(0);
|
ASSERT(0);
|
||||||
}
|
}
|
||||||
|
@ -1409,7 +1409,7 @@ static void *dma_ringalloc(osl_t *osh, u32 boundary, uint size,
|
||||||
if (NULL == va)
|
if (NULL == va)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
desc_strtaddr = (u32) roundup((uintptr) va, alignbytes);
|
desc_strtaddr = (u32) roundup((unsigned long)va, alignbytes);
|
||||||
if (((desc_strtaddr + size - 1) & boundary) != (desc_strtaddr
|
if (((desc_strtaddr + size - 1) & boundary) != (desc_strtaddr
|
||||||
& boundary)) {
|
& boundary)) {
|
||||||
*alignbits = dma_align_sizetobits(size);
|
*alignbits = dma_align_sizetobits(size);
|
||||||
|
@ -1534,7 +1534,7 @@ static bool dma32_alloc(dma_info_t *di, uint direction)
|
||||||
|
|
||||||
PHYSADDRHISET(di->txdpa, 0);
|
PHYSADDRHISET(di->txdpa, 0);
|
||||||
ASSERT(PHYSADDRHI(di->txdpaorig) == 0);
|
ASSERT(PHYSADDRHI(di->txdpaorig) == 0);
|
||||||
di->txd32 = (dma32dd_t *) roundup((uintptr) va, align);
|
di->txd32 = (dma32dd_t *) roundup((unsigned long)va, align);
|
||||||
di->txdalign =
|
di->txdalign =
|
||||||
(uint) ((s8 *)di->txd32 - (s8 *) va);
|
(uint) ((s8 *)di->txd32 - (s8 *) va);
|
||||||
|
|
||||||
|
@ -1544,7 +1544,7 @@ static bool dma32_alloc(dma_info_t *di, uint direction)
|
||||||
ASSERT(PHYSADDRLO(di->txdpa) >= PHYSADDRLO(di->txdpaorig));
|
ASSERT(PHYSADDRLO(di->txdpa) >= PHYSADDRLO(di->txdpaorig));
|
||||||
|
|
||||||
di->txdalloc = alloced;
|
di->txdalloc = alloced;
|
||||||
ASSERT(IS_ALIGNED((uintptr) di->txd32, align));
|
ASSERT(IS_ALIGNED((unsigned long)di->txd32, align));
|
||||||
} else {
|
} else {
|
||||||
va = dma_ringalloc(di->osh, D32RINGALIGN, size, &align_bits,
|
va = dma_ringalloc(di->osh, D32RINGALIGN, size, &align_bits,
|
||||||
&alloced, &di->rxdpaorig, &di->rx_dmah);
|
&alloced, &di->rxdpaorig, &di->rx_dmah);
|
||||||
|
@ -1555,7 +1555,7 @@ static bool dma32_alloc(dma_info_t *di, uint direction)
|
||||||
|
|
||||||
PHYSADDRHISET(di->rxdpa, 0);
|
PHYSADDRHISET(di->rxdpa, 0);
|
||||||
ASSERT(PHYSADDRHI(di->rxdpaorig) == 0);
|
ASSERT(PHYSADDRHI(di->rxdpaorig) == 0);
|
||||||
di->rxd32 = (dma32dd_t *) roundup((uintptr) va, align);
|
di->rxd32 = (dma32dd_t *) roundup((unsigned long)va, align);
|
||||||
di->rxdalign =
|
di->rxdalign =
|
||||||
(uint) ((s8 *)di->rxd32 - (s8 *) va);
|
(uint) ((s8 *)di->rxd32 - (s8 *) va);
|
||||||
|
|
||||||
|
@ -1564,7 +1564,7 @@ static bool dma32_alloc(dma_info_t *di, uint direction)
|
||||||
/* Make sure that alignment didn't overflow */
|
/* Make sure that alignment didn't overflow */
|
||||||
ASSERT(PHYSADDRLO(di->rxdpa) >= PHYSADDRLO(di->rxdpaorig));
|
ASSERT(PHYSADDRLO(di->rxdpa) >= PHYSADDRLO(di->rxdpaorig));
|
||||||
di->rxdalloc = alloced;
|
di->rxdalloc = alloced;
|
||||||
ASSERT(IS_ALIGNED((uintptr) di->rxd32, align));
|
ASSERT(IS_ALIGNED((unsigned long)di->rxd32, align));
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -2100,7 +2100,7 @@ static bool dma64_alloc(dma_info_t *di, uint direction)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
align = (1 << align_bits);
|
align = (1 << align_bits);
|
||||||
di->txd64 = (dma64dd_t *) roundup((uintptr) va, align);
|
di->txd64 = (dma64dd_t *) roundup((unsigned long)va, align);
|
||||||
di->txdalign = (uint) ((s8 *)di->txd64 - (s8 *) va);
|
di->txdalign = (uint) ((s8 *)di->txd64 - (s8 *) va);
|
||||||
PHYSADDRLOSET(di->txdpa,
|
PHYSADDRLOSET(di->txdpa,
|
||||||
PHYSADDRLO(di->txdpaorig) + di->txdalign);
|
PHYSADDRLO(di->txdpaorig) + di->txdalign);
|
||||||
|
@ -2109,7 +2109,7 @@ static bool dma64_alloc(dma_info_t *di, uint direction)
|
||||||
|
|
||||||
PHYSADDRHISET(di->txdpa, PHYSADDRHI(di->txdpaorig));
|
PHYSADDRHISET(di->txdpa, PHYSADDRHI(di->txdpaorig));
|
||||||
di->txdalloc = alloced;
|
di->txdalloc = alloced;
|
||||||
ASSERT(IS_ALIGNED((uintptr) di->txd64, align));
|
ASSERT(IS_ALIGNED((unsigned long)di->txd64, align));
|
||||||
} else {
|
} else {
|
||||||
va = dma_ringalloc(di->osh, D64RINGALIGN, size, &align_bits,
|
va = dma_ringalloc(di->osh, D64RINGALIGN, size, &align_bits,
|
||||||
&alloced, &di->rxdpaorig, &di->rx_dmah);
|
&alloced, &di->rxdpaorig, &di->rx_dmah);
|
||||||
|
@ -2118,7 +2118,7 @@ static bool dma64_alloc(dma_info_t *di, uint direction)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
align = (1 << align_bits);
|
align = (1 << align_bits);
|
||||||
di->rxd64 = (dma64dd_t *) roundup((uintptr) va, align);
|
di->rxd64 = (dma64dd_t *) roundup((unsigned long)va, align);
|
||||||
di->rxdalign = (uint) ((s8 *)di->rxd64 - (s8 *) va);
|
di->rxdalign = (uint) ((s8 *)di->rxd64 - (s8 *) va);
|
||||||
PHYSADDRLOSET(di->rxdpa,
|
PHYSADDRLOSET(di->rxdpa,
|
||||||
PHYSADDRLO(di->rxdpaorig) + di->rxdalign);
|
PHYSADDRLO(di->rxdpaorig) + di->rxdalign);
|
||||||
|
@ -2127,7 +2127,7 @@ static bool dma64_alloc(dma_info_t *di, uint direction)
|
||||||
|
|
||||||
PHYSADDRHISET(di->rxdpa, PHYSADDRHI(di->rxdpaorig));
|
PHYSADDRHISET(di->rxdpa, PHYSADDRHI(di->rxdpaorig));
|
||||||
di->rxdalloc = alloced;
|
di->rxdalloc = alloced;
|
||||||
ASSERT(IS_ALIGNED((uintptr) di->rxd64, align));
|
ASSERT(IS_ALIGNED((unsigned long)di->rxd64, align));
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -90,7 +90,7 @@ static u32 _sb_coresba(si_info_t *sii)
|
||||||
switch (BUSTYPE(sii->pub.bustype)) {
|
switch (BUSTYPE(sii->pub.bustype)) {
|
||||||
case SPI_BUS:
|
case SPI_BUS:
|
||||||
case SDIO_BUS:
|
case SDIO_BUS:
|
||||||
sbaddr = (u32) (uintptr) sii->curmap;
|
sbaddr = (u32)(unsigned long)sii->curmap;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ASSERT(0);
|
ASSERT(0);
|
||||||
|
|
Loading…
Reference in New Issue