140 lines
1.8 KiB
C
140 lines
1.8 KiB
C
/*++ BUILD Version: 0003 // Increment this if a change has global effects
|
||
|
||
Copyright (c) 1991 Microsoft Corporation
|
||
|
||
Module Name:
|
||
|
||
halp.h
|
||
|
||
Abstract:
|
||
|
||
This header file defines the private Hardware Architecture Layer (HAL)
|
||
interfaces.
|
||
|
||
Author:
|
||
|
||
David N. Cutler (davec) 25-Apr-1991
|
||
|
||
|
||
Revision History:
|
||
|
||
--*/
|
||
|
||
#ifndef _HALP_
|
||
#define _HALP_
|
||
#include "nthal.h"
|
||
#include "jazzdef.h"
|
||
#include "jazzdma.h"
|
||
#include "jazzint.h"
|
||
#include "hal.h"
|
||
#include "jxhalp.h"
|
||
|
||
//
|
||
// Define function prototypes.
|
||
//
|
||
|
||
PADAPTER_OBJECT
|
||
HalpAllocateAdapter(
|
||
IN ULONG MapRegistersPerChannel,
|
||
IN PVOID AdapterBaseVa,
|
||
IN PVOID MapRegisterBase
|
||
);
|
||
|
||
ULONG
|
||
HalpAllocateTbEntry (
|
||
VOID
|
||
);
|
||
|
||
VOID
|
||
HalpFreeTbEntry (
|
||
VOID
|
||
);
|
||
|
||
VOID
|
||
HalpCacheErrorRoutine (
|
||
VOID
|
||
);
|
||
|
||
BOOLEAN
|
||
HalpCalibrateStall (
|
||
VOID
|
||
);
|
||
|
||
VOID
|
||
HalpClockInterrupt (
|
||
VOID
|
||
);
|
||
|
||
BOOLEAN
|
||
HalpCreateDmaStructures (
|
||
VOID
|
||
);
|
||
|
||
BOOLEAN
|
||
HalpDmaDispatch(
|
||
IN PKINTERRUPT Interrupt,
|
||
IN PVOID ServiceContext
|
||
);
|
||
|
||
BOOLEAN
|
||
HalpInitializeDisplay0 (
|
||
IN PLOADER_PARAMETER_BLOCK LoaderBlock
|
||
);
|
||
|
||
BOOLEAN
|
||
HalpInitializeDisplay1 (
|
||
IN PLOADER_PARAMETER_BLOCK LoaderBlock
|
||
);
|
||
|
||
BOOLEAN
|
||
HalpInitializeInterrupts (
|
||
VOID
|
||
);
|
||
|
||
BOOLEAN
|
||
HalpMapFixedTbEntries (
|
||
VOID
|
||
);
|
||
|
||
BOOLEAN
|
||
HalpMapIoSpace (
|
||
VOID
|
||
);
|
||
|
||
VOID
|
||
HalpProfileInterrupt (
|
||
VOID
|
||
);
|
||
|
||
#if defined(R4000)
|
||
|
||
ULONG
|
||
HalpReadCountRegister (
|
||
VOID
|
||
);
|
||
|
||
ULONG
|
||
HalpWriteCompareRegisterAndClear (
|
||
IN ULONG Value
|
||
);
|
||
|
||
#endif
|
||
|
||
VOID
|
||
HalpStallInterrupt (
|
||
VOID
|
||
);
|
||
|
||
//
|
||
// Define external references.
|
||
//
|
||
|
||
extern ULONG HalpCurrentTimeIncrement;
|
||
extern ULONG HalpNextIntervalCount;
|
||
extern ULONG HalpNextTimeIncrement;
|
||
extern ULONG HalpNewTimeIncrement;
|
||
extern ULONG HalpProfileCountRate;
|
||
|
||
|
||
#endif // _HALP_
|