lkml.org 
[lkml]   [2005]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 2 of 2] tpm: updates for new hardware
Date
On Friday 11 November 2005 1:06 pm, Kylene Jo Hall wrote:
> +#ifdef CONFIG_PPC64
> +#define atmel_getb(chip, offset) readb(chip->vendor->iobase + offset);
> +#define atmel_putb(val, chip, offset) writeb(val, chip->vendor->iobase + offset)
> ...
> +#else
> +#define atmel_getb(chip, offset) inb(chip->vendor->base + offset)
> +#define atmel_putb(val, chip, offset) outb(val, chip->vendor->base + offset)

Why don't you use ioread8() instead of defining atmel_getb()?

You'd still need something PPC64-specific to initialize the iomem cookie,
but the accessors would go away.

Unfortunately, ioread8() and associated interfaces aren't mentioned
under Documentation/, but there are some hints in lib/iomap.c.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-11-15 01:13    [W:0.104 / U:0.848 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site