亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? usbcom.h

?? NXP產(chǎn)品LPC23XX的開發(fā)板的源文件
?? H
?? 第 1 頁 / 共 4 頁
字號:
    //
    // This is the number of characters read since the XoffCounter
    // was started.  This variable is only accessed at device level.
    // If it is greater than zero, it implies that there is an
    // XoffCounter ioctl in the queue.
    //
    LONG CountSinceXoff;

    //
    // This ulong is incremented each time something trys to start
    // the execution path that tries to lower the RTS line when
    // doing transmit toggling.  If it "bumps" into another path
    // (indicated by a false return value from queueing a dpc
    // and a TRUE return value tring to start a timer) it will
    // decrement the count.  These increments and decrements
    // are all done at device level.  Note that in the case
    // of a bump while trying to start the timer, we have to
    // go up to device level to do the decrement.
    //
    ULONG CountOfTryingToLowerRTS;

    //
    // This ULONG is used to keep track of the "named" (in ntddser.h)
    // baud rates that this particular device supports.
    //
    ULONG SupportedBauds;

    //
    // Hold the clock rate input to the serial part.
    //
    ULONG ClockRate;

    //
    // The number of characters to push out if a fifo is present.
    //
    ULONG TxFifoAmount;

    //
    // Holds the timeout controls for the device.  This value
    // is set by the Ioctl processing.
    //
    // It should only be accessed under protection of the control
    // lock since more than one request can be in the control dispatch
    // routine at one time.
    //
    SERIAL_TIMEOUTS Timeouts;

    //
    // This holds the various characters that are used
    // for replacement on errors and also for flow control.
    //
    // They are only set at interrupt level.
    //
    SERIAL_CHARS SpecialChars;

    //
    // This structure holds the handshake and control flow
    // settings for the serial driver.
    //
    // It is only set at interrupt level.  It can be
    // be read at any level with the control lock held.
    //
    SERIAL_HANDFLOW HandFlow;


    //
    // Holds performance statistics that applications can query.
    // Reset on each open.  Only set at device level.
    //
    SERIALPERF_STATS PerfStats;

    //
    // This holds what we beleive to be the current value of
    // the line control register.
    //
    // It should only be accessed under protection of the control
    // lock since more than one request can be in the control dispatch
    // routine at one time.
    //
    UCHAR LineControl;

    //
    // We keep track of whether the somebody has the device currently
    // opened with a simple boolean.  We need to know this so that
    // spurious interrupts from the device (especially during initialization)
    // will be ignored.  This value is only accessed in the ISR and
    // is only set via synchronization routines.  We may be able
    // to get rid of this boolean when the code is more fleshed out.
    //
    BOOLEAN DeviceIsOpened;

    //
    // This is only accessed at interrupt level.  It keeps track
    // of whether the holding register is empty.
    //
    BOOLEAN HoldingEmpty;

    //
    // This variable is only accessed at interrupt level.  It
    // indicates that we want to transmit a character immediately.
    // That is - in front of any characters that could be transmitting
    // from a normal write.
    //
    BOOLEAN TransmitImmediate;

    //
    // This variable is only accessed at interrupt level.  Whenever
    // a wait is initiated this variable is set to false.
    // Whenever any kind of character is written it is set to true.
    // Whenever the write queue is found to be empty the code that
    // is processing that completing irp will synchonize with the interrupt.
    // If this synchronization code finds that the variable is true and that
    // there is a wait on the transmit queue being empty then it is
    // certain that the queue was emptied and that it has happened since
    // the wait was initiated.
    //
    BOOLEAN EmptiedTransmit;

    //
    // We hold the character that should be transmitted immediately.
    //
    // Note that we can't use this to determine whether there is
    // a character to send because the character to send could be
    // zero.
    //
    UCHAR ImmediateChar;

    //
    // This holds the mask that will be used to mask off unwanted
    // data bits of the received data (valid data bits can be 5,6,7,8)
    // The mask will normally be 0xff.  This is set while the control
    // lock is held since it wouldn't have adverse effects on the
    // isr if it is changed in the middle of reading characters.
    // (What it would do to the app is another question - but then
    // the app asked the driver to do it.)
    //
    UCHAR ValidDataMask;

    //
    // The application can turn on a mode,via the
    // IOCTL_SERIAL_LSRMST_INSERT ioctl, that will cause the
    // serial driver to insert the line status or the modem
    // status into the RX stream.  The parameter with the ioctl
    // is a pointer to a UCHAR.  If the value of the UCHAR is
    // zero, then no insertion will ever take place.  If the
    // value of the UCHAR is non-zero (and not equal to the
    // xon/xoff characters), then the serial driver will insert.
    //
    UCHAR EscapeChar;

    //
    // These two booleans are used to indicate to the isr transmit
    // code that it should send the xon or xoff character.  They are
    // only accessed at open and at interrupt level.
    //
    BOOLEAN SendXonChar;
    BOOLEAN SendXoffChar;

    //
    // This boolean will be true if a 16550 is present *and* enabled.
    //
    BOOLEAN FifoPresent;

    //
    // This denotes that this particular port is an on the motherboard
    // port for the Jensen hardware.  On these ports the OUT2 bit
    // which is used to enable/disable interrupts is always hight.
    //
    BOOLEAN Jensen;

    //
    // This is the water mark that the rxfifo should be
    // set to when the fifo is turned on.  This is not the actual
    // value, but the encoded value that goes into the register.
    //
    UCHAR RxFifoTrigger;

    //
    // Says whether this device can share interrupts with devices
    // other than serial devices.
    //
    BOOLEAN InterruptShareable;

    //
    // Records whether we actually created the symbolic link name
    // at driver load time.  If we didn't create it, we won't try
    // to destroy it when we unload.
    //
    BOOLEAN CreatedSymbolicLink;

    //
    // Records whether we actually created an entry in SERIALCOMM
    // at driver load time.  If we didn't create it, we won't try
    // to destroy it when the device is removed.
    //
    BOOLEAN CreatedSerialCommEntry;

    //
    // We place all of the kernel and Io subsystem "opaque" structures
    // at the end of the extension.  We don't care about their contents.
    //

    //
    // This lock will be used to protect various fields in
    // the extension that are set (& read) in the extension
    // by the io controls.
    //
    KSPIN_LOCK ControlLock;

    //
    // This lock will be used to protect the accept / reject state
    // transitions and flags of the driver  It must be acquired
    // before a cancel lock
    //

    KSPIN_LOCK FlagsLock;

	//
	// This lock will be used to protect the interrupt buffer so that
	// there will be no reading and writing at the same time.
	//
	KSPIN_LOCK IntBufferLock;

    //
    // This points to a DPC used to complete read requests.
    //
    KDPC CompleteWriteDpc;

    //
    // This points to a DPC used to complete read requests.
    //
    KDPC CompleteReadDpc;

    //
    // This dpc is fired off if the timer for the total timeout
    // for the read expires.  It will execute a dpc routine that
    // will cause the current read to complete.
    //
    //
    KDPC TotalReadTimeoutDpc;

    //
    // This dpc is fired off if the timer for the interval timeout
    // expires.  If no more characters have been read then the
    // dpc routine will cause the read to complete.  However, if
    // more characters have been read then the dpc routine will
    // resubmit the timer.
    //
    KDPC IntervalReadTimeoutDpc;

    //
    // This dpc is fired off if the timer for the total timeout
    // for the write expires.  It will execute a dpc routine that
    // will cause the current write to complete.
    //
    //
    KDPC TotalWriteTimeoutDpc;

    //
    // This dpc is fired off if a comm error occurs.  It will
    // execute a dpc routine that will cancel all pending reads
    // and writes.
    //
    KDPC CommErrorDpc;

    //
    // This dpc is fired off if an event occurs and there was
    // a irp waiting on that event.  A dpc routine will execute
    // that completes the irp.
    //
    KDPC CommWaitDpc;

    //
    // This dpc is fired off when the transmit immediate char
    // character is given to the hardware.  It will simply complete
    // the irp.
    //
    KDPC CompleteImmediateDpc;

    //
    // This dpc is fired off if the transmit immediate char
    // character times out.  The dpc routine will "grab" the
    // irp from the isr and time it out.
    //
    KDPC TotalImmediateTimeoutDpc;

    //
    // This dpc is fired off if the timer used to "timeout" counting
    // the number of characters received after the Xoff ioctl is started
    // expired.
    //
    KDPC XoffCountTimeoutDpc;

    //
    // This dpc is fired off if the xoff counter actually runs down
    // to zero.
    //
    KDPC XoffCountCompleteDpc;

    //
    // This dpc is fired off only from device level to start off
    // a timer that will queue a dpc to check if the RTS line
    // should be lowered when we are doing transmit toggling.
    //
    KDPC StartTimerLowerRTSDpc;

    //
    // This dpc is fired off when a timer expires (after one
    // character time), so that code can be invoked that will
    // check to see if we should lower the RTS line when
    // doing transmit toggling.
    //
    KDPC PerhapsLowerRTSDpc;

    //
    // This DPC is fired to set an event stating that all other
    // DPC's have been finish for this device extension so that
    // paged code may be unlocked.
    //

    KDPC IsrUnlockPagesDpc;

    //
    // This is the kernal timer structure used to handle
    // total read request timing.
    //
    KTIMER ReadRequestTotalTimer;

    //
    // This is the kernal timer structure used to handle
    // interval read request timing.
    //
    KTIMER ReadRequestIntervalTimer;

    //
    // This is the kernal timer structure used to handle
    // total time request timing.
    //
    KTIMER WriteRequestTotalTimer;

    //
    // This is the kernal timer structure used to handle
    // total time request timing.
    //
    KTIMER ImmediateTotalTimer;

    //
    // This timer is used to timeout the xoff counter
    // io.
    //
    KTIMER XoffCountTimer;

    //
    // This timer is used to invoke a dpc one character time
    // after the timer is set.  That dpc will be used to check
    // whether we should lower the RTS line if we are doing
    // transmit toggling.
    //
    KTIMER LowerRTSTimer;

    //
    // Device stack capabilites
    //

    DEVICE_POWER_STATE DeviceStateMap[PowerSystemMaximum];

    //
    // Event to signal transition to D0 completion
    //

    KEVENT PowerD0Event;

    //
    // List of stalled IRP's
    //

    LIST_ENTRY StalledIrpQueue;

    //
    // Mutex on open status
    //

    FAST_MUTEX OpenMutex;

    //
    // Mutex on close
    //

    FAST_MUTEX CloseMutex;

    //
    // TRUE if we own power policy
    //

    BOOLEAN OwnsPowerPolicy;

    //
    // SystemWake from devcaps
    //

    SYSTEM_POWER_STATE SystemWake;

    //
    // DeviceWake from devcaps
    //

    DEVICE_POWER_STATE DeviceWake;

    //
    // Our PDO
    //

    PDEVICE_OBJECT Pdo;

    //
    // Should we enable wakeup
    //

    BOOLEAN SendWaitWake;

    //
    // Pending wait wake IRP
    //

    PIRP PendingWakeIrp;

    //
    // WMI Information
    //

    WMILIB_CONTEXT WmiLibInfo;

    //
    // Name to use as WMI identifier
    //

    UNICODE_STRING WmiIdentifier;

    //
    // WMI Comm Data
    //

    SERIAL_WMI_COMM_DATA WmiCommData;

    //
    // WMI HW Data
    //

    SERIAL_WMI_HW_DATA WmiHwData;

    //
    // WMI Performance Data
    //

    SERIAL_WMI_PERF_DATA WmiPerfData;

    //
    // Pending DPC count
    //

    ULONG DpcCount;

    //
    // Pending DPC event
    //

    KEVENT PendingDpcEvent;

    //
    // Should we expose external interfaces?
    //

    ULONG SkipNaming;
    
	
	//
    // Count of pending IRP's
    //

    ULONG PendingIRPCnt;

    //
    // Accepting requests?
    //

    ULONG DevicePNPAccept;

    //
    // No IRP's pending event
    //

    KEVENT PendingIRPEvent;

    //
    // Misc Flags
    //

    ULONG Flags;

    //
    // Open count
    //

    LONG OpenCount;

    //
    // This value is set by the read code to hold the time value
    // used for read interval timing.  We keep it in the extension
    // so that the interval timer dpc routine determine if the
    // interval time has passed for the IO.
    //
    LARGE_INTEGER IntervalTime;

    //
    // These two values hold the "constant" time that we should use
    // to delay for the read interval time.
    //
    LARGE_INTEGER ShortIntervalAmount;
    LARGE_INTEGER LongIntervalAmount;

    //
    // This holds the value that we use to determine if we should use
    // the long interval delay or the short interval delay.
    //
    LARGE_INTEGER CutOverAmount;

    //
    // This holds the system time when we last time we had
    // checked that we had actually read characters.  Used
    // for interval timing.
    //
    LARGE_INTEGER LastReadTime;

    //
    // This points the the delta time that we should use to
    // delay for interval timing.
    //
    PLARGE_INTEGER IntervalTimeToUse;


	//////////////////////////////
	//		USB definitions		//
	//////////////////////////////

	// used to save  URB of short, non-staged read/write requests
	PURB VendorUrb;

    //
    // The base address for the set of device registers
    // of the serial port.
    //
    PUCHAR Controller; //dummy variable

	ULONG ChannelNumber; // UART Channel Number ( for composite devices )

} DEVICE_EXTENSION, *PDEVICE_EXTENSION;


#define SERIAL_PNPACCEPT_OK                 0x0L
#define SERIAL_PNPACCEPT_REMOVING           0x1L
#define SERIAL_PNPACCEPT_STOPPING           0x2L
#define SERIAL_PNPACCEPT_STOPPED            0x4L
#define SERIAL_PNPACCEPT_SURPRISE_REMOVING  0x8L

#define SERIAL_PNP_ADDED                    0x0L
#define SERIAL_PNP_STARTED                  0x1L
#define SERIAL_PNP_QSTOP                    0x2L
#define SERIAL_PNP_STOPPING                 0x3L
#define SERIAL_PNP_QREMOVE                  0x4L
#define SERIAL_PNP_REMOVING                 0x5L
#define SERIAL_PNP_RESTARTING               0x6L

#define SERIAL_FLAGS_CLEAR                  0x0L
#define SERIAL_FLAGS_STARTED                0x1L
#define SERIAL_FLAGS_STOPPED                0x2L
#define SERIAL_FLAGS_BROKENHW               0x4L


// function prototypes

NTSTATUS
UsbCom_ProcessPnPIrp(
    IN PDEVICE_OBJECT DeviceObject,
    IN PIRP           Irp
    );

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品乱码免费| 欧美日韩一区二区三区在线看| www.日本不卡| 91麻豆高清视频| 色综合天天综合网天天看片| 国产精品久久久久久久久果冻传媒| 精品伦理精品一区| 久久国产精品一区二区| 国产成人综合亚洲91猫咪| 综合久久久久久久| 日韩有码一区二区三区| 欧美成人精品二区三区99精品| 免费在线观看一区二区三区| 亚洲国产一区二区三区| 日韩一级二级三级精品视频| 7777精品伊人久久久大香线蕉完整版 | 国产一区福利在线| 欧美激情一区二区三区不卡| 亚洲欧美在线视频| 日韩一区和二区| 国产一区二区三区精品欧美日韩一区二区三区| 久久久国产午夜精品| 狠狠色丁香久久婷婷综| 成人做爰69片免费看网站| 欧美国产精品一区二区三区| 中文字幕欧美日本乱码一线二线| 国产精品欧美极品| 日韩一级黄色片| 亚洲欧美综合色| 在线亚洲欧美专区二区| 捆绑调教一区二区三区| 国产亚洲一区二区三区在线观看 | 一本一道久久a久久精品| 欧美日韩在线观看一区二区 | 欧美一级艳片视频免费观看| 2022国产精品视频| 免费欧美日韩国产三级电影| 在线亚洲精品福利网址导航| 国产欧美精品一区| 激情偷乱视频一区二区三区| 欧美系列日韩一区| 中文字幕在线不卡一区| 国产伦理精品不卡| 国产网红主播福利一区二区| 免费高清在线一区| xnxx国产精品| 日本欧美在线观看| 这里只有精品视频在线观看| 亚洲男同1069视频| 紧缚奴在线一区二区三区| 欧美巨大另类极品videosbest | 精品免费日韩av| 亚洲午夜精品久久久久久久久| 91丨porny丨户外露出| 日韩一区在线看| 欧美日韩国产欧美日美国产精品| 天堂在线亚洲视频| 欧美一级高清大全免费观看| 日韩国产一二三区| 久久久美女毛片| av在线不卡免费看| 亚洲国产精品欧美一二99| 在线免费观看日韩欧美| 91毛片在线观看| 美女诱惑一区二区| 亚洲国产精品ⅴa在线观看| 欧美在线一区二区三区| 免费在线看一区| 亚洲视频狠狠干| 欧美一区二区三区四区久久| 国产.精品.日韩.另类.中文.在线.播放| 久久久久九九视频| 成人午夜激情影院| 麻豆freexxxx性91精品| 国产婷婷色一区二区三区四区| 色8久久精品久久久久久蜜| 国产一区999| 日本vs亚洲vs韩国一区三区二区 | 国产精品久久久久影院老司| 午夜国产精品影院在线观看| 欧美不卡一区二区三区四区| 色婷婷亚洲一区二区三区| 国产精品夜夜嗨| 精品系列免费在线观看| 亚洲国产精品精华液网站 | 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 国产精品嫩草99a| 欧美美女直播网站| 欧美日韩国产高清一区二区三区| 99国产精品久久| 国产成人激情av| 国产成人免费在线| 国产成人av自拍| 国产精品电影一区二区| 久久国内精品自在自线400部| 国产女同性恋一区二区| 精品国产乱码久久久久久蜜臀| 99v久久综合狠狠综合久久| 91免费版pro下载短视频| 久久99久久99精品免视看婷婷| 亚洲国产乱码最新视频| 亚洲男女毛片无遮挡| 亚洲国产精品久久不卡毛片| 午夜日韩在线观看| 久久99久久久欧美国产| 国产二区国产一区在线观看| 日韩成人免费在线| 免费成人在线视频观看| 日韩视频在线一区二区| 久久久夜色精品亚洲| 亚洲日本va午夜在线电影| 午夜精品国产更新| 国产一区91精品张津瑜| av影院午夜一区| 欧洲av在线精品| 久久99精品网久久| eeuss影院一区二区三区| 欧美日本国产一区| 亚洲欧美综合在线精品| 久久精品国产99国产精品| 成人美女视频在线观看| 91福利区一区二区三区| 91精品国产全国免费观看| 欧美激情一区三区| 亚洲在线观看免费| 成年人国产精品| 2020日本不卡一区二区视频| 一区二区三区四区视频精品免费| 日本女优在线视频一区二区 | 岛国av在线一区| 欧美三级电影一区| 一区二区三区精品在线观看| 国产一区福利在线| 在线91免费看| 日韩二区三区在线观看| 日韩欧美国产麻豆| 蜜桃av一区二区三区| 欧美疯狂性受xxxxx喷水图片| 亚洲国产成人av网| 91精品办公室少妇高潮对白| 99re热这里只有精品视频| 国产精品亲子乱子伦xxxx裸| 日韩国产精品久久久| 欧美一区二区三区系列电影| 亚洲欧洲日韩女同| 成人h精品动漫一区二区三区| 一区二区在线电影| 欧美xxxxx牲另类人与| 91丨porny丨国产入口| 亚洲视频一区二区在线| 欧美日韩成人激情| 狠狠色丁香婷综合久久| 1区2区3区欧美| 精品国产乱子伦一区| 在线一区二区观看| 99精品视频在线免费观看| 日韩**一区毛片| 午夜精品久久久久久久久久| 亚洲欧洲韩国日本视频| 亚洲国产精品高清| 国产欧美一区二区精品仙草咪| 欧美高清hd18日本| 欧美精品乱人伦久久久久久| 色欧美乱欧美15图片| 91在线精品秘密一区二区| 丰满亚洲少妇av| 国产高清不卡一区二区| 蜜桃久久久久久久| 国产在线不卡一区| 日本成人在线看| 国产一区二区中文字幕| 国产专区综合网| 国产在线精品免费av| 精品国精品自拍自在线| 亚洲欧洲精品一区二区三区| 18涩涩午夜精品.www| 欧美一级二级三级蜜桃| 欧美精品在线观看一区二区| 在线观看www91| 555www色欧美视频| 亚洲午夜在线视频| 手机精品视频在线观看| 色先锋aa成人| 中文字幕中文在线不卡住| 国产精品小仙女| 久久久亚洲午夜电影| 国产在线一区观看| 欧美成人艳星乳罩| 麻豆国产91在线播放| 制服丝袜国产精品| 日本不卡视频在线观看| 91精品在线免费观看| 三级欧美在线一区| 日韩视频在线一区二区| 亚洲精品久久久蜜桃| thepron国产精品| 日韩一级高清毛片| 日韩精品三区四区| 69久久99精品久久久久婷婷| 一区二区三区国产精华|