Article View: cn.bbs.comp.program
Article #2283Re: �����c code �л��PNP���ϵ��ڴ���ր
From: gege
Date: Thu, 01 Jan 1998 00:00
Date: Thu, 01 Jan 1998 00:00
38 lines
1709 bytes
1709 bytes
��лָ�㣡�������ԡ�
��˵��
��� 1. PCI specification
2. NTDDK document
��֪���δ�Ѱ�ң�
�����ij�档
�� �� jazzman.bbs@bbs.sjtu.edu.cn (��ʿ��) �Ĵ������ᵽ: ��
: �����PCI����һЩԴ����
: ��������PCI���ģ��ҵ�֮��
: configuration space ���
: base address M/IO
: ��� 1. PCI specification
: 2. NTDDK document
: #define PCI_ADDRESS 0x0cf8
: #define PCI_DATA 0x0cfc
: int PCI_BUS_PRESENT(void)
: {
: static done=FALSE;
: ULONG i;
: USHORT j;
: if (done) return TRUE;
: // try Mechanism first
: for (i=0x80000000;i<0x80010000;i+=0x00000800)
: {
: outpd(PCI_ADDRESS,i);
: if (inpw(PCI_DATA)==0xffff) continue;
: outpd(PCI_ADDRESS,i+0x08);
: if (inpw(PCI_DATA+2)!=0x0600) continue; // not Host Bridge
: done=TRUE;
: return TRUE;
: }
v
--
[m[1;36m�� ��Դ:���ɰ��ļ�BBSվ bbs.njtu.edu.cn��[IP: 202.112.147.245][m
Technical Details
Message-ID:
<3MM2FW$tH8@bbs.njtu.edu.cn>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB X-Google-Thread: fc86e,e14179241882341d X-Google-Attributes: gidfc86e,public From: cxl.bbs@bbs.njtu.edu.cn (gege) Subject: Re: �����c code �л��PNP���ϵ��ڴ���ր Date: 1998/01/01 Message-ID: <3MM2FW$tH8@bbs.njtu.edu.cn> X-Deja-AN: 311934988 X-Filename: Programming/M.883635440.A Organization: ��������ɰ��ļ� Newsgroups: cn.bbs.comp.program