Subversion Repositories shark

Rev

Rev 595 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
422 giacomo 1
#ifndef __LINUX_COMP__
2
#define __LINUX_COMP__
3
 
494 giacomo 4
#ifndef __i386__
5
#define __i386__
6
#endif
7
 
422 giacomo 8
#define CONFIG_M386
499 giacomo 9
#define CONFIG_X86
422 giacomo 10
 
11
#define va_list void*
12
 
13
#define CONFIG_X86_L1_CACHE_SHIFT 6
14
 
15
#define CONFIG_X86_CMPXCHG
430 giacomo 16
#define CONFIG_PCI
422 giacomo 17
 
18
#define NR_IRQS 15
19
#define NR_IRQ_VECTORS 15
20
 
434 giacomo 21
#define APIC_DEFINITION
428 giacomo 22
#define __BIT_TYPES_DEFINED__
23
 
24
#include <ll/i386/mem.h>
25
 
26
#define _SIZE_T
27
#define _SSIZE_T
28
 
29
#define __HAVE_ARCH_MEMSET
30
#define __HAVE_ARCH_MEMCPY
31
#define __HAVE_ARCH_MEMMOVE
32
#define __HAVE_ARCH_MEMSCAN
33
#define __HAVE_ARCH_MEMCMP
34
#define __HAVE_ARCH_MEMCHR
35
 
490 giacomo 36
void shark_internal_sem_create(void **sem, int init);
37
void shark_internal_sem_wait(void *sem);
38
void shark_internal_sem_post(void *sem);
39
 
494 giacomo 40
 
41
#define CONFIG_GAMEPORT
579 mauro 42
#define CONFIG_CPU_FREQ_TABLE
494 giacomo 43
 
44
#ifndef _STRUCT_TIMESPEC
45
#define _STRUCT_TIMESPEC
46
struct timespec {
47
        long    tv_sec;         /* Seconds */
48
        long    tv_nsec;        /* Nanoseconds */
49
};
50
#endif /* _STRUCT_TIMESPEC */
51
 
500 giacomo 52
#define __udelay __const_udelay
53
 
494 giacomo 54
extern TIME sys_gettime(struct timespec *t);
55
 
526 giacomo 56
#define MAX_INT_TABLE 64 /* Shark_glue table for interrupt and timers */
57
 
762 giacomo 58
unsigned long long read_jiffies(void);
494 giacomo 59
 
762 giacomo 60
#define jiffies26 ((unsigned long long)(read_jiffies()))
61
 
514 giacomo 62
/* Timer Manager */
526 giacomo 63
int shark_timer_set(const struct timespec *time, void *handler, void *arg);
514 giacomo 64
int shark_timer_delete(int index);
494 giacomo 65
 
66
/* Interrupt handler installation and removal */
513 giacomo 67
int shark_handler_set(int no, void *fast, void *arg);
494 giacomo 68
int shark_handler_remove(int no);
69
 
422 giacomo 70
#endif