blob: 183f831e5809b8d71b7509a24a614969d361c50a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
/*
Generic stuff to compile VIDIX only on any system (SCRATCH)
*/
#ifndef __ASM_MACROS_GENERIC_H
#define __ASM_MACROS_GENERIC_H
#warning This stuff is not ported on your system
static __inline__ void outb(short port,char val)
{
printf("outb: generic function call\n");
return;
}
static __inline__ void outw(short port,short val)
{
printf("outw: generic function call\n");
return;
}
static __inline__ void outl(short port,unsigned int val)
{
printf("outl: generic function call\n");
return;
}
static __inline__ unsigned int inb(short port)
{
printf("inb: generic function call\n");
return 0;
}
static __inline__ unsigned int inw(short port)
{
printf("inw: generic function call\n");
return 0;
}
static __inline__ unsigned int inl(short port)
{
printf("inl: generic function call\n");
return 0;
}
static __inline__ void intr_disable()
{
printf("intr_disable: generic function call\n");
}
static __inline__ void intr_enable()
{
printf("intr_enable: generic function call\n");
}
#endif
|