x86: Add macros to clear and set I/O bits
authorSimon Glass <sjg@chromium.org>
Sat, 12 Mar 2016 05:07:06 +0000 (22:07 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 17 Mar 2016 02:27:25 +0000 (10:27 +0800)
commit30928c1151225f4f318521bb3e04fa8431f7a938
tree14b1e96fbd144bbedb5f52e46719c79d2481c53a
parentb70e742d16d7c95d607fa5caf8b6471c259016a4
x86: Add macros to clear and set I/O bits

The clrsetbits_...() macros are useful for working with memory mapped I/O.
But they do not work with I/O space, as used on x86 machines.

Add some macros to provide similar features for I/O.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/include/asm/io.h