mos.h

The header file for kernel interface library

Author

Marcel Sondaar

License

Educational Purposes

Defines

blockalloc gatealloc gatelookup getcpuinfo gettimerticks ipccdeclconv kernelversion localipccall memmap portalloc routealloc routefind

Linker Parameters

-lmos

Summary
mos.hThe header file for kernel interface library
mos_procinfostores processor info
Variables
processor_idshorthand number of the processor
Processor_versionpacked processor version
processor_caps1processor capabilities bits set 1
processor_caps2processor capabilities bits set 2
processor_brandfixed-length string containing the processor manufacturer
Macros
PORTNAMEGenerates a FourCC out of a string’s first four characters

mos_procinfo

typedef struct mos_procinfo

stores processor info

Summary
Variables
processor_idshorthand number of the processor
Processor_versionpacked processor version
processor_caps1processor capabilities bits set 1
processor_caps2processor capabilities bits set 2
processor_brandfixed-length string containing the processor manufacturer
Macros
PORTNAMEGenerates a FourCC out of a string’s first four characters

Variables

processor_id

unsigned short int processor_id

shorthand number of the processor

Processor_version

packed processor version

processor_caps1

unsigned int processor_caps1

processor capabilities bits set 1

processor_caps2

unsigned int processor_caps2

processor capabilities bits set 2

processor_brand

char processor_brand[12]

fixed-length string containing the processor manufacturer

Macros

PORTNAME

Generates a FourCC out of a string’s first four characters

typedef struct mos_procinfo
stores processor info
unsigned short int processor_id
shorthand number of the processor
unsigned int processor_caps1
processor capabilities bits set 1
unsigned int processor_caps2
processor capabilities bits set 2
char processor_brand[12]
fixed-length string containing the processor manufacturer
Request memory from the kernel
Find a port given its name
Find a port given its name
Request memory from the kernel
Requests the amount of ticks
stub to retrieve the ipc parameters for a cdecl function
Requests the kernel version
performs an ipc call to a handler in the local address space
Request memory from the kernel
Request i/o ports from the kernel
Publicate a named port
Find a port given its name