Category : Alternate Operating Systems - Quarterdeck DesqView, CP/M, etc
Archive   : VMIXUTL.ZIP
Filename : $_CONFIG.H

 
Output of file : $_CONFIG.H contained in archive : VMIXUTL.ZIP
/*****************************************************************************
* ComSoft Library -- $_config.h Copyright (C)1985-1992 by J. Anthony Borras
*
* DATE: Sept. 22, 1985 06-19-92
*
* NAME: $_config.h -- include file for system configuration
*
* SYNOPSIS:
* #INCLUDE "$_config.h"
*
* FUNCTION:
* This header file includes system configuration
* and external variables.
*
* RETURNS:
* = N/A
*
*****************************************************************************/


/* Configuration */

#ifdef IBMPC
#define SYS_MAXPROC 4 /* total number of processes */
#define SYS_MAXOBJ 23 /* total number of objects */
#else
#define SYS_MAXPROC 8 /* total number of processes */
#define SYS_MAXOBJ 27 /* total number of objects */
#endif

#define SYS_GKSPGS 40 /* graphic VIO buffer size (4Kb pgs) */
#define SYS_MAXTYP 10 /* total number of object types */
#define SYS_MAXTDB 10 /* total number of terminal types */
#define SYS_MAXFUN 10 /* total number of driver functions */
#define SYS_MAXCHAN 16 /* total number of channels */
#define SYS_MAXLOCK 00 /* total number of interlocks */
#define SYS_MAXSEM 00 /* total number of semaphores queues */
#define SYS_NPSTATE 10 /* total number of queued pstates */
#define SYS_NOSTATE 2 /* total number of queued ostates */
#define SYS_EXEPRI 2 /* system lowest priority adjust */
#define SYS_MAXPRI 31 /* system highest priority */
#define SYS_MAXWAT 8192 /* system I/O preempt loop length */
#define SYS_TOKLEN 10 /* maximum entries in token table */
#define SYS_MAXTOK 5 /* total number of token tables */
#define SYS_ARGLEN 8 /* maximum entries in args table */
#define SYS_MAXARG 10 /* total number of argument tables */
#define SYS_LOGBUF 56 /* DEPENDENT on VM_ASM.ASM align */
#define SYS_SHLBUF 128 /* shell command buffer size */
#define SYS_FILEBUF 1024 /* buffered file I/O buffer size */
#define SYS_SWAPTUM 10 /* swapped slice count */
#define SYS_VIOPGS 2 /* text VIO buffer size (4Kb pgs) */
#define SYS_ID 0x200 + 76 /* external version ID */


/* Declaration of I/O routines used */

extern SYSCALL ttyread();
extern SYSCALL ttywrite();
extern SYSCALL ttygetc();
extern SYSCALL ttyputc();
extern SYSCALL ttyinit();
extern SYSCALL ttycntl();
extern int ttyin_event();
extern int ttyout_event();
extern int kbd_event();
extern SYSCALL prtwrite();
extern SYSCALL prtputc();
extern SYSCALL prtinit();
extern SYSCALL ionull();
extern SYSCALL diskread();
extern SYSCALL diskwrite();
extern SYSCALL diskseek();
extern SYSCALL diskinit();
extern SYSCALL diskopen();
extern SYSCALL diskcntl();
extern int disk_event();
extern SYSCALL fileread();
extern SYSCALL filewrite();
extern SYSCALL fileseek();
extern SYSCALL filegetc();
extern SYSCALL fileputc();
extern SYSCALL fileinit();
extern SYSCALL fileopen();
extern SYSCALL fileclose();


/* Configuration Global variables */

extern char *ker0pc_currdir;
extern char *ker0pc_currdrv;
extern char **ker0pp_currdta;
extern int ker0i_debug;
extern int (**ker0pf_int09)();
extern int ker0i_remote;
extern int ker0i_debshl;
extern int ker0i_rootshl;
extern int ker0i_shllev;
extern unsigned int ker0ui_shutcnt;
extern unsigned short *ker0ps_currpsp;
extern unsigned short *ker0ps_dosstk;
extern struct PSP *ker0ps_vmpsp;

extern BYTE io0b_colorbg;
extern BYTE io0b_colorwn;
extern BYTE io0b_colvmax;
extern BYTE io0b_rowvmax;
extern BYTE io0b_conbg;
extern BYTE io0b_conwn;
extern BYTE io0b_currtmod;
extern BYTE io0b_currvfnt;
extern BYTE io0b_currvmod;
extern BYTE io0b_stormode;
extern int io0i_bwinbot;
extern int io0i_bwintop;
extern int io0i_currvsiz;
extern int io0i_ecurs;
extern int io0i_rtop;
extern int io0i_violine;
extern unsigned int io0ui_waitcnt;

extern int sch0i_envpflg;
extern unsigned int sch0ui_quantum; /* preempt base count */
extern unsigned int sch0ui_slice; /* clock tick scheduler step */
extern unsigned int sch0ui_swaptick; /* swap tick scheduler step */


/* In-line driver function definitions */

#define get_tcur() (*((int *)&io0b_tcurx + io0ps_stdirp->swappg))
#define get_tcurx() (*((BYTE *)&io0b_tcurx + (io0ps_stdirp->swappg << 1)))
#define get_tcury() (*((BYTE *)&io0b_tcury + (io0ps_stdirp->swappg << 1)))
#define set_tcur(x) (*((int *)&io0b_tcurx + io0ps_stdirp->swappg) = (x))
#define set_tcurx(x) (*((BYTE *)&io0b_tcurx + (io0ps_stdirp->swappg << 1)) \
= (x))
#define set_tcury(y) (*((BYTE *)&io0b_tcury + (io0ps_stdirp->swappg << 1)) \
= (y))
#define adj_tcur(x) (*((int *)&io0b_tcurx + io0ps_stdirp->swappg) += (x))
#define adj_tcurx(x) (*((BYTE *)&io0b_tcurx + (io0ps_stdirp->swappg << 1)) \
+= (x))
#define adj_tcury(y) (*((BYTE *)&io0b_tcury + (io0ps_stdirp->swappg << 1)) \
+= (y)) /* cursor macros */
#define get_pixx(x) ((x) * io0b_chrxsiz) /* col2pix*/
#define get_pixy(y) (6 + ((y) - 1) * io0b_chrysiz) * ((y) > 0) /* row2pix*/
#define is_grmode(x) ((x) > 3 && (x) != 7) /* check video mode */



  3 Responses to “Category : Alternate Operating Systems - Quarterdeck DesqView, CP/M, etc
Archive   : VMIXUTL.ZIP
Filename : $_CONFIG.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/