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, ®->ctrl);
writel(2, ®->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-03-17 10:27:21 +08:00
2016-03-17 10:27:24 +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
2016-01-13 12:20:14 +08:00
2016-03-17 10:27:22 +08:00
2015-11-05 10:52:01 -05:00
2016-03-17 10:27:22 +08:00
2016-03-17 10:27:24 +08:00
2016-03-17 10:27:24 +08:00
2015-10-21 07:46:25 -06:00
2015-08-05 08:44:05 -06:00
2016-01-28 13:53:30 +08:00
2015-12-01 06:26:35 -07:00
2016-03-17 10:27:23 +08:00
2015-11-13 06:46:17 -08:00
2015-11-13 06:46:17 -08:00
2015-08-26 07:54:12 -07:00
2015-08-26 07:54:07 -07:00
2016-03-17 10:27:24 +08:00
2015-11-13 06:46:16 -08:00
2016-03-17 10:27:25 +08:00
2016-01-24 12:07:18 +08:00
2016-03-17 10:27:24 +08:00
2016-03-17 10:27:24 +08:00
2016-03-17 10:27:24 +08:00
2015-07-28 10:36:24 -06:00
2015-10-21 07:46:27 -06:00
2016-03-17 10:27:23 +08:00
2015-07-28 10:36:22 -06:00
2016-02-05 12:47:24 +08:00
2016-02-05 12:47:22 +08:00
2016-03-17 10:27:23 +08:00
2016-03-17 10:27:24 +08:00
2015-08-05 08:42:40 -06:00
2016-03-17 10:27:24 +08: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
2016-01-28 13:53:30 +08:00
2015-10-21 07:46:25 -06:00