123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- /*++
- Copyright (c) 2012 Minoca Corp. All Rights Reserved
- Module Name:
- clock.h
- Abstract:
- This header contains definitions for the hardware layer's clock interrupt
- support.
- Author:
- Evan Green 19-Aug-2012
- --*/
- //
- // ---------------------------------------------------------------- Definitions
- //
- //
- // ------------------------------------------------------ Data Type Definitions
- //
- //
- // -------------------------------------------------------- Function Prototypes
- //
- INTERRUPT_STATUS
- HlpEarlyClockInterruptHandler (
- PVOID Context
- );
- /*++
- Routine Description:
- This routine responds to clock interrupts while the system is still in
- early initialization.
- Arguments:
- Context - Supplies a context pointer. Currently unused.
- Return Value:
- Claimed always.
- --*/
- INTERRUPT_STATUS
- HlpClockIpiHandler (
- PVOID Context
- );
- /*++
- Routine Description:
- This routine is the ISR for clock IPIs. The main difference being that it
- does not need to acknowledge the clock interrupt in the hardware module as
- this interrupt is software generated.
- Arguments:
- Context - Supplies a context pointer. Currently unused.
- Return Value:
- Claimed always.
- --*/
- KSTATUS
- HlpTimerInitializeClock (
- VOID
- );
- /*++
- Routine Description:
- This routine initializes the system clock source and start it ticking.
- Arguments:
- None.
- Return Value:
- Status code.
- --*/
- KSTATUS
- HlpTimerActivateClock (
- VOID
- );
- /*++
- Routine Description:
- This routine sets the clock handler routine to the main clock ISR.
- Arguments:
- None.
- Return Value:
- Status code.
- --*/
|