ok. i understand the problem.
but i have a very difficult time understanding the "IRP_MN_WRITE_CONFIG".
i can't seem to perform any writes with that. i can't even find a single
example.
assuming i used IRP_MN_WRITE_CONFIG to obtain a device's configuratino space
and hold it in a PCI_COMMON_CONFIG struct. i then change , for example,
the value of VendorId in it. then i try to write it again using the
"IRP_MN_WRITE_CONFIG" but nothing seems to happen. on the next READ i get
the same old value.
any idea why can't i perform the write ??
"Maxim S. Shatskih" wrote:
> You can implement reset as the driver's start/stop cycle.
>
> And, if the device resets its PCI interface due to some device-side events,
> then it is _just plain buggy_.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
>
> http://www.storagecraft.com
>
> "kobi n" <> wrote in message
> news:8D27D94F-DDFA-4ED2-8532-...
> > Hi.
> >
> > a device (a DSP) that my driver handles has somekind of a reset process.
> > in this reset process the pci configuration space on the device, which was
> > written to the device by the OS on startup, is deleted and it is my
> > responsibility to restore it since the device should continue functioning
> > without restarting the machine (which is the only point of time where the OS
> > writes the pci config values to my understanding).
> >
> > my question is if there's a common/acceptable way of doing so.
> >
> > my cuurent thought will be -
> > keeping an instance of PCI_COMMON_CONFIG which was read by
> > irp_mn_read_config and use the irp_mn_write_config for restoring.
> >
> > thanks a lot,
> > Kobi.
> >
> >
> >
>
>