1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-30 06:51:28 +02:00
Files
u-boot-megous/arch/x86/include/asm
Simon Glass 005174d661 x86: Allow I/O functions to use pointers
It is common with memory-mapped I/O to use the address of a structure member
to access memory, as in:

   struct some_regs {
      u32 ctrl;
      u32 data;
   }

   struct some_regs *regs = (struct some_regs *)BASE_ADDRESS;

   writel(1, &reg->ctrl);
   writel(2, &reg->data);

This does not currently work with inl(), outl(), etc. Add a cast to permit
this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
2016-03-17 10:27:25 +08:00
..
2016-02-05 12:47:21 +08:00
2016-02-05 12:47:21 +08:00
2016-02-05 12:47:21 +08:00
2015-11-05 10:52:01 -05:00
2016-03-17 10:27:23 +08:00
2016-03-17 10:27:25 +08:00
2016-03-17 10:27:23 +08:00
2015-08-05 08:42:40 -06:00
2016-03-17 10:27:23 +08:00
2015-10-21 07:46:26 -06:00
2016-03-17 10:27:22 +08:00
2015-08-05 08:44:07 -06:00