/*static char *SCCSID = "@(#)fs_init.c	6.2 91/01/14";*/
#define SCCSID "@(#)fs_init.c	6.2 91/01/14"
/*
 *	IBM/Microsoft Confidential
 *
 *	Copyright (c) IBM Corporation 1987, 1989
 *	Copyright (c) Microsoft Corporation 1987, 1989
 *
 *	All Rights Reserved
 *
 */

/*
 *  FS_INIT.C
 *
 *    DESCRIPTION
 *    
 *      Initialize the CD-ROM file system.
 *
 *
 *    FUNCTIONS DEFINED
 *
 *      FS_INIT ()  -   Initial entry point into FSD.
 *
 * 
 *    REVISION HISTORY (in reverse chronological order)
 *    -----------------------------------------------------------------------
 *    8/9/89    Brian Andrew    Additional comments added, debug print
 *                                  statement removed.
 *    8/4/89    Brian Andrew    Initial Blank Template
 *
 *
 *  TO DO
 *  -------------------------------------------------------------------------
 *
 */


#define INCL_DOSERRORS
#define INCL_NOPMAPI
#include <os2.h>
#include <fsd.h>

#include "cdfs.h"
#include "sem.h"
#include "path.h"
#include "vol.h"
#include "file.h"
#include "buffer.h"
#include "mem.h"
#include "heap.h"
#include "message.h"

#ifdef STATS_H
#include "stats.h"
#endif

#include "fsdata.h"
#include "pr_fsini.h"

#ifdef DEBUG
#include "pr_debug.h"
#endif


/***    FS_INIT ()  -   Initial FSD entry point.
 *      
 *  DESCRIPTION
 *
 *      The principal work is done in the function 'OurFSIni'.  The
 *      work done is to store the DevHelp entry point address, recover
 *      code page information which is only available at this time and
 *      finally to analyze the command line parameters.
 *
 *
 *  ENTRY
 *
 *      pcParm  = Pointer to parameter string.
 *      DevHelp = address of dev help entry
 *      pMiniFSD = a pointer to a kernel scratch area, which
 *                 points to the mini-FSD's data area
 *
 *
 *  LOCAL
 *
 *      usRet   = return value for function
 *
 *
 *  EXIT
 *
 *      Return value from OurFSIni
 */



INT far pascal
FS_INIT (PCHAR pcParm,          /* passed in from config.sys line */
		 ULONG DevHelp,
		 ULONG far *pMiniFSD)
{

	USHORT  usRet;

	usRet = OurFSIni (pcParm, DevHelp);


#ifdef DEBUG
	dprintf ("FS_INIT: Parameters %Fs\n", pcParm);
	dprintf ("    FS_INIT: Exit  --  %d\n", usRet);

#endif

	return usRet;

	/* no warnings */
	pMiniFSD;

}   /* end FS_INIT */
