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