Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 700120
Collapse All | Expand All

(-)a/hw/xfree86/common/compiler.h (-30 lines)
Lines 758-793 Link Here
758
    return xf86ReadMmio32Le((void *) ioBase, port);
758
    return xf86ReadMmio32Le((void *) ioBase, port);
759
}
759
}
760
760
761
#elif defined(__arm__) && defined(__linux__)
762
763
/* for Linux on ARM, we use the LIBC inx/outx routines */
764
/* note that the appropriate setup via "ioperm" needs to be done */
765
/*  *before* any inx/outx is done. */
766
767
#include <sys/io.h>
768
769
static __inline__ void
770
xf_outb(unsigned short port, unsigned char val)
771
{
772
    outb(val, port);
773
}
774
775
static __inline__ void
776
xf_outw(unsigned short port, unsigned short val)
777
{
778
    outw(val, port);
779
}
780
781
static __inline__ void
782
xf_outl(unsigned short port, unsigned int val)
783
{
784
    outl(val, port);
785
}
786
787
#define outb xf_outb
788
#define outw xf_outw
789
#define outl xf_outl
790
791
#elif defined(__nds32__)
761
#elif defined(__nds32__)
792
762
793
/*
763
/*

Return to bug 700120