What Jake, and Mark, and Don are saying is that there are documented ways
to access the PCI information. CF8 belongs to PCI.SYS. It is not yours,
nor can you acquire the spinlock or other sync mechanisms that control
access to it. Since you cannot intelligently access that resource,
attempting to brute force it verges on system insanity.
Your real problem arises not with those of us who insist on playing by the
rules and accessing the PCI registers using the proper, documented means,
but in other rogues and wildcatters, such as yourself, who have decided
that “We are to good to abide by the rules, and we will do what we want
when we want.” That is by definition, a train wreck.
Gary G. Little
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jake Oshins
Sent: Monday, July 24, 2006 5:37 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] how to define the port for communication
What if another processor, (or just another thread,) happens to run code
in
pci.sys between steps 1 & 3? Then you’ve just corrupted something
somewhere.
“nayan kumar” wrote in message
news:xxxxx@ntdev…
> hi sir heartly thanks for your help.
>
> now can i follow thse steps…
>
> 1. will read the value form cf8 and will put it on any temp variable.
> 2. then we will write our data on cf8…
> 3.then after we will write that temp value to cf8…
>
> I think this will not crash our system and our writting will
happen…
> Is this a good way to write in legacy way.do you agree with my approch
>
> Thanks
> Nayan
>
>
>>From: “Mark Roddy”
>>Reply-To: “Windows System Software Devs Interest List”
>>
>>To: “Windows System Software Devs Interest List”
>>Subject: RE: [ntdev] how to define the port for communication
>>Date: Sat, 22 Jul 2006 12:25:52 -0400
>>
>>Why do you think you have to “write configuration address port in the
>>host/PCI bridge” and what exactly do you mean by “configuration address
>>port”?
>>
>>In general you should not be writing anything to the host/PCI bridge. If
>>you are referring to the PCI config space x86 platform IO ports CF8 and
>>friends, you are not allowed to access these IO ports, nor are you
>>supposed
>>to configure your own PCI function’s regeister address mappings, the OS
>>does
>>this for you.
>>
>>=====================
>>Mark Roddy DDK MVP
>>Windows 2003/XP/2000 Consulting
>>Hollis Technology Solutions 603-321-1032
>>www.hollistech.com
>>
>> > -----Original Message-----
>> > From: xxxxx@lists.osr.com
>> > [mailto:xxxxx@lists.osr.com] On Behalf Of nayan kumar
>> > Sent: Saturday, July 22, 2006 10:53 AM
>> > To: Windows System Software Devs Interest List
>> > Subject: Re:[ntdev] how to define the port for communication
>> >
>> > here port means I/O Space
>> >
>> >
>> > >From: “Don Burn”
>> > >Reply-To: “Windows System Software Devs Interest List”
>> > >
>> > >To: “Windows System Software Devs Interest List”
>> >
>> > >Subject: Re:[ntdev] how to define the port for communication
>> > >Date: Sat, 22 Jul 2006 09:47:32 -0400
>> > >
>> > >You do not do this, the OS handles setting up the
>> > configuration space
>> > >for you. We still need to know what do you mean by a “PORT”?
>> > >
>> > >
>> > >–
>> > >Don Burn (MVP, Windows DDK)
>> > >Windows 2k/XP/2k3 Filesystem and Driver Consulting
>> > >http://www.windrvr.com Remove StopSpam from the email to reply
>> > >
>> > >
>> > >“nayan kumar” wrote in message
>> > >news:xxxxx@ntdev…
>> > > > hi sir
>> > > > thanks for your kind support.
>> > > >
>> > > > i have to write configuration address port in the
>> > host/PCI bridge by
>> > > > useing the function WRITE_PORT_ULONG. i have the bus,device and
>> > > > function id.now what should i do for writting.
>> > > >
>> > > > Thanks in advance.
>> > > > Nayan
>> > > >
>> > > >
>> > > >>From: “Maxim S. Shatskih”
>> > > >>Reply-To: “Windows System Software Devs Interest List”
>> > > >>
>> > > >>To: “Windows System Software Devs Interest List”
>> > > >>
>> > > >>Subject: Re: [ntdev] how to define the port for communication
>> > > >>Date: Fri, 21 Jul 2006 23:19:23 +0400
>> > > >>
>> > > >> > so i want to know is there any standard way to define
>> > the port no
>> > > >> > by
>> > > >>using
>> > > >> > vendorid,deviceid,function no etc.if not then how i can define
>> > > >> > the
>> > >port
>> > > >>no
>> > > >>
>> > > >>I think that any PCI card must have a config space, and
>> > thus Vendor
>> > > >>ID
>> > >and
>> > > >>Device ID.
>> > > >>
>> > > >>Maxim Shatskih, Windows DDK MVP
>> > > >>StorageCraft Corporation
>> > > >>xxxxx@storagecraft.com
>> > > >>http://www.storagecraft.com
>> > > >>
>> > > >>
>> > > >>—
>> > > >>Questions? First check the Kernel Driver FAQ at
>> > > >>http://www.osronline.com/article.cfm?id=256
>> > > >>
>> > > >>To unsubscribe, visit the List Server section of OSR Online at
>> > > >>http://www.osronline.com/page.cfm?name=ListServer
>> > > >
>> > > >
>> > > > Sexy, sultry, sensuous. - see why Bipasha Basu is all
>> > that and more.
>> > > > Try MSN Search http://server1.msn.co.in/Profile/bipashabasu.asp
>> > > >
>> > > >
>> > >
>> > >
>> > >
>> > >—
>> > >Questions? First check the Kernel Driver FAQ at
>> > >http://www.osronline.com/article.cfm?id=256
>> > >
>> > >To unsubscribe, visit the List Server section of OSR Online at
>> > >http://www.osronline.com/page.cfm?name=ListServer
>> >
>> >
>> > Spice up your IM conversations. New, colorful and animated
>> > emoticons. Get chatting! http://server1.msn.co.in/SP05/emoticons/
>> >
>> >
>> > —
>> > Questions? First check the Kernel Driver FAQ at
>> > http://www.osronline.com/article.cfm?id=256
>> >
>> > To unsubscribe, visit the List Server section of OSR Online
>> > at http://www.osronline.com/page.cfm?name=ListServer
>> >
>>
>>
>>—
>>Questions? First check the Kernel Driver FAQ at
>>http://www.osronline.com/article.cfm?id=256
>>
>>To unsubscribe, visit the List Server section of OSR Online at
>>http://www.osronline.com/page.cfm?name=ListServer
>
> _________________________________________________________________
> Who will win Bollywood’s most coveted IIFA awards? You decide! Cast your
> vote! http://server1.msn.co.in/sp06/IIFA2006/static/weekend.asp
>
>
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer