9
0
Fork 0

x86: Define byteorder

This is required to avoid warnings like this:

In file included from <some file>:
include/io.h:7:5: warning: "__BYTE_ORDER" is not defined
include/io.h:7:21: warning: "__BIG_ENDIAN" is not defined

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Juergen Beisert 2011-09-30 15:51:42 +02:00 committed by Sascha Hauer
parent d68f29f08f
commit c7efd11b38
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@
#ifndef __ASM_X86_IO_H
#define __ASM_X86_IO_H
#include <asm/byteorder.h>
static inline void outb(unsigned char value, int port)
{
asm volatile("outb %b0, %w1" : : "a"(value), "Nd"(port));