{"id":65500,"date":"2026-01-25T05:48:22","date_gmt":"2026-01-24T21:48:22","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/65500.html"},"modified":"2026-01-25T05:48:22","modified_gmt":"2026-01-24T21:48:22","slug":"pci9x5x%e9%a9%b1%e5%8a%a8%e7%a7%bb%e6%a4%8d%e6%94%af%e6%8c%81pci9054%e5%9c%a8win7%e4%b8%8b%e4%bd%bf%e7%94%a82","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/65500.html","title":{"rendered":"PCI9x5x\u9a71\u52a8\u79fb\u690d\u652f\u6301PCI9054\u5728win7\u4e0b\u4f7f\u75282"},"content":{"rendered":"<p>\u63a5\u4e0a\u6587&#xff0c;\u672c\u6587\u7ae0\u7ee7\u7eed\u8bb0\u5f55\u4e2d\u6cf0\u8054\u521b\u7684\u6570\u636e\u91c7\u96c6\u5361\u9a71\u52a8\u7ffb\u65b0\u8fc7\u7a0b\u3002<\/p>\n<h3>\u4e2d\u65ad\u521d\u59cb\u5316\u90e8\u5206\u4ee3\u7801\u79fb\u690d<\/h3>\n<p>\u5206\u6790PLX9x5x\u6e90\u7801\u53ef\u77e5&#xff0c;\u4e2d\u65ad\u521d\u59cb\u5316\u8c03\u7528\u6d41\u7a0b\u5982\u4e0b&#xff1a;<br \/>\nPLxEvtDeviceAdd-PLxInitializeDeviceExtension-PLxInterruptCreate<br \/>\n\u5176\u4e2d\u5177\u4f53\u521d\u59cb\u5316\u4ee3\u7801\u5728PLxInterruptCreate\u51fd\u6570\u4e2d&#xff0c;\u8fd9\u90e8\u5206\u662f\u7eaf\u6846\u67b6\u6d41\u7a0b\u65e0\u9700\u4fee\u6539&#xff0c;\u76f4\u63a5\u5c31\u53ef\u4ee5\u4f7f\u7528&#xff1a;<\/p>\n<p>NTSTATUS<br \/>\n<span class=\"token function\">PLxInterruptCreate<\/span><span class=\"token punctuation\">(<\/span><br \/>\n    IN PDEVICE_EXTENSION DevExt<br \/>\n    <span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>WdfInterruptCreate\u51fd\u6570\u5c06\u521b\u5efa\u8bbe\u5907\u4e2d\u65ad\u5bf9\u8c61&#xff0c;\u540e\u7eed\u548c\u4e2d\u65ad\u76f8\u5173\u64cd\u4f5c\u90fd\u8981\u7528\u5230DevExt-&gt;Interrupt\u3002<br \/>\nWdfInterruptCreate\u51fd\u6570\u6210\u529f\u8fd4\u56de\u4e4b\u540e&#xff0c;WDF\u6846\u67b6\u4f1a\u5728\u7cfb\u7edf\u52a0\u8f7d\u8bbe\u5907\u65f6\u8fde\u63a5\u4e2d\u65ad&#xff0c;\u8fde\u63a5\u4e2d\u65ad\u540e\u8c03\u7528PLxEvtInterruptEnable\u51fd\u6570&#xff1b;\u7cfb\u7edf\u5378\u8f7d\u8bbe\u5907\u65f6\u8c03\u7528PLxEvtInterruptDisable\u51fd\u6570\u540e\u65ad\u5f00\u4e2d\u65ad\u3002<\/p>\n<p>\u793a\u4f8b\u7a0b\u5e8f\u5df2\u7ecf\u5728PLxEvtInterruptEnable\u51fd\u6570\u4e2d\u5bf9\u4e2d\u65ad\u5bc4\u5b58\u5668\u8fdb\u884c\u4e86\u4f7f\u80fd\u64cd\u4f5c&#xff0c;\u8fd9\u4e00\u70b9PCI9054\u548cPCI9656\u517c\u5bb9&#xff0c;\u6240\u4ee5\u5ef6\u7528\u6b64\u4ee3\u7801\u5373\u53ef&#xff0c;\u540c\u65f6\u9700\u8981\u52a0\u4e0a\u672c\u5730\u603b\u7ebf\u7684\u4e2d\u65ad\u4f7f\u80fd\u3002<\/p>\n<p>intCSR<span class=\"token punctuation\">.<\/span>bits<span class=\"token punctuation\">.<\/span>LocalIntInputEnable <span class=\"token operator\">&#061;<\/span> TRUE<span class=\"token punctuation\">;<\/span><\/p>\n<p>\u793a\u4f8b\u7a0b\u5e8f\u5df2\u7ecf\u5728PLxEvtInterruptDisable\u51fd\u6570\u4e2d\u5bf9\u4e2d\u65ad\u5bc4\u5b58\u5668\u8fdb\u884c\u4e86\u7981\u6b62\u64cd\u4f5c&#xff0c;\u8fd9\u4e00\u70b9PCI9054\u548cPCI9656\u517c\u5bb9&#xff0c;\u6240\u4ee5\u5ef6\u7528\u6b64\u4ee3\u7801\u5373\u53ef\u3002<\/p>\n<p>intCSR<span class=\"token punctuation\">.<\/span>bits<span class=\"token punctuation\">.<\/span>LocalIntInputEnable <span class=\"token operator\">&#061;<\/span> FALSE<span class=\"token punctuation\">;<\/span><\/p>\n<p>\u5bf9\u4e8e\u4e2d\u6cf0\u8054\u521b\u7684\u8001\u4ea7\u54c1\u4e0a\u4f7f\u80fd\u548c\u7981\u6b62\u4e2d\u65ad\u64cd\u4f5c&#xff0c;\u5219\u6253\u7b97\u8f6c\u79fb\u5230\u5e94\u7528\u5c42\u8fdb\u884c&#xff0c;\u8fd9\u6837\u53ef\u4ee5\u589e\u52a0\u9a71\u52a8\u7684\u9002\u914d\u6027\u3002<\/p>\n<h3>\u4e2d\u65ad\u4e8b\u4ef6\u4ee3\u7801\u90e8\u5206\u79fb\u690d<\/h3>\n<p>\u8001\u9a71\u52a8\u5728\u5e94\u7528\u5c42\u521b\u5efa\u4e8b\u4ef6\u53e5\u67c4&#xff0c;\u4f20\u8f93\u7ed9\u5185\u6838&#xff0c;\u5728\u5bf9\u5e94\u4e2d\u65ad\u53d1\u751f\u65f6\u89e6\u53d1\u4e8b\u4ef6\u53e5\u67c4&#xff0c;\u4ece\u800c\u7b80\u5316\u5e94\u7528\u5c42\u7f16\u7a0b&#xff0c;\u65b0\u9a71\u52a8\u9700\u8981\u5b9e\u73b0\u8fd9\u4e2a\u529f\u80fd&#xff0c;<\/p>\n<h4>1. \u516c\u5171\u5b9a\u4e49 (Public.h)<\/h4>\n<p>\u5728 Public.h \u4e2d\u5b9a\u4e49\u76f8\u5173\u7684 IOCTL \u548c\u5e38\u91cf&#xff1a;<\/p>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">EVENT_COUNT<\/span>                <span class=\"token expression\"><span class=\"token number\">3L<\/span><\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">EVENT_SFifo<\/span>                <span class=\"token expression\"><span class=\"token number\">0L<\/span><\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">EVENT_ALARM<\/span>                <span class=\"token expression\"><span class=\"token number\">1L<\/span><\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">EVENT_TRIP<\/span>                 <span class=\"token expression\"><span class=\"token number\">2L<\/span><\/span><\/span><\/p>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">PCI8KPLX_IOCTL_OPEN_IRQ<\/span> <span class=\"token expression\"><span class=\"token function\">CTL_CODE<\/span><span class=\"token punctuation\">(<\/span>FILE_DEVICE_UNKNOWN<span class=\"token punctuation\">,<\/span> <span class=\"token number\">0x805<\/span><span class=\"token punctuation\">,<\/span> METHOD_BUFFERED<span class=\"token punctuation\">,<\/span> FILE_ANY_ACCESS<span class=\"token punctuation\">)<\/span><\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">PCI8KPLX_IOCTL_CLOSE_IRQ<\/span> <span class=\"token expression\"><span class=\"token function\">CTL_CODE<\/span><span class=\"token punctuation\">(<\/span>FILE_DEVICE_UNKNOWN<span class=\"token punctuation\">,<\/span> <span class=\"token number\">0x806<\/span><span class=\"token punctuation\">,<\/span> METHOD_BUFFERED<span class=\"token punctuation\">,<\/span> FILE_ANY_ACCESS<span class=\"token punctuation\">)<\/span><\/span><\/span><\/p>\n<h4>2. \u8bbe\u5907\u4e0a\u4e0b\u6587\u6269\u5c55 (Private.h)<\/h4>\n<p>\u5728 DEVICE_EXTENSION \u7ed3\u6784\u4f53\u4e2d\u6dfb\u52a0\u7528\u4e8e\u5b58\u50a8\u5185\u6838\u4e8b\u4ef6\u5bf9\u8c61\u7684\u6307\u9488\u6570\u7ec4&#xff1a;<\/p>\n<p><span class=\"token keyword\">typedef<\/span> <span class=\"token keyword\">struct<\/span> <span class=\"token class-name\">_DEVICE_EXTENSION<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token comment\">\/\/ &#8230; \u73b0\u6709\u6210\u5458 &#8230;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/\u7528\u4e8e\u5b58\u50a8\u5185\u6838\u4e8b\u4ef6\u5bf9\u8c61\u6307\u9488<\/span><br \/>\n    PKEVENT m_Events<span class=\"token punctuation\">[<\/span>EVENT_COUNT<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token punctuation\">}<\/span> DEVICE_EXTENSION<span class=\"token punctuation\">,<\/span> <span class=\"token operator\">*<\/span>PDEVICE_EXTENSION<span class=\"token punctuation\">;<\/span><\/p>\n<h4>3. IOCTL \u5904\u7406\u903b\u8f91 (Control.c)<\/h4>\n<p>\u5728 PLxEvtIoDeviceControl \u4e2d\u6dfb\u52a0\u5bf9 PCI8KPLX_IOCTL_OPEN_IRQ\u548cPCI8KPLX_IOCTL_CLOSE_IRQ \u7684\u5206\u53d1:<\/p>\n<p><span class=\"token comment\">\/**<br \/>\n * \u4e3b\u8bbe\u5907\u63a7\u5236\u5165\u53e3\u70b9<br \/>\n *\/<\/span><br \/>\nVOID<br \/>\n<span class=\"token function\">PLxEvtIoDeviceControl<\/span><span class=\"token punctuation\">(<\/span>\u2026\u2026<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    \u2026\u2026<\/p>\n<p>    <span class=\"token keyword\">switch<\/span> <span class=\"token punctuation\">(<\/span>IoControlCode<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token keyword\">case<\/span> PCI8KPLX_IOCTL_OPEN_IRQ<span class=\"token operator\">:<\/span><br \/>\n            status <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">PCI8KPLX_IOCTL_OPEN_IRQ_Handler<\/span><span class=\"token punctuation\">(<\/span>Request<span class=\"token punctuation\">,<\/span> devExt<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n            <span class=\"token keyword\">break<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token keyword\">case<\/span> PCI8KPLX_IOCTL_CLOSE_IRQ<span class=\"token operator\">:<\/span><br \/>\n            status <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">PCI8KPLX_IOCTL_CLOSE_IRQ_Handler<\/span><span class=\"token punctuation\">(<\/span>Request<span class=\"token punctuation\">,<\/span> devExt<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n            <span class=\"token keyword\">break<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>        <span class=\"token comment\">\/\/ &#8230; \u5176\u4ed6 case &#8230;<\/span><\/p>\n<p>        <span class=\"token keyword\">default<\/span><span class=\"token operator\">:<\/span><br \/>\n            status <span class=\"token operator\">&#061;<\/span> STATUS_INVALID_DEVICE_REQUEST<span class=\"token punctuation\">;<\/span><br \/>\n            <span class=\"token keyword\">break<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token function\">WdfRequestComplete<\/span><span class=\"token punctuation\">(<\/span>Request<span class=\"token punctuation\">,<\/span> status<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u5e76\u5b9e\u73b0\u5904\u7406\u51fd\u6570&#xff1a;<\/p>\n<p><span class=\"token comment\">\/**<br \/>\n * \u529f\u80fd&#xff1a;\u5c06\u5e94\u7528\u5c42\u4f20\u5165\u7684 ULONG \u53e5\u67c4\u6570\u7ec4\u8f6c\u6362\u4e3a\u5185\u6838 PKEVENT \u5bf9\u8c61\u6570\u7ec4<br \/>\n * \u6ce8\u610f&#xff1a;\u6b64\u65b9\u6cd5\u4f7f\u7528\u56fa\u5b9a\u5927\u5c0f\u7684\u6570\u7ec4&#xff0c;\u9002\u7528\u4e8e\u4e8b\u4ef6\u7c7b\u578b\u548c\u6570\u91cf\u56fa\u5b9a\u7684\u573a\u666f\u3002<br \/>\n *      \u5bf9\u786c\u4ef6\u5bc4\u5b58\u5668\u7684\u64cd\u4f5c\u653e\u5728\u5e94\u7528\u5c42dll\u4e2d\u3002<br \/>\n * \u517c\u5bb9\u6027&#xff1a;\u4f7f\u7528 (HANDLE)(ULONG_PTR)ulH \u786e\u4fdd 32 \u4f4d\u5e94\u7528\u5728 64 \u4f4d\u7cfb\u7edf\u4e0a\u7684\u517c\u5bb9\u6027\u3002<br \/>\n *\/<\/span><br \/>\nNTSTATUS<br \/>\n<span class=\"token function\">PCI8KPLX_IOCTL_OPEN_IRQ_Handler<\/span><span class=\"token punctuation\">(<\/span><br \/>\n    _In_ WDFREQUEST Request<span class=\"token punctuation\">,<\/span><br \/>\n    _In_ PDEVICE_EXTENSION DevExt<br \/>\n<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    NTSTATUS status <span class=\"token operator\">&#061;<\/span> STATUS_SUCCESS<span class=\"token punctuation\">;<\/span><br \/>\n    PULONG pBuff <span class=\"token operator\">&#061;<\/span> <span class=\"token constant\">NULL<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ \u6307\u5411\u8f93\u5165\u7f13\u51b2\u533a&#xff0c;\u5176\u4e2d\u5305\u542b EVENT_COUNT \u4e2a ULONG \u53e5\u67c4<\/span><br \/>\n    <span class=\"token class-name\">size_t<\/span> bufferSize <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    ULONG i<span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ 1. \u83b7\u53d6\u8f93\u5165\u7f13\u51b2\u533a (\u9884\u671f\u5305\u542b EVENT_COUNT \u4e2a ULONG \u53e5\u67c4)<\/span><br \/>\n    status <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">WdfRequestRetrieveInputBuffer<\/span><span class=\"token punctuation\">(<\/span>Request<span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">sizeof<\/span><span class=\"token punctuation\">(<\/span>ULONG<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">*<\/span> EVENT_COUNT<span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">(<\/span>PVOID<span class=\"token operator\">*<\/span><span class=\"token punctuation\">)<\/span><span class=\"token operator\">&amp;<\/span>pBuff<span class=\"token punctuation\">,<\/span> <span class=\"token operator\">&amp;<\/span>bufferSize<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token operator\">!<\/span><span class=\"token function\">NT_SUCCESS<\/span><span class=\"token punctuation\">(<\/span>status<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> status<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ 2. \u904d\u5386\u5e76\u5904\u7406\u53e5\u67c4<\/span><br \/>\n    <span class=\"token keyword\">for<\/span> <span class=\"token punctuation\">(<\/span>i <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span> i <span class=\"token operator\">&lt;<\/span> EVENT_COUNT<span class=\"token punctuation\">;<\/span> i<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        ULONG ulH <span class=\"token operator\">&#061;<\/span> pBuff<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        HANDLE h <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">(<\/span>HANDLE<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">(<\/span>ULONG_PTR<span class=\"token punctuation\">)<\/span>ulH<span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ \u5173\u952e\u8f6c\u6362&#xff0c;\u786e\u4fdd64\u4f4d\u517c\u5bb9\u6027<\/span><\/p>\n<p>        <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>h <span class=\"token operator\">!&#061;<\/span> <span class=\"token constant\">NULL<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token comment\">\/\/ \u5982\u679c\u8be5\u4f4d\u7f6e\u5df2\u5b58\u5728\u5f15\u7528\u7684\u4e8b\u4ef6\u5bf9\u8c61&#xff0c;\u5148\u91ca\u653e\u65e7\u5f15\u7528<\/span><br \/>\n            <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>DevExt<span class=\"token operator\">-&gt;<\/span>m_Events<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">!&#061;<\/span> <span class=\"token constant\">NULL<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n                <span class=\"token function\">ObDereferenceObject<\/span><span class=\"token punctuation\">(<\/span>DevExt<span class=\"token operator\">-&gt;<\/span>m_Events<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n                DevExt<span class=\"token operator\">-&gt;<\/span>m_Events<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token constant\">NULL<\/span><span class=\"token punctuation\">;<\/span><br \/>\n            <span class=\"token punctuation\">}<\/span><\/p>\n<p>            <span class=\"token comment\">\/\/ \u5c06\u7528\u6237\u6001\u53e5\u67c4\u8f6c\u6362\u4e3a\u5185\u6838\u4e8b\u4ef6\u5bf9\u8c61\u6307\u9488<\/span><br \/>\n            status <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">ObReferenceObjectByHandle<\/span><span class=\"token punctuation\">(<\/span><br \/>\n                h<span class=\"token punctuation\">,<\/span><br \/>\n                EVENT_MODIFY_STATE<span class=\"token punctuation\">,<\/span><br \/>\n                <span class=\"token operator\">*<\/span>ExEventObjectType<span class=\"token punctuation\">,<\/span><br \/>\n                UserMode<span class=\"token punctuation\">,<\/span><br \/>\n                <span class=\"token punctuation\">(<\/span>PVOID<span class=\"token operator\">*<\/span><span class=\"token punctuation\">)<\/span><span class=\"token operator\">&amp;<\/span>DevExt<span class=\"token operator\">-&gt;<\/span>m_Events<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n                <span class=\"token constant\">NULL<\/span><br \/>\n            <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>            <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token operator\">!<\/span><span class=\"token function\">NT_SUCCESS<\/span><span class=\"token punctuation\">(<\/span>status<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n                DevExt<span class=\"token operator\">-&gt;<\/span>m_Events<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token constant\">NULL<\/span><span class=\"token punctuation\">;<\/span><br \/>\n                <span class=\"token keyword\">break<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ \u5982\u679c\u67d0\u4e2a\u53e5\u67c4\u8f6c\u6362\u5931\u8d25&#xff0c;\u505c\u6b62\u5904\u7406\u5e76\u8fd4\u56de\u9519\u8bef<\/span><br \/>\n            <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token keyword\">return<\/span> status<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token comment\">\/**<br \/>\n * \u4e8b\u4ef6\u53e5\u67c4\u6e05\u7406\u51fd\u6570 (\u56fa\u5b9a\u6570\u7ec4\u7248)<br \/>\n * \u529f\u80fd&#xff1a;\u91ca\u653e m_Events \u6570\u7ec4\u4e2d\u6240\u6709\u5b58\u50a8\u7684\u4e8b\u4ef6\u5bf9\u8c61\u5f15\u7528&#xff0c;\u5e76\u5c06\u6307\u9488\u7f6e\u4e3a NULL\u3002<br \/>\n * \u6ce8\u610f&#xff1a;\u6b64\u64cd\u4f5c\u4f1a\u6e05\u9664\u6240\u6709\u5df2\u6ce8\u518c\u7684\u4e8b\u4ef6\u53e5\u67c4\u3002<br \/>\n *\/<\/span><br \/>\nNTSTATUS<br \/>\n<span class=\"token function\">PCI8KPLX_IOCTL_CLOSE_IRQ_Handler<\/span><span class=\"token punctuation\">(<\/span><br \/>\n    _In_ WDFREQUEST Request<span class=\"token punctuation\">,<\/span><br \/>\n    _In_ PDEVICE_EXTENSION DevExt<br \/>\n<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    NTSTATUS status <span class=\"token operator\">&#061;<\/span> STATUS_SUCCESS<span class=\"token punctuation\">;<\/span><br \/>\n    ULONG i<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token comment\">\/\/\u672c\u51fd\u6570\u4e0d\u9700\u8981\u548c\u5e94\u7528\u5c42\u4ea4\u4e92&#xff0c;\u6240\u4ee5\u7528\u4e0d\u5230\u8fd9\u4e2a\u53c2\u6570<\/span><br \/>\n<span class=\"token function\">UNREFERENCED_PARAMETER<\/span><span class=\"token punctuation\">(<\/span>Request<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token comment\">\/\/ \u4e3a\u4e86\u4fdd\u8bc1\u64cd\u4f5c\u7684\u539f\u5b50\u6027&#xff0c;\u53ef\u80fd\u9700\u8981\u5728\u6b64\u5904\u6dfb\u52a0\u8bbe\u5907\u7ea7\u7684\u9501&#xff0c;\u5982\u679c m_Events \u8bbf\u95ee\u9700\u8981\u540c\u6b65\u7684\u8bdd<\/span><br \/>\n    <span class=\"token comment\">\/\/ WdfWaitLockAcquire(DevExt-&gt;SomeLock, NULL);<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u904d\u5386 m_Events \u6570\u7ec4<\/span><br \/>\n    <span class=\"token keyword\">for<\/span> <span class=\"token punctuation\">(<\/span>i <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span> i <span class=\"token operator\">&lt;<\/span> EVENT_COUNT<span class=\"token punctuation\">;<\/span> i<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>DevExt<span class=\"token operator\">-&gt;<\/span>m_Events<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">!&#061;<\/span> <span class=\"token constant\">NULL<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token comment\">\/\/ \u91ca\u653e\u5bf9\u8be5\u4e8b\u4ef6\u5bf9\u8c61\u7684\u5f15\u7528&#xff0c;\u9632\u6b62\u5185\u5b58\u6cc4\u6f0f<\/span><br \/>\n            <span class=\"token function\">ObDereferenceObject<\/span><span class=\"token punctuation\">(<\/span>DevExt<span class=\"token operator\">-&gt;<\/span>m_Events<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n            <span class=\"token comment\">\/\/ \u6e05\u7a7a\u6307\u9488<\/span><br \/>\n            DevExt<span class=\"token operator\">-&gt;<\/span>m_Events<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token constant\">NULL<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ WdfWaitLockRelease(DevExt-&gt;SomeLock);<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u6b64 IOCTL \u901a\u5e38\u6ca1\u6709\u8f93\u51fa\u6570\u636e&#xff0c;\u4e0d\u9700\u8981\u8c03\u7528 WdfRequestSetInformation<\/span><br \/>\n    <span class=\"token comment\">\/\/ \u76f4\u63a5\u8fd4\u56de\u6210\u529f\u72b6\u6001<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> status<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h4>4. \u6e05\u7406\u4e8b\u4ef6\u9632\u6b62\u5185\u5b58\u6cc4\u6f0f<\/h4>\n<p>\u5728 PlxCleanupDeviceExtension \u4e2d\u8fdb\u884c\u6e05\u7406<\/p>\n<p>VOID<br \/>\n<span class=\"token function\">PlxCleanupDeviceExtension<\/span><span class=\"token punctuation\">(<\/span><br \/>\n    _In_ PDEVICE_EXTENSION DevExt<br \/>\n<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    ULONG i<span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u904d\u5386\u5e76\u91ca\u653e\u4e8b\u4ef6\u5bf9\u8c61<\/span><br \/>\n    <span class=\"token keyword\">for<\/span> <span class=\"token punctuation\">(<\/span>i <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span> i <span class=\"token operator\">&lt;<\/span> EVENT_COUNT<span class=\"token punctuation\">;<\/span> i<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>DevExt<span class=\"token operator\">-&gt;<\/span>m_Events<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">!&#061;<\/span> <span class=\"token constant\">NULL<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token function\">ObDereferenceObject<\/span><span class=\"token punctuation\">(<\/span>DevExt<span class=\"token operator\">-&gt;<\/span>m_Events<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n            DevExt<span class=\"token operator\">-&gt;<\/span>m_Events<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token constant\">NULL<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ \u6e05\u7a7a\u6307\u9488\u662f\u4e2a\u597d\u4e60\u60ef<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ &#8230; \u5176\u4ed6\u6e05\u7406\u4ee3\u7801 &#8230;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h4>5. \u4e2d\u65ad\u89e6\u53d1\u903b\u8f91 (IsrDpc.c \u53c2\u8003)<\/h4>\n<p>\u5728 DPC (\u5982 PLxEvtInterruptDpc) \u4e2d&#xff0c;\u6839\u636e\u786c\u4ef6\u72b6\u6001\u89e6\u53d1\u76f8\u5e94\u7684\u4e8b\u4ef6&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ \u793a\u4f8b&#xff1a;\u89e6\u53d1 SFIFO \u89e6\u53d1\u503c\u4e8b\u4ef6<\/span><br \/>\n<span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>DevExt<span class=\"token operator\">-&gt;<\/span>m_Events<span class=\"token punctuation\">[<\/span>EVENT_SFifo<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">!&#061;<\/span> <span class=\"token constant\">NULL<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token function\">KeSetEvent<\/span><span class=\"token punctuation\">(<\/span>DevExt<span class=\"token operator\">-&gt;<\/span>m_Events<span class=\"token punctuation\">[<\/span>EVENT_SFifo<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> IO_NO_INCREMENT<span class=\"token punctuation\">,<\/span> FALSE<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h3>5. \u6ce8\u610f\u4e8b\u9879<\/h3>\n<li>64\u4f4d\u517c\u5bb9\u6027&#xff1a;\u4ee3\u7801\u4e2d\u4f7f\u7528\u4e86 (HANDLE)(ULONG_PTR)ulH&#xff0c;\u786e\u4fdd\u4e86 32 \u4f4d\u5e94\u7528\u7a0b\u5e8f\u5728 64 \u4f4d\u7cfb\u7edf\u4e0b\u8fd0\u884c\u65f6\u7684\u53e5\u67c4\u5bf9\u9f50\u3002<\/li>\n<li>\u8d44\u6e90\u91ca\u653e&#xff1a;\u5728\u9a71\u52a8\u5378\u8f7d\u6216\u8bbe\u5907\u6e05\u7406\u56de\u8c03&#xff08;\u5982 PlxEvtDeviceCleanup&#xff09;\u4e2d&#xff0c;\u5e94\u904d\u5386 m_Events \u5e76\u5bf9\u975e\u7a7a\u5143\u7d20\u8c03\u7528 ObDereferenceObject&#xff0c;\u4ee5\u9632\u6b62\u5185\u6838\u5185\u5b58\u6cc4\u6f0f\u3002<\/li>\n<li>\u56fa\u5b9a\u5927\u5c0f\u9650\u5236&#xff1a;\u6b64\u65b9\u6848\u4f7f\u7528\u56fa\u5b9a\u5927\u5c0f\u7684\u6570\u7ec4 m_Events[EVENT_COUNT]&#xff0c;\u5982\u679c\u5e94\u7528\u5c42\u9700\u8981\u7ba1\u7406\u7684\u4e8b\u4ef6\u6570\u91cf\u8d85\u8fc7 EVENT_COUNT&#xff0c;\u5219\u9700\u8981\u589e\u5927\u8be5\u5e38\u91cf\u5e76\u91cd\u65b0\u7f16\u8bd1\u9a71\u52a8\u548c\u5e94\u7528\u5c42\u3002<\/li>\n<li>\u5e94\u7528\u5c42\u517c\u5bb9\u6027&#xff1a;\u6b64\u65b9\u6848\u5047\u5b9a\u5e94\u7528\u5c42\u53d1\u9001\u7684\u662f ULONG \u7c7b\u578b\u7684\u53e5\u67c4\u6570\u7ec4\u3002\u5b83\u4e3b\u8981\u517c\u5bb9\u53d1\u9001\u6b64\u7c7b\u6570\u7ec4\u768432\u4f4d\u5e94\u7528\u3002\u5982\u679c64\u4f4d\u5e94\u7528\u4e5f\u53d1\u9001\u76f8\u540c\u7684 ULONG \u6570\u7ec4&#xff08;\u4f8b\u5982&#xff0c;\u5e94\u7528\u5c42\u672a\u533a\u5206\u4f4d\u6570&#xff09;&#xff0c;\u5219\u5176\u53e5\u67c4\u5fc5\u987b\u662f\u6709\u6548\u768432\u4f4d\u517c\u5bb9\u503c&#xff08;\u5982WoW64\u5b50\u7cfb\u7edf\u63d0\u4f9b\u7684\u53e5\u67c4&#xff09;\u3002<\/li>\n<h3>\u5e94\u7528\u5c42\u8981\u505a\u7684\u548c\u4e2d\u65ad\u76f8\u5173\u7684\u4e8b\u60c5<\/h3>\n<p>\u8001\u9a71\u52a8\u4e2d\u4f7f\u7528\u5185\u6838\u53d8\u91cf\u6765\u4fdd\u5b58\u4e00\u4e9b\u6570\u636e&#xff0c;\u4f1a\u589e\u52a0\u9a71\u52a8\u590d\u6742\u5ea6&#xff0c;\u6240\u4ee5\u90fd\u8f6c\u79fb\u5230\u5e94\u7528\u5c42&#xff0c;\u548c\u4e2d\u65ad\u6709\u5173\u7684\u6709\u63a7\u5236\u5b57&#xff0c;\u53d8\u91cf&#xff0c;\u56e0\u6b64\u5728dll\u4e2d\u58f0\u660e\u5168\u5c40\u53d8\u91cf<\/p>\n<p><span class=\"token comment\">\/\/\u672c\u6765\u662f\u5185\u6838\u4e2d\u9700\u8981\u4fdd\u5b58\u7684\u5185\u5bb9&#xff0c;\u6539\u6210\u5e94\u7528\u5c42\u4fdd\u5b58<\/span><br \/>\nULONG g_ulCtrlWord<span class=\"token punctuation\">[<\/span>MAX_CARD_COUNT<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\">\/\/\u4e3a\u4e86\u540e\u9762\u65b9\u4fbf\u9605\u8bfb\u4ee3\u7801&#xff0c;\u5c06\u8d4b\u503c\u548c\u8bfb\u53d6\u90fd\u5c01\u88c5\u6210\u51fd\u6570<\/span><br \/>\n<span class=\"token keyword\">void<\/span> <span class=\"token function\">SetCtrlWord<\/span><span class=\"token punctuation\">(<\/span>ULONG cardNo<span class=\"token punctuation\">,<\/span> ULONG ulCtrlWord<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n<span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>cardNo <span class=\"token operator\">&gt;<\/span> MAX_CARD_COUNT<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">return<\/span><span class=\"token punctuation\">;<\/span><br \/>\ng_ulCtrlWord<span class=\"token punctuation\">[<\/span>cardNo<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> ulCtrlWord<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>ULONG <span class=\"token function\">GetCtrlWord<\/span><span class=\"token punctuation\">(<\/span>ULONG cardNo<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n<span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>cardNo <span class=\"token operator\">&gt;<\/span> MAX_CARD_COUNT<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">return<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">return<\/span> g_ulCtrlWord<span class=\"token punctuation\">[<\/span>cardNo<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u8001\u9a71\u52a8\u4e2d\u6709\u4e00\u4e2aInitIRQ\u51fd\u6570&#xff0c;\u53ea\u662f\u64cd\u4f5c\u4e86\u63a7\u5236\u5b57\u53d8\u91cf&#xff0c;\u65b0\u9a71\u52a8\u5c06\u5185\u6838\u64cd\u4f5c\u4fee\u6539\u6210\u5e94\u7528\u5c42\u7684\u53d8\u91cf\u64cd\u4f5c<\/p>\n<p><span class=\"token comment\">\/\/\u6539\u53d8\u63a7\u5236\u5b57\u4e2d\u7684\u4e2d\u65ad\u76f8\u5173\u4f4d<\/span><br \/>\n    <span class=\"token keyword\">unsigned<\/span> <span class=\"token keyword\">long<\/span> ulCtrlWord <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">GetCtrlWord<\/span><span class=\"token punctuation\">(<\/span>cardNO<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\nulCtrlWord <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">SET_ULONG_BITS<\/span><span class=\"token punctuation\">(<\/span> ulCtrlWord<span class=\"token punctuation\">,<\/span> IRQ_MASK<span class=\"token punctuation\">,<\/span> IRQ<span class=\"token punctuation\">,<\/span> irqSource <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token function\">SetCtrlWord<\/span><span class=\"token punctuation\">(<\/span>cardNO<span class=\"token punctuation\">,<\/span> ulCtrlWord<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u8001\u9a71\u52a8\u4e2d\u4f7f\u7528OpenIRQ\u5c06\u4e2d\u65ad\u76f8\u5173\u4e8b\u4ef6\u4f20\u9012\u5230\u5185\u6838&#xff0c;\u540c\u65f6\u5728\u5185\u6838\u4e2d\u8bbe\u7f6ePCI9054\u7684\u672c\u5730\u63a7\u5236\u5b57\u4f7f\u80fdFPGA\u4e2d\u65ad\u3002\u65b0\u9a71\u52a8\u4e2d\u5185\u6838\u53ea\u662f\u63a5\u6536\u4e2d\u65ad\u76f8\u5173\u4e8b\u4ef6&#xff0c;\u7136\u540e\u5728\u5e94\u7528\u5c42\u4f7f\u80fdFPGA\u4e2d\u65ad\u3002<\/p>\n<p><span class=\"token comment\">\/\/\u5728DeviceIoControl\u4e4b\u540e\u5c06\u63a7\u5236\u5b57\u5199\u5165\u786c\u4ef6<\/span><br \/>\n<span class=\"token comment\">\/\/\u4f7f\u80fd\u4e4b\u524d\u8bbe\u7f6e\u597d\u7684\u4e2d\u65ad<\/span><br \/>\n<span class=\"token function\">WRITED<\/span><span class=\"token punctuation\">(<\/span>cardNO<span class=\"token punctuation\">,<\/span> OFF_CTRLWORD<span class=\"token punctuation\">,<\/span> <span class=\"token function\">GetCtrlWord<\/span><span class=\"token punctuation\">(<\/span>cardNO<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u63a5\u4e0b\u6765\u8981\u79fb\u690d\u5e94\u7528\u5c42\u8bbf\u95ee\u786c\u4ef6\u5bc4\u5b58\u5668\u7684\u4ee3\u7801<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a5\u4e0a\u6587&#xff0c;\u672c\u6587\u7ae0\u7ee7\u7eed\u8bb0\u5f55\u4e2d\u6cf0\u8054\u521b\u7684\u6570\u636e\u91c7\u96c6\u5361\u9a71\u52a8\u7ffb\u65b0\u8fc7\u7a0b\u3002<br \/>\n\u4e2d\u65ad\u521d\u59cb\u5316\u90e8\u5206\u4ee3\u7801\u79fb\u690d<br \/>\n\u5206\u6790PLX9x5x\u6e90\u7801\u53ef\u77e5&#xff0c;\u4e2d\u65ad\u521d\u59cb\u5316\u8c03\u7528\u6d41\u7a0b\u5982\u4e0b&#xff1a;<br \/>\nPLxEvtDeviceAdd-PLxInitializeDeviceExtension-PLxInterruptCreate<br \/>\n\u5176\u4e2d\u5177\u4f53\u521d\u59cb\u5316\u4ee3\u7801\u5728PLxInterruptCreate\u51fd\u6570\u4e2d&#xff0c;\u8fd9\u90e8\u5206\u662f\u7eaf\u6846\u67b6\u6d41\u7a0b\u65e0\u9700\u4fee\u6539&#xff0c;\u76f4\u63a5\u5c31\u53ef\u4ee5\u4f7f\u7528&#xff1a;<br \/>\nNTSTATUS<br \/>\nPL<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1363],"topic":[],"class_list":["post-65500","post","type-post","status-publish","format-standard","hentry","category-server","tag-1363"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PCI9x5x\u9a71\u52a8\u79fb\u690d\u652f\u6301PCI9054\u5728win7\u4e0b\u4f7f\u75282 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/65500.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PCI9x5x\u9a71\u52a8\u79fb\u690d\u652f\u6301PCI9054\u5728win7\u4e0b\u4f7f\u75282 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u63a5\u4e0a\u6587&#xff0c;\u672c\u6587\u7ae0\u7ee7\u7eed\u8bb0\u5f55\u4e2d\u6cf0\u8054\u521b\u7684\u6570\u636e\u91c7\u96c6\u5361\u9a71\u52a8\u7ffb\u65b0\u8fc7\u7a0b\u3002 \u4e2d\u65ad\u521d\u59cb\u5316\u90e8\u5206\u4ee3\u7801\u79fb\u690d \u5206\u6790PLX9x5x\u6e90\u7801\u53ef\u77e5&#xff0c;\u4e2d\u65ad\u521d\u59cb\u5316\u8c03\u7528\u6d41\u7a0b\u5982\u4e0b&#xff1a; PLxEvtDeviceAdd-PLxInitializeDeviceExtension-PLxInterruptCreate \u5176\u4e2d\u5177\u4f53\u521d\u59cb\u5316\u4ee3\u7801\u5728PLxInterruptCreate\u51fd\u6570\u4e2d&#xff0c;\u8fd9\u90e8\u5206\u662f\u7eaf\u6846\u67b6\u6d41\u7a0b\u65e0\u9700\u4fee\u6539&#xff0c;\u76f4\u63a5\u5c31\u53ef\u4ee5\u4f7f\u7528&#xff1a; NTSTATUS PL\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/65500.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-24T21:48:22+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/65500.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/65500.html\",\"name\":\"PCI9x5x\u9a71\u52a8\u79fb\u690d\u652f\u6301PCI9054\u5728win7\u4e0b\u4f7f\u75282 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-24T21:48:22+00:00\",\"dateModified\":\"2026-01-24T21:48:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/65500.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/65500.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/65500.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PCI9x5x\u9a71\u52a8\u79fb\u690d\u652f\u6301PCI9054\u5728win7\u4e0b\u4f7f\u75282\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PCI9x5x\u9a71\u52a8\u79fb\u690d\u652f\u6301PCI9054\u5728win7\u4e0b\u4f7f\u75282 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/65500.html","og_locale":"zh_CN","og_type":"article","og_title":"PCI9x5x\u9a71\u52a8\u79fb\u690d\u652f\u6301PCI9054\u5728win7\u4e0b\u4f7f\u75282 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u63a5\u4e0a\u6587&#xff0c;\u672c\u6587\u7ae0\u7ee7\u7eed\u8bb0\u5f55\u4e2d\u6cf0\u8054\u521b\u7684\u6570\u636e\u91c7\u96c6\u5361\u9a71\u52a8\u7ffb\u65b0\u8fc7\u7a0b\u3002 \u4e2d\u65ad\u521d\u59cb\u5316\u90e8\u5206\u4ee3\u7801\u79fb\u690d \u5206\u6790PLX9x5x\u6e90\u7801\u53ef\u77e5&#xff0c;\u4e2d\u65ad\u521d\u59cb\u5316\u8c03\u7528\u6d41\u7a0b\u5982\u4e0b&#xff1a; PLxEvtDeviceAdd-PLxInitializeDeviceExtension-PLxInterruptCreate \u5176\u4e2d\u5177\u4f53\u521d\u59cb\u5316\u4ee3\u7801\u5728PLxInterruptCreate\u51fd\u6570\u4e2d&#xff0c;\u8fd9\u90e8\u5206\u662f\u7eaf\u6846\u67b6\u6d41\u7a0b\u65e0\u9700\u4fee\u6539&#xff0c;\u76f4\u63a5\u5c31\u53ef\u4ee5\u4f7f\u7528&#xff1a; NTSTATUS PL","og_url":"https:\/\/www.wsisp.com\/helps\/65500.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-24T21:48:22+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/65500.html","url":"https:\/\/www.wsisp.com\/helps\/65500.html","name":"PCI9x5x\u9a71\u52a8\u79fb\u690d\u652f\u6301PCI9054\u5728win7\u4e0b\u4f7f\u75282 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-24T21:48:22+00:00","dateModified":"2026-01-24T21:48:22+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/65500.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/65500.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/65500.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"PCI9x5x\u9a71\u52a8\u79fb\u690d\u652f\u6301PCI9054\u5728win7\u4e0b\u4f7f\u75282"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/65500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=65500"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/65500\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=65500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=65500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=65500"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=65500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}