Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1679010
| From | Andy Shevchenko <andriy.shevchenko@linux.intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 2/5] x86/io: Include asm-generic/io.h to architectural code |
| Date | 2017-06-30 19:20 +0200 |
| Message-ID | <tY7Ki-8gS-9@gated-at.bofh.it> (permalink) |
| References | <tY7AC-8dL-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
asm-generic/io.h defines few helpers which would be useful in the drivers, such as writesb() and readsb(). Include it to the asm/io.h in architectural folder. Acked-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> --- arch/x86/include/asm/io.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h index c1c0880768f7..0558d81c177e 100644 --- a/arch/x86/include/asm/io.h +++ b/arch/x86/include/asm/io.h @@ -406,6 +406,9 @@ extern bool xen_biovec_phys_mergeable(const struct bio_vec *vec1, #define IO_SPACE_LIMIT 0xffff +#include <asm-generic/io.h> +#undef PCI_IOBASE + #ifdef CONFIG_MTRR extern int __must_check arch_phys_wc_index(int handle); #define arch_phys_wc_index arch_phys_wc_index -- 2.11.0
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 0/5] x86/io: Rely on asm-generic/io.h Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-06-30 19:10 +0200 [PATCH v2 3/5] x86/io: Remove mem*io() duplications Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-06-30 19:10 +0200 [PATCH v2 5/5] x86/io: Make readq() / writeq() API consistent Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-06-30 19:10 +0200 [PATCH v2 1/5] x86/io: Define IO accessors by preprocessor Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-06-30 19:20 +0200 [PATCH v2 2/5] x86/io: Include asm-generic/io.h to architectural code Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-06-30 19:20 +0200 [PATCH v2 4/5] x86/io: Remove xlate_dev_kmem_ptr() duplication Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-06-30 19:20 +0200
csiph-web