I did this successfully under NT with a video card and a hot-swap extender
that the video card plugged into. This was a known removal, not a surprise.
It was a setup for testing video boards.
When the user wanted to plug in the next board, he would click an icon on
the application gui, the app. would send an ioctl to the driver which would
read the pci config info. When the call completed, the user would switch
off the bus extender so that the video card had no power, then would plug in
next card and turn bus exender on, then would click icon in app. gui that
sent ioctl to write the old pci config info into new board.
This worked fine on particular machines, but not all machines. There were
problems with the pci reset signal on certain machines that prevented this
from working. Also, the hot-swap extenders varied in quality, and only ones
from certain manufacturers would work, and even those I had to modify to
pump more current through, and to not shut off on overcurrent. We knew what
machines we could use this with, and they were our testbeds.
Of course, all boards that we swapped in and out were exactly the same.
andy
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of yuanjun
Sent: Thursday, April 04, 2002 10:50 PM
To: NT Developers Interest List
Subject: [ntdev] Re: about pci-pci bridge
Mark,
Pls just assume that my driver is the OS— before the card being
un-pluged, I recored the configuration of the PCI2250 pci-pci bridge,and
then when re-plug the card, I initialize the pci-pci bridge— just the OS
during startup initializing the PCI-PCI bridge for the system, but one thing
different — I needn’t allocate resource for it again, because I have
recorded a copy, and I am sure nothing else will apply for these resources.
pls help. thanks.
-----Original Message-----
From: Mark Roddy
To: NT Developers Interest List
Date: 2002Äê4ÔÂ4ÈÕ 20:01
Subject: [ntdev] Re: about pci-pci bridge
You have to convice the pci bus driver to re-enumerate the pci busses.
=====================
Mark Roddy
Windows XP/2000/NT Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com
xxxxx@hollistech.com
For Windows Device Driver Training: see www.azius.com
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of yuanjun
> Sent: Thursday, April 04, 2002 3:49 AM
> To: NT Developers Interest List
> Subject: [ntdev] Re: about pci-pci bridge
>
>
> thank you robin, but the fact is:
>
> When the card is half-unplug, which is specified by
> Compact-PCI, a status register will report this situation, so
> I can use a system thread to monitor the PCI2250. And I can
> use the system thread to monitor the bus too to see if a
> un-plugged card was pluged into the slot again, you see, with
> this function,say, HalGetBusData.
>
> So my question is, if I am notified that a un-plugged card
> was plugged back to the slot, I must make it work.
>
> thanks
>
> -----Original Message-----
> From: xxxxx@exgate.tek.com
> To: NT Developers Interest List
> Date: 2002Äê4ÔÂ4ÈÕ 16:35
> Subject: [ntdev] Re: about pci-pci bridge
>
>
> >it depends…
> >1. how do you know when someone extracted your board? Are
> you polling
> >in your device FDO? Do you then remove yourself (get
> yourself removed)?
> >
> >2. how do know when it was plugged back in? You can’t poll,
> because you
> >aren’t there (at least not as a normal device FDO).
> >
> >3. is the /ENUM signal routed to some gpe?
> >4. are there acpi methods in your BIOS supporting hot swap?
> >5. XP embedded has some support for cpci hot swap. It polls
> the bus for
> >device arrival/removal and notfies the system.
> >
> >There are a number of ‘hacks’ around that filter the pci bus
> driver to
> >achieve the same.
> >
> >I vote for pci.sys to be open source 
> >
> >Robin Mitra
> >
> >> -----Original Message-----
> >> From: yuanjun [mailto:xxxxx@21cn.com]
> >> Sent: Thursday, April 04, 2002 7:22 AM
> >> To: NT Developers Interest List
> >> Subject: [ntdev] Re: about pci-pci bridge
> >>
> >>
> >> I encountered this problem also.
> >>
> >> my task is try to support the hot swap under windows NT.
> >> I plan to do it this way: before un-plug, I read the PCI2250
> >> configuration header ,and get all the informations, then when I
> >> re-plug the Card, I write
> >> the necessary data back to the PCI2250 configuration header.
> >>
> >> Does this work?
> >>
> >>
> >> —
> >> You are currently subscribed to ntdev as:
> xxxxx@exgate.tek.com
> >> To unsubscribe send a blank email to %%email.unsub%%
> >>
> >
> >—
> >You are currently subscribed to ntdev as: xxxxx@21cn.com
> >To unsubscribe send a blank email to %%email.unsub%%
> >
>
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@hollistech.com To unsubscribe send a blank email to
> %%email.unsub%%
>
>
>
—
You are currently subscribed to ntdev as: KDriver@163.com
To unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@charter.net
To unsubscribe send a blank email to %%email.unsub%%