📄 myintr.h
字号:
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
/*++
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
Module Name:
myintr.h
Abstract:
This is a protocol type to setup an interrupt
Functions:
Notes:
--*/
#ifndef MYINTR_H
#define MYINTR_H
#if __cplusplus
extern "C"
{
#endif
#include <windows.h>
#include <nkintr.h>
#include <types.h>
///#include <memory.h>
///#include <tchar.h>
#include <ceddk.h>
#include <bulverde.h>
typedef BOOLEAN(*MYISTFUNC) (LPVOID param);
typedef struct _myintr
{
DWORD irq; ///Requested IRQ. Check the H/W specific to find the correct one
DWORD dwSysIntr; ///Mapped System Interrupt
HANDLE hIntrEvent; /// Handle to Interrupt event.
HANDLE hISTHandle; /// IST handle
///LPTHREAD_START_ROUTINE pIstFunc; /// IST function pointer
MYISTFUNC pIstFunc; /// IST function pointer
LPVOID param; /// parameter
HANDLE hGIIsr; /// ISR handle
HANDLE waitobj; /// Synchronization object
BOOL quitIST;
///VOID *dmareg;
PVOID IntrRgPhysAddr;
DWORD IntrMask;
} MYINTRINFO;
int setupInterrupt(MYINTRINFO* pMyIntrInfo);
int installISR(MYINTRINFO* pMyIntrInfo);
void clrInterrupt(MYINTRINFO* pMyIntrInfo);
#if __cplusplus
}
#endif ///__cplusplus
#endif ///MYINTR_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -