/*++
 * Copyright (c) 1990-96 Digi International Inc., All Rights Reserved
 * 
 * This software contains proprietary and confidential information of Digi
 * International Inc.  By accepting transfer of this copy, Recipient agrees
 * to retain this software in confidence, to prevent disclosure to others,
 * and to make no use of this software other than that for which it was
 * delivered.  This is an unpublished copyrighted work of Digi International
 * Inc.  Except as permitted by federal law, 17 USC 117, copying is strictly
 * prohibited.
 * 
 * Restricted Rights Legend
 *
 * Use, duplication, or disclosure by the Government is subject to
 * restrictions set forth in sub-paragraph (c)(1)(ii) of The Rights in
 * Technical Data and Computer Software clause at DFARS 252.227-7031 or
 * subparagraphs (c)(1) and (2) of the Commercial Computer Software -
 * Restricted Rights at 48 CFR 52.227-19, as applicable.
 *
 * Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343
 *
 *
 * Last Update: $Date: 10/22/97 11:57a $
 *
 * $Header: /Components/Windows/NT/Sync/Build/Mp570/proto.h 4     10/22/97 11:57a Darinh $
 *
 * Revision History:
 * $Log: /Components/Windows/NT/Sync/Build/Mp570/proto.h $
 * 
 * 4     10/22/97 11:57a Darinh
 * Changes to make multiple board installations work better.
 * 
 * 3     7/15/97 1:05p Darinh
 * Added DigiLogError statements and message file, altered code to function
 * in DStreams environment and SNA environment with a conditional
 * compilation.
 * 
 * 2     6/06/97 1:48p Darinh
 * Everything seems functional, but more testing is required.
 * 
 * 1     4/02/97 10:09a Darinh
 * Initial checkin; ISA cards initialize, but do not pass data.
 * 
--*/

#ifndef _PROTO_H
#define _PROTO_H


#include <ntddk.h>


NTSTATUS
DriverEntry (
	IN	PDRIVER_OBJECT		DriverObject,
	IN	PUNICODE_STRING		RegistryPath);

NTSTATUS
DigiFindControllers (
	IN PDRIVER_OBJECT	DriverObject,
	IN PUNICODE_STRING	RegistryPath);

#if NT5_BUILD

NTSTATUS 
DigiInitializeAdapter (
	IN PDRIVER_OBJECT		DriverObject,
	IN	PDIGI_RESOURCE_LIST	pResources,
	IN PCONTROLLER_EXT		pControllerExt);

NTSTATUS
SetupPciAdapter (
	IN PDRIVER_OBJECT	pDriverObject,
	IN PCONTROLLER_EXT	pControllerExt);

#else

NTSTATUS 
DigiInitializeAdapter (
	IN PDRIVER_OBJECT	DriverObject,
	IN PCONTROLLER_EXT	pControllerExt,
	IN PUNICODE_STRING	RegistryPath,
	IN PUNICODE_STRING	AdapterName,
	IN PUNICODE_STRING	AdapterPath);

NTSTATUS
SetupPciAdapter (
	IN PUNICODE_STRING	RegistryPath,
	IN PDRIVER_OBJECT	pDriverObject,
	IN PCONTROLLER_EXT	pControllerExt);

#endif

NTSTATUS
SetupIsaAdapter (
	IN PDRIVER_OBJECT		pDriverObject,
	IN PCONTROLLER_EXT		pControllerExt);


NTSTATUS
PciConnectToInterrupt (
	IN PCONTROLLER_EXT		pControllerExt);

NTSTATUS
IsaConnectToInterrupt (
	IN PCONTROLLER_EXT		pControllerExt);

NTSTATUS
IsaReportResources (
	IN PCONTROLLER_EXT	    pControllerExt);


#endif // _PROTO_H

