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.

Classes

struct  program_t
 The program control structure. More...
 

Macros

#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 marku.nosp@m.s@no.nosp@m.ga.de

Definition in file program.h.

Macro Definition Documentation

#define PROG_MAX   8

maximum number of programs

Definition at line 45 of file program.h.

Enumeration Type Documentation

Enumerator
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

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


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

Generated for brickOS Kernel Developer by doxygen 1.8.11