xref: /minix3/minix/servers/rs/glo.h (revision 129adfeb539ca3844b1e1d755bfe5e193eb4bb5d)
1*433d6423SLionel Sambuc /* Global variables used in RS.
2*433d6423SLionel Sambuc  */
3*433d6423SLionel Sambuc #ifndef RS_GLO_H
4*433d6423SLionel Sambuc #define RS_GLO_H
5*433d6423SLionel Sambuc 
6*433d6423SLionel Sambuc #ifdef _TABLE
7*433d6423SLionel Sambuc #undef EXTERN
8*433d6423SLionel Sambuc #define EXTERN
9*433d6423SLionel Sambuc #endif
10*433d6423SLionel Sambuc 
11*433d6423SLionel Sambuc #include <minix/param.h>
12*433d6423SLionel Sambuc 
13*433d6423SLionel Sambuc /* The boot image priv table. This table has entries for all system
14*433d6423SLionel Sambuc  * services in the boot image.
15*433d6423SLionel Sambuc  */
16*433d6423SLionel Sambuc extern struct boot_image_priv boot_image_priv_table[];
17*433d6423SLionel Sambuc 
18*433d6423SLionel Sambuc /* The boot image sys table. This table has entries for system services in
19*433d6423SLionel Sambuc  * the boot image that override default sys properties.
20*433d6423SLionel Sambuc  */
21*433d6423SLionel Sambuc extern struct boot_image_sys boot_image_sys_table[];
22*433d6423SLionel Sambuc 
23*433d6423SLionel Sambuc /* The boot image dev table. This table has entries for system services in
24*433d6423SLionel Sambuc  * the boot image that support dev properties.
25*433d6423SLionel Sambuc  */
26*433d6423SLionel Sambuc extern struct boot_image_dev boot_image_dev_table[];
27*433d6423SLionel Sambuc 
28*433d6423SLionel Sambuc /* The system process table. This table only has entries for system
29*433d6423SLionel Sambuc  * services (servers and drivers), and thus is not directly indexed by
30*433d6423SLionel Sambuc  * slot number. The size of the table must match the size of the privilege
31*433d6423SLionel Sambuc  * table in the kernel.
32*433d6423SLionel Sambuc  */
33*433d6423SLionel Sambuc EXTERN struct rprocpub rprocpub[NR_SYS_PROCS];  /* public entries */
34*433d6423SLionel Sambuc EXTERN struct rproc rproc[NR_SYS_PROCS];
35*433d6423SLionel Sambuc EXTERN struct rproc *rproc_ptr[NR_PROCS];       /* mapping for fast access */
36*433d6423SLionel Sambuc 
37*433d6423SLionel Sambuc /* Global init descriptor. This descriptor holds data to initialize system
38*433d6423SLionel Sambuc  * services.
39*433d6423SLionel Sambuc  */
40*433d6423SLionel Sambuc EXTERN sef_init_info_t rinit;
41*433d6423SLionel Sambuc 
42*433d6423SLionel Sambuc /* Global update descriptor. This descriptor holds data when a live update
43*433d6423SLionel Sambuc  * is in progress.
44*433d6423SLionel Sambuc  */
45*433d6423SLionel Sambuc EXTERN struct rupdate rupdate;
46*433d6423SLionel Sambuc 
47*433d6423SLionel Sambuc /* Enable/disable verbose output. */
48*433d6423SLionel Sambuc EXTERN long rs_verbose;
49*433d6423SLionel Sambuc 
50*433d6423SLionel Sambuc /* Set when we are shutting down. */
51*433d6423SLionel Sambuc EXTERN int shutting_down;
52*433d6423SLionel Sambuc 
53*433d6423SLionel Sambuc EXTERN unsigned system_hz;
54*433d6423SLionel Sambuc 
55*433d6423SLionel Sambuc EXTERN struct machine machine;		/* machine info */
56*433d6423SLionel Sambuc 
57*433d6423SLionel Sambuc #endif /* RS_GLO_H */
58*433d6423SLionel Sambuc 
59