flashrom: Darwin / Mac OS X
Through DirectIO from coresystems GmbH we now support Darwin/Mac OS X. DirectIO is available at http://www.coresystems.de/en/directio Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3905 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Peter Stuge
parent
d48091a35c
commit
713ee92c96
@ -30,6 +30,10 @@
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#if (defined(__MACH__) && defined(__APPLE__))
|
||||
#define __DARWIN__
|
||||
#endif
|
||||
|
||||
#if defined(__FreeBSD__)
|
||||
#include <machine/cpufunc.h>
|
||||
#define off64_t off_t
|
||||
@ -41,6 +45,11 @@
|
||||
#define INW(x) __extension__ ({ u_int tmp = (x); inw(tmp); })
|
||||
#define INL(x) __extension__ ({ u_int tmp = (x); inl(tmp); })
|
||||
#else
|
||||
#if defined(__DARWIN__)
|
||||
#include <DirectIO/darwinio.h>
|
||||
#define off64_t off_t
|
||||
#define lseek64 lseek
|
||||
#endif
|
||||
#define OUTB outb
|
||||
#define OUTW outw
|
||||
#define OUTL outl
|
||||
|
Reference in New Issue
Block a user