📄 ioctl.h
字号:
//===========================================================================
// IOCTL.H - IOCTLs for the S1D13xxx PCI board interface driver
//---------------------------------------------------------------------------
// Copyright (c) 2002 Epson Research and Development, Inc.
// All Rights Reserved.
//---------------------------------------------------------------------------
//
// The standard evaluation board uses a PCI interface. Win32 applications
// do not have sufficient persmission to access the dispaly controller or
// display memory directly. For a Win32 application to access the display
// controller the PCI driver S1D13xxx is used. S1D13xxx performs two
// functions. First it queries the PCI interface and locates our eval
// board, second when our eval board is found it translates the physical
// (PCI) address to a logical address in the callers address space. The
// caller can now access the dipsplay controller and memory directly.
//
// NOTE: one by product of the way S1D13xxx works is that software
// can access eval boards with fixed addresses (i.e. ISA) by
// specifying the physical address to the driver. In this case
// (when the address specified is non-zero) the S1D13xxx driver
// bypasses the PCI enumeration step and simply provides the
// physical to logical address translation.
//
// The IOCTL code contains a command identifier, plus other information about
// the device, the type of access with which the file must have been opened,
// and the type of buffering.
//===========================================================================
// (Tabs set to 4 spaces)
#define SED_TYPE FILE_DEVICE_CONTROLLER
// The IOCTL function codes from 0x800 to 0xFFF are for customer use.
#define IOCTL_SED_QUERY_NUMBER_OF_PCI_BOARDS \
CTL_CODE( SED_TYPE, 0x900, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_SED_MAP_PCI_BOARD \
CTL_CODE( SED_TYPE, 0x901, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_SED_MAP_PHYSICAL_MEMORY \
CTL_CODE( SED_TYPE, 0x902, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_SED_UNMAP_LINEAR_MEMORY \
CTL_CODE( SED_TYPE, 0x903, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_SED_HOOK_ISR_CALLBACK \
CTL_CODE( SED_TYPE, 0x904, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_SED_UNHOOK_ISR_CALLBACK \
CTL_CODE( SED_TYPE, 0x905, METHOD_BUFFERED, FILE_ANY_ACCESS)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -