Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class 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:

Include dependency graph

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

Included by dependency graph

Go to the source code of this file.

Classes

struct  program_t
 The program control structure. More...


Defines

#define PROG_MAX   8
 maximum number of programs


Enumerations

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

Functions

void program_stop (int flag)
 stop program

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

void program_init ()
 initialize program support

void program_shutdown ()
 shutdown program support


Variables

volatile unsigned cprog
 the current program


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 71 of file program.h.


Function Documentation

void program_init  ) 
 

initialize program support

void program_shutdown  ) 
 

shutdown program support

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 93 of file program.h.


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

Generated on Mon Feb 16 21:02:24 2004 for brickOS Kernel Developer by doxygen 1.3.5