Tech Support > Microsoft Windows > Drivers > Q) Disabling IO port space during it's installation time.
Q) Disabling IO port space during it's installation time.
Posted by Daum on January 26th, 2006


Dear all,


I¡¯m developing CardBus driver at WinXP.

I've checked the size of the IO port space by accessing the BAR, and it was
4K bytes.

But the WinXP does not allocate the IO port space because of rack of
resources.

So, I want to make the WinXP to ignore the IO port space during it's
installation procedure so that it can install it properly.


Q) Can I make the WinXP to ignore the IO port space during it's
installation time so that it can install it properly?

If then, please let me know how.



Thank you.



// Daum






Posted by Maxim S. Shatskih on January 27th, 2006


Having a 4K of IO space is a major hardware mis-design.

Note: IO space is obsolete (due to having the machine-wide limit of 64K).
Use memory space (noncacheable) instead. Can you ask your hardware makers about
switching to memory space?

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"Daum" <daum999@yahoo.com> wrote in message
news:%23n$CRqsIGHA.344@TK2MSFTNGP11.phx.gbl...

Posted by Daum on January 27th, 2006



Thank you Maxim,

Unfortunately, the H/W can not be changed at this time.

The H/W maker also provide 4K memory space for memory mapped IO.

The maker intended to give us a flexiblity to use either one: IO port or
memory mapped IO.

The maker thought that one of them can be disabled by S/W easily.


Thank you.



// Daum







"Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
news:OAZe93wIGHA.3192@TK2MSFTNGP10.phx.gbl...


Posted by Maxim S. Shatskih on January 27th, 2006


IRP_MN_FILTER_RESOURCE_REQUIREMENTS, and filter away the IO resource. Then,
in MN_START_DEVICE, switch it off in the hardware.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"Daum" <daum999@yahoo.com> wrote in message
news:u0S1Jn2IGHA.3944@tk2msftngp13.phx.gbl...

Posted by Gennady Mayko on January 28th, 2006


You can try to use LogConfigOverride section in your *.inf file to
overide hardware resource requirements from device's bus driver.

Regards,
Gennady Mayko.


Posted by Pavel A. on January 28th, 2006


"Daum" <daum999@yahoo.com> wrote in message news:u0S1Jn2IGHA.3944@tk2msftngp13.phx.gbl...
This is ok; actually XP should use only the memory mapped BAR and ignore
it's paired i/o mapped BAR. If this does not work, re-check that the pair of BARs is
defined exactly per spec. Too late?

--PA





Posted by Daum on January 30th, 2006


Thank you PA,

Did you mean it was the I/O-port Reduction Through Driver Registry Setting
like below?

[DDInstall.HW]
Include=machine.inf
Needs=PciIoSpaceNotRequired


Thank you.


// Daum



"Pavel A." <pavel_a@NOwritemeNO.com> wrote in message
news:ODoU%23eGJGHA.2212@TK2MSFTNGP15.phx.gbl...


Posted by Pavel A. on January 31st, 2006


"Daum" wrote:
No. This setting seems to apply to PCI bridges, but you have a functional
device.
Just recheck that your BARs are defined correctly.

Regards,
--PA