From 1f5e4543ddc2130f2a85ecbbf2c4aa6249010060 Mon Sep 17 00:00:00 2001 From: hailfinger Date: Tue, 16 Mar 2010 23:59:19 +0000 Subject: Add MS-DOS crosscompilation support to flashrom. Tested, works fine. Part 1: Code changes. Signed-off-by: Rudolf Marek Acked-by: Carl-Daniel Hailfinger git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@944 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- hwaccess.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'hwaccess.h') diff --git a/hwaccess.h b/hwaccess.h index 06817ab..7a76925 100644 --- a/hwaccess.h +++ b/hwaccess.h @@ -68,12 +68,30 @@ #define INW inw #define INL inl #else + +#ifdef __DJGPP__ + +#include + + #define OUTB(x,y) outportb(y, x) + #define OUTW(x,y) outportw(y, x) + #define OUTL(x,y) outportl(y, x) + + #define INB inportb + #define INW inportw + #define INL inportl + +#else + #define OUTB outb #define OUTW outw #define OUTL outl #define INB inb #define INW inw #define INL inl + +#endif + #endif #endif -- cgit v1.2.1