Add ARM64 support

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 533b9587fd)
pull/9/head
Slávek Banko 10 years ago
parent 7155a4608d
commit 51dafb2149

@ -38,7 +38,7 @@
#endif /* LOCKING */ #endif /* LOCKING */
#ifdef __linux__ #ifdef __linux__
#if defined(arm) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__) #if defined(arm) || defined(__aarch64__) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__)
#include <fcntl.h> #include <fcntl.h>
#else #else
#include <sys/io.h> #include <sys/io.h>
@ -75,7 +75,7 @@ port_t::port_t(int iport) {
#endif /* LOCKING */ #endif /* LOCKING */
#ifdef LINUX #ifdef LINUX
#if defined(arm) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__) #if defined(arm) || defined(__aarch64__) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__)
if ((devport = open("/dev/port", O_RDWR)) < 0) { if ((devport = open("/dev/port", O_RDWR)) < 0) {
perror("open /dev/port"); perror("open /dev/port");
return; return;
@ -119,7 +119,7 @@ port_t::~port_t(void) {
unlock(port); unlock(port);
#endif /* LOCKING */ #endif /* LOCKING */
#ifdef LINUX #ifdef LINUX
#if defined(arm) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__) #if defined(arm) || defined(__aarch64__) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__)
if (devport >= 0) if (devport >= 0)
close(devport); close(devport);
#else #else

@ -35,7 +35,7 @@
#include <unistd.h> #include <unistd.h>
#ifdef __linux__ #ifdef __linux__
#if !defined(arm) && !defined(__hppa__) && !defined(__sparc__) && !defined(__ppc__) && !defined(__powerpc__) && !defined(__s390__) && !defined(__s390x__) && !defined(__mips__) && !defined(__mc68000__) #if !defined(arm) && !defined(__aarch64__) && !defined(__hppa__) && !defined(__sparc__) && !defined(__ppc__) && !defined(__powerpc__) && !defined(__s390__) && !defined(__s390x__) && !defined(__mips__) && !defined(__mc68000__)
#include <sys/io.h> #include <sys/io.h>
#endif /* !arm */ #endif /* !arm */
#elif defined(TQNX) #elif defined(TQNX)
@ -55,7 +55,7 @@
#error Please define a platform in the Makefile #error Please define a platform in the Makefile
#endif #endif
#if defined(arm) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__) #if defined(arm) || defined(__aarch64__) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__)
static char ports_temp; static char ports_temp;
#ifdef inb #ifdef inb
@ -114,7 +114,7 @@ private:
#ifdef FREEBSD #ifdef FREEBSD
FILE *devio; FILE *devio;
#endif #endif
#if defined(__linux__) && (defined(arm) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__)) #if defined(__linux__) && (defined(arm) || defined(__aarch64__) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__s390x__) || defined(__mips__) || defined(__mc68000__))
int devport; int devport;
#endif #endif
}; };

Loading…
Cancel
Save