mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
Use uintptr_t for chipaddr instead of unsigned long
Corresponding to flashrom svn r1698. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
@ -428,26 +428,26 @@ void dummy_unmap(void *virt_addr, size_t len)
|
||||
static void dummy_chip_writeb(const struct flashctx *flash, uint8_t val,
|
||||
chipaddr addr)
|
||||
{
|
||||
msg_pspew("%s: addr=0x%lx, val=0x%02x\n", __func__, addr, val);
|
||||
msg_pspew("%s: addr=0x%" PRIxPTR ", val=0x%02x\n", __func__, addr, val);
|
||||
}
|
||||
|
||||
static void dummy_chip_writew(const struct flashctx *flash, uint16_t val,
|
||||
chipaddr addr)
|
||||
{
|
||||
msg_pspew("%s: addr=0x%lx, val=0x%04x\n", __func__, addr, val);
|
||||
msg_pspew("%s: addr=0x%" PRIxPTR ", val=0x%04x\n", __func__, addr, val);
|
||||
}
|
||||
|
||||
static void dummy_chip_writel(const struct flashctx *flash, uint32_t val,
|
||||
chipaddr addr)
|
||||
{
|
||||
msg_pspew("%s: addr=0x%lx, val=0x%08x\n", __func__, addr, val);
|
||||
msg_pspew("%s: addr=0x%" PRIxPTR ", val=0x%08x\n", __func__, addr, val);
|
||||
}
|
||||
|
||||
static void dummy_chip_writen(const struct flashctx *flash, uint8_t *buf,
|
||||
chipaddr addr, size_t len)
|
||||
{
|
||||
size_t i;
|
||||
msg_pspew("%s: addr=0x%lx, len=0x%08lx, writing data (hex):",
|
||||
msg_pspew("%s: addr=0x%" PRIxPTR ", len=0x%08lx, writing data (hex):",
|
||||
__func__, addr, (unsigned long)len);
|
||||
for (i = 0; i < len; i++) {
|
||||
if ((i % 16) == 0)
|
||||
@ -459,28 +459,28 @@ static void dummy_chip_writen(const struct flashctx *flash, uint8_t *buf,
|
||||
static uint8_t dummy_chip_readb(const struct flashctx *flash,
|
||||
const chipaddr addr)
|
||||
{
|
||||
msg_pspew("%s: addr=0x%lx, returning 0xff\n", __func__, addr);
|
||||
msg_pspew("%s: addr=0x%" PRIxPTR ", returning 0xff\n", __func__, addr);
|
||||
return 0xff;
|
||||
}
|
||||
|
||||
static uint16_t dummy_chip_readw(const struct flashctx *flash,
|
||||
const chipaddr addr)
|
||||
{
|
||||
msg_pspew("%s: addr=0x%lx, returning 0xffff\n", __func__, addr);
|
||||
msg_pspew("%s: addr=0x%" PRIxPTR ", returning 0xffff\n", __func__, addr);
|
||||
return 0xffff;
|
||||
}
|
||||
|
||||
static uint32_t dummy_chip_readl(const struct flashctx *flash,
|
||||
const chipaddr addr)
|
||||
{
|
||||
msg_pspew("%s: addr=0x%lx, returning 0xffffffff\n", __func__, addr);
|
||||
msg_pspew("%s: addr=0x%" PRIxPTR ", returning 0xffffffff\n", __func__, addr);
|
||||
return 0xffffffff;
|
||||
}
|
||||
|
||||
static void dummy_chip_readn(const struct flashctx *flash, uint8_t *buf,
|
||||
const chipaddr addr, size_t len)
|
||||
{
|
||||
msg_pspew("%s: addr=0x%lx, len=0x%lx, returning array of 0xff\n",
|
||||
msg_pspew("%s: addr=0x%" PRIxPTR ", len=0x%lx, returning array of 0xff\n",
|
||||
__func__, addr, (unsigned long)len);
|
||||
memset(buf, 0xff, len);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user