Mercurial > mplayer.hg
annotate vidix/sysdep/AsmMacros_arm32.h @ 24166:cf27c9342878
Fix warnings:
vo_directfb2.c:1296: warning: unused variable 'rect'
vo_directfb2.c:1295: warning: unused variable 'dsc'
vo_directfb2.c:1294: warning: unused variable 'tmp'
author | diego |
---|---|
date | Sat, 25 Aug 2007 16:32:20 +0000 |
parents | 88bed2131f19 |
children | 9c4ad35fabc5 |
rev | line source |
---|---|
4164 | 1 /* |
2 This file is based on: | |
3 $XFree86: xc/programs/Xserver/hw/xfree86/drivers/chips/util/AsmMacros.h,v 1.1 2001/11/16 21:13:34 tsi Exp $ | |
4 Modified for readability by Nick Kurshev | |
5 */ | |
6 | |
23934
88bed2131f19
Identifiers starting with underscores are reserved.
diego
parents:
22900
diff
changeset
|
7 #ifndef ASMMACROS_ARM32_H |
88bed2131f19
Identifiers starting with underscores are reserved.
diego
parents:
22900
diff
changeset
|
8 #define ASMMACROS_ARM32_H |
4164 | 9 unsigned int IOPortBase; /* Memory mapped I/O port area */ |
10 | |
11 static __inline__ void outb(short port,char val) | |
12 { | |
13 if ((unsigned short)port >= 0x400) return; | |
14 *(volatile unsigned char*)(((unsigned short)(port))+IOPortBase) = val; | |
15 } | |
16 | |
17 static __inline__ void outw(short port,short val) | |
18 { | |
19 if ((unsigned short)port >= 0x400) return; | |
20 *(volatile unsigned short*)(((unsigned short)(port))+IOPortBase) = val; | |
21 } | |
22 | |
23 static __inline__ void outl(short port,int val) | |
24 { | |
25 if ((unsigned short)port >= 0x400) return; | |
26 *(volatile unsigned long*)(((unsigned short)(port))+IOPortBase) = val; | |
27 } | |
28 | |
29 static __inline__ unsigned int inb(short port) | |
30 { | |
31 if ((unsigned short)port >= 0x400) return((unsigned int)-1); | |
32 return(*(volatile unsigned char*)(((unsigned short)(port))+IOPortBase)); | |
33 } | |
34 | |
35 static __inline__ unsigned int inw(short port) | |
36 { | |
37 if ((unsigned short)port >= 0x400) return((unsigned int)-1); | |
38 return(*(volatile unsigned short*)(((unsigned short)(port))+IOPortBase)); | |
39 } | |
40 | |
41 static __inline__ unsigned int inl(short port) | |
42 { | |
43 if ((unsigned short)port >= 0x400) return((unsigned int)-1); | |
44 return(*(volatile unsigned long*)(((unsigned short)(port))+IOPortBase)); | |
45 } | |
46 | |
47 #define intr_disable() | |
48 #define intr_enable() | |
49 | |
23934
88bed2131f19
Identifiers starting with underscores are reserved.
diego
parents:
22900
diff
changeset
|
50 #endif /* ASMMACROS_ARM32_H */ |