return 0;
mmr_off = addr - cec->base;
- valuep = (void *)((unsigned long)cec + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)cec + mmr_base() + mmr_off);
HW_TRACE_READ ();
value = dv_load_4 (source);
mmr_off = addr - ctimer->base;
- valuep = (void *)((unsigned long)ctimer + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)ctimer + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
return 0;
mmr_off = addr - ctimer->base;
- valuep = (void *)((unsigned long)ctimer + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)ctimer + mmr_base() + mmr_off);
HW_TRACE_READ ();
value = dv_load_2 (source);
mmr_off = addr % dma->base;
- valuep = (void *)((unsigned long)dma + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)dma + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
return 0;
mmr_off = addr % dma->base;
- valuep = (void *)((unsigned long)dma + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)dma + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
return 0;
mmr_off = addr - amc->base;
- valuep = (void *)((unsigned long)amc + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)amc + mmr_base() + mmr_off);
HW_TRACE_READ ();
value = dv_load_2 (source);
mmr_off = addr - ddrc->base;
- valuep = (void *)((unsigned long)ddrc + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)ddrc + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
return 0;
mmr_off = addr - ddrc->base;
- valuep = (void *)((unsigned long)ddrc + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)ddrc + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
value = dv_load_2 (source);
mmr_off = addr - sdc->base;
- valuep = (void *)((unsigned long)sdc + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)sdc + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
return 0;
mmr_off = addr - sdc->base;
- valuep = (void *)((unsigned long)sdc + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)sdc + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
value = dv_load_4 (source);
mmr_off = addr - emac->base;
- valuep = (void *)((unsigned long)emac + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)emac + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
return 0;
mmr_off = addr - emac->base;
- valuep = (void *)((unsigned long)emac + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)emac + mmr_base() + mmr_off);
HW_TRACE_READ ();
value = dv_load_2 (source);
mmr_off = addr - eppi->base;
- valuep = (void *)((unsigned long)eppi + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)eppi + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
return 0;
mmr_off = addr - eppi->base;
- valuep = (void *)((unsigned long)eppi + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)eppi + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
value = dv_load_2 (source);
mmr_off = addr - port->base;
- valuep = (void *)((unsigned long)port + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)port + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
return 0;
mmr_off = addr - port->base;
- valuep = (void *)((unsigned long)port + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)port + mmr_base() + mmr_off);
HW_TRACE_READ ();
value = dv_load_4 (source);
else
value = dv_load_2 (source);
- valuep = (void *)((unsigned long)port + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)port + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
if (!dv_bfin_mmr_require_16 (me, addr, nr_bytes, false))
return 0;
- valuep = (void *)((unsigned long)port + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)port + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
value = dv_load_2 (source);
mmr_off = addr - gptimer->base;
- valuep = (void *)((unsigned long)gptimer + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)gptimer + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
return 0;
mmr_off = addr - gptimer->base;
- valuep = (void *)((unsigned long)gptimer + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)gptimer + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
value = dv_load_4 (source);
mmr_off = addr - jtag->base;
- valuep = (void *)((unsigned long)jtag + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)jtag + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
return 0;
mmr_off = addr - jtag->base;
- valuep = (void *)((unsigned long)jtag + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)jtag + mmr_base() + mmr_off);
HW_TRACE_READ ();
value = dv_load_4 (source);
mmr_off = addr - mmu->base;
- valuep = (void *)((unsigned long)mmu + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)mmu + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
return 0;
mmr_off = addr - mmu->base;
- valuep = (void *)((unsigned long)mmu + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)mmu + mmr_base() + mmr_off);
HW_TRACE_READ ();
value = dv_load_2 (source);
mmr_off = addr - nfc->base;
- valuep = (void *)((unsigned long)nfc + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)nfc + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
return 0;
mmr_off = addr - nfc->base;
- valuep = (void *)((unsigned long)nfc + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)nfc + mmr_base() + mmr_off);
HW_TRACE_READ ();
value = dv_load_2 (source);
mmr_off = addr - otp->base;
- valuep = (void *)((unsigned long)otp + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)otp + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
return 0;
mmr_off = addr - otp->base;
- valuep = (void *)((unsigned long)otp + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)otp + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
otp->timing = 0x00001485;
/* Semi-random value for unique chip id. */
- bfin_otp_write_page_val2 (otp, FPS00, (unsigned long)otp, ~(unsigned long)otp);
+ bfin_otp_write_page_val2 (otp, FPS00, (uintptr_t)otp, ~(uintptr_t)otp);
memset (part_str, 0, sizeof (part_str));
sprintf (part_str, "ADSP-BF%iX", type);
value = dv_load_4 (source);
mmr_off = addr - pfmon->base;
- valuep = (void *)((unsigned long)pfmon + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)pfmon + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
return 0;
mmr_off = addr - pfmon->base;
- valuep = (void *)((unsigned long)pfmon + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)pfmon + mmr_base() + mmr_off);
HW_TRACE_READ ();
else
value = dv_load_2 (source);
mmr_off = addr - pint->base;
- valuep = (void *)((unsigned long)pint + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)pint + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
return 0;
mmr_off = addr - pint->base;
- valuep = (void *)((unsigned long)pint + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)pint + mmr_base() + mmr_off);
HW_TRACE_READ ();
value = dv_load_2 (source);
mmr_off = addr - pll->base;
- valuep = (void *)((unsigned long)pll + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)pll + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
return 0;
mmr_off = addr - pll->base;
- valuep = (void *)((unsigned long)pll + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)pll + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
value = dv_load_2 (source);
mmr_off = addr - ppi->base;
- valuep = (void *)((unsigned long)ppi + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)ppi + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
return 0;
mmr_off = addr - ppi->base;
- valuep = (void *)((unsigned long)ppi + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)ppi + mmr_base() + mmr_off);
HW_TRACE_READ ();
value = dv_load_2 (source);
mmr_off = addr - rtc->base;
- valuep = (void *)((unsigned long)rtc + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)rtc + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
return 0;
mmr_off = addr - rtc->base;
- valuep = (void *)((unsigned long)rtc + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)rtc + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
value = dv_load_2 (source);
mmr_off = addr - sic->base;
- valuep = (void *)((unsigned long)sic + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)sic + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
return 0;
mmr_off = addr - sic->base;
- valuep = (void *)((unsigned long)sic + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)sic + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
value = dv_load_2 (source);
mmr_off = addr - sic->base;
- valuep = (void *)((unsigned long)sic + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)sic + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
return 0;
mmr_off = addr - sic->base;
- valuep = (void *)((unsigned long)sic + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)sic + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
value = dv_load_2 (source);
mmr_off = addr - sic->base;
- valuep = (void *)((unsigned long)sic + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)sic + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
return 0;
mmr_off = addr - sic->base;
- valuep = (void *)((unsigned long)sic + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)sic + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
value = dv_load_2 (source);
mmr_off = addr - sic->base;
- valuep = (void *)((unsigned long)sic + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)sic + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
return 0;
mmr_off = addr - sic->base;
- valuep = (void *)((unsigned long)sic + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)sic + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
value = dv_load_2 (source);
mmr_off = addr - spi->base;
- valuep = (void *)((unsigned long)spi + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)spi + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
return 0;
mmr_off = addr - spi->base;
- valuep = (void *)((unsigned long)spi + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)spi + mmr_base() + mmr_off);
HW_TRACE_READ ();
value = dv_load_2 (source);
mmr_off = addr - twi->base;
- valuep = (void *)((unsigned long)twi + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)twi + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
return 0;
mmr_off = addr - twi->base;
- valuep = (void *)((unsigned long)twi + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)twi + mmr_base() + mmr_off);
HW_TRACE_READ ();
value = dv_load_2 (source);
mmr_off = addr - uart->base;
- valuep = (void *)((unsigned long)uart + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)uart + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
return 0;
mmr_off = addr - uart->base;
- valuep = (void *)((unsigned long)uart + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)uart + mmr_base() + mmr_off);
HW_TRACE_READ ();
value = dv_load_2 (source);
mmr_off = addr - uart->base;
- valuep = (void *)((unsigned long)uart + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)uart + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
return 0;
mmr_off = addr - uart->base;
- valuep = (void *)((unsigned long)uart + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)uart + mmr_base() + mmr_off);
HW_TRACE_READ ();
value = dv_load_2 (source);
mmr_off = addr - wdog->base;
- valuep = (void *)((unsigned long)wdog + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)wdog + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
return 0;
mmr_off = addr - wdog->base;
- valuep = (void *)((unsigned long)wdog + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)wdog + mmr_base() + mmr_off);
value16p = valuep;
value32p = valuep;
value = dv_load_4 (source);
mmr_off = addr - wp->base;
- valuep = (void *)((unsigned long)wp + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)wp + mmr_base() + mmr_off);
HW_TRACE_WRITE ();
return 0;
mmr_off = addr - wp->base;
- valuep = (void *)((unsigned long)wp + mmr_base() + mmr_off);
+ valuep = (void *)((uintptr_t)wp + mmr_base() + mmr_off);
HW_TRACE_READ ();
value = dv_load_2 (source);
reg_off = addr - phy->base;
- valuep = (void *)((unsigned long)phy + reg_base() + reg_off);
+ valuep = (void *)((uintptr_t)phy + reg_base() + reg_off);
HW_TRACE_WRITE ();
bu16 *valuep;
reg_off = addr - phy->base;
- valuep = (void *)((unsigned long)phy + reg_base() + reg_off);
+ valuep = (void *)((uintptr_t)phy + reg_base() + reg_off);
HW_TRACE_READ ();