On a Windows system there is a PCI Express (PCIe) endpoint device with an application design that handles TLPs from Windows.
The design is being updated, and I want to leave out some previous functionality, that I expect is unused.
However, I want to generate an error back to Windows if the application design receives a TLP that tries to access some of the left out functionality, so I can detect this problem.
Both posted (write) and non-posted (read) TLPs could potentially access such left out functionality, so error reporting should be possible for both types of TLPs.
Added: There existing application SW on Windows should be able to run without modifications, and when the design is complete, no errors should be generated due to access to removed features.
What is the best way to generate error back to Windows in this case?