⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 atamain.h

📁 EP931X系列的WinCE显卡驱动源代码
💻 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.
//
#ifndef _ATAMAIN_H_
#define _ATAMAIN_H_

#include <windows.h>
#include <types.h>
#include <tchar.h>
#include <excpt.h>
#include <wdm.h>
#include <cardserv.h>
#include <cardapi.h>
#include <tuple.h>
#include <devload.h>
#include <diskio.h>
#include <nkintr.h>
#include <atapi2.h>
#include <cdioctl.h>
#include <dvdioctl.h>
#include <atapiio.h>
#include <diskmain.h>
#include <helper.h>
#include <debug.h>
#include <storemgr.h>
#include <hwdefs.h>

#define DEFAULT_MEDIA_CHECK_TIME    5000
#define MAX_RESET_ATTEMPTS          10
#define DEFAULT_WAIT_CHECK_ITER     2000
#define DEFAULT_WAIT_SAMPLE_TIMES   100
#define DEFAULT_WAIT_STALL_TIME     400
#define MAX_SECT_PER_COMMAND        256
#define MAX_DMA_SECT_PER_COMMAND    63
#define MAX_CD_SECT_PER_COMMAND     32
#define DISK_IO_TIME_OUT            20000

// Registry value names
#define REG_VALUE_MEDIACHECKTIME    TEXT("MediaCheckTime")
#define REG_VALUE_CHS               TEXT("CHSMode")
#define REG_VALUE_DMAENABLE         TEXT("DMAEnable")
#define REG_VALUE_UDMAENABLE        TEXT("UDMAEnable")
#define REG_VALUE_MDMA_MODE         TEXT("BestMDMAMode")
#define REG_VALUE_UDMA_MODE         TEXT("BestUDMAMode")
#define REG_VALUE_DVD               TEXT("DVD")
#define REG_VALUE_INTENABLE         TEXT("IntEnable")
#define REG_VALUE_HDPROFILE         TEXT("HDProfile")
#define REG_VALUE_CDPROFILE         TEXT("CDProfile")


#define ATA_SETTINGS_HDDMA          0x1
#define ATA_SETTINGS_CDDMA          0x4

BOOL AtaIsValidDisk(CDisk *pDisk);

typedef struct tagIDEBUS {
    DWORD dwIoBase[5];
    DWORD dwIoLen[5];
    DWORD hDevice[4];
    LPWSTR szDevice[4]; 
} IDEBUS, *PIDEBUS;

#endif _ATAMAIN_H_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -