Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

include/sys/program.h File Reference

Internal Interface: program data structures and functions. More...

#include <config.h>
#include <tm.h>

Include dependency graph for program.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Compounds

struct  program_t

Defines

#define PROG_MAX   8
 maximum number of programs. More...


Enumerations

enum  packet_cmd_t {
  CMDacknowledge, CMDdelete, CMDcreate, CMDoffsets,
  CMDdata, CMDrun, CMDirmode, CMDsethost,
  CMDlast
}

Functions

void program_stop (int flag)
 stop program. More...

int program_valid (unsigned nr)
 check if a given program is valid. More...

void program_init ()
 initialize program support. More...

void program_shutdown ()
 shutdown program support. More...


Variables

volatile unsigned cprog
 the current program. More...


Detailed Description

Internal Interface: program data structures and functions.

Author:
Markus L. Noga <markus@noga.de>

Definition in file program.h.


Define Documentation

#define PROG_MAX   8
 

maximum number of programs.

Definition at line 45 of file program.h.


Enumeration Type Documentation

enum packet_cmd_t
 

For internal use only.

Enumeration values:
CMDacknowledge  1:.
CMDdelete  1+ 1: b[nr].
CMDcreate  1+12: b[nr] s[textsize] s[datasize].
CMDoffsets  1+ 7: b[nr] s[text] s[data] s[bss].
CMDdata  1+>3: b[nr] s[offset] array[data].
CMDrun  1+ 1: b[nr].
CMDirmode  1+ 1: b[0=near/1=far].
CMDsethost  1+ 1: b[hostaddr].
CMDlast  ?

Definition at line 70 of file program.h.


Function Documentation

void program_init  
 

initialize program support.

Referenced by kmain().

void program_shutdown  
 

shutdown program support.

Referenced by kmain().

void program_stop int    flag
 

stop program.

int program_valid unsigned    nr
 

check if a given program is valid.

Returns:
0 if invalid


Variable Documentation

volatile unsigned cprog
 

the current program.

Definition at line 92 of file program.h.


brickOS is released under the Mozilla Public License.
Original code copyright 1998-2002 by the authors.

Generated on Tue Dec 10 00:09:17 2002 for brickOS Kernel Developer by doxygen 1.2.15