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
2011-04-13 19:43:28 +10:00
2016-03-17 10:27:22 +08:00
2014-11-25 06:34:00 -07:00
2015-04-29 21:02:33 -06:00
2015-11-05 10:52:01 -05:00
2014-10-28 20:43:58 -06:00
2011-04-13 19:43:28 +10:00
2011-04-13 19:43:28 +10:00
2013-07-24 09:44:38 -04:00
2015-03-28 09:03:08 -04:00
2013-07-24 09:44:38 -04:00
2016-03-17 10:27:22 +08:00
2016-03-17 10:27:24 +08:00
2015-07-14 18:03:15 -06: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
2011-04-13 19:43:28 +10: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
2015-07-14 18:03:17 -06:00
2011-04-13 19:43:28 +10:00
2016-01-24 12:07:18 +08:00
2013-07-24 09:44:38 -04:00
2015-07-14 18:03:17 -06:00
2014-12-15 07:22:53 -07: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-14 18:03:16 -06: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-04-30 16:13:46 -06: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
2014-12-13 22:32:05 -07:00
2011-04-13 19:43:28 +10:00
2016-03-17 10:27:23 +08:00
2011-04-13 19:43:28 +10:00
2016-03-17 10:27:24 +08:00
2015-07-28 10:36:21 -06:00
2015-08-05 08:42:40 -06:00
2016-03-17 10:27:24 +08:00
2013-07-24 09:44:38 -04:00
2015-04-29 21:02:33 -06:00
2016-03-17 10:27:23 +08:00
2015-10-21 07:46:26 -06:00
2014-11-25 06:34:02 -07:00
2012-01-02 03:58:46 +11:00
2016-03-17 10:27:22 +08:00
2015-04-30 16:13:50 -06:00
2015-08-05 08:44:07 -06:00
2016-01-28 13:53:30 +08:00
2013-07-24 09:44:38 -04:00
2011-04-13 19:43:28 +10:00
2015-10-21 07:46:25 -06:00