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
 

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

Definition in file program.h.

Macro Definition Documentation

◆ PROG_MAX

#define PROG_MAX   8

maximum number of programs

Definition at line 45 of file program.h.

Enumeration Type Documentation

◆ packet_cmd_t

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

◆ program_init()

void program_init ( )
extern

initialize program support

◆ program_shutdown()

void program_shutdown ( )
extern

shutdown program support

◆ program_stop()

void program_stop ( int  flag)
extern

stop program

◆ program_valid()

int program_valid ( unsigned  nr)
extern

check if a given program is valid.

Returns
0 if invalid

Variable Documentation

◆ cprog

volatile unsigned cprog
extern

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.9.8