Subversion Repositories shark

Rev

Rev 490 | Rev 496 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef __LINUX_COMP__
#define __LINUX_COMP__

#ifndef __i386__
#define __i386__
#endif

#define CONFIG_M386

#define va_list void*

#define CONFIG_X86_L1_CACHE_SHIFT 6

#define CONFIG_X86_CMPXCHG
#define CONFIG_PCI

#define NR_IRQS 15
#define NR_IRQ_VECTORS 15

#define APIC_DEFINITION
#define __BIT_TYPES_DEFINED__

#include <ll/i386/mem.h>

#define _SIZE_T
#define _SSIZE_T

#define __HAVE_ARCH_MEMSET
#define __HAVE_ARCH_MEMCPY
#define __HAVE_ARCH_MEMMOVE
#define __HAVE_ARCH_MEMSCAN
#define __HAVE_ARCH_MEMCMP
#define __HAVE_ARCH_MEMCHR

void shark_internal_sem_create(void **sem, int init);
void shark_internal_sem_wait(void *sem);
void shark_internal_sem_post(void *sem);


#define CONFIG_GAMEPORT

#ifndef _STRUCT_TIMESPEC
#define _STRUCT_TIMESPEC
struct timespec {
        long    tv_sec;         /* Seconds */
        long    tv_nsec;        /* Nanoseconds */
};
#endif /* _STRUCT_TIMESPEC */

extern TIME sys_gettime(struct timespec *t);

#define jiffies26 (sys_gettime(NULL)*HZ/1000000)        /* Has to be controlled...      */
//#define jiffies26 (TIME)0

int shark_event_post(struct timespec *time, void (*handler)(void *p), void *par);
int shark_event_delete(int index);

/* Interrupt handler installation and removal */
int shark_handler_set(int no, void (*fast)(int), int pi);
int shark_handler_remove(int no);

#endif