05-08-2003 07:10 AM
05-09-2003 02:12 AM
08-12-2014 09:56 PM
Although this is an old post, can I get similar help?
I used this code to to remap the PCI 6503 addresses, and I also am not getting any result.
I assume the error you experienced is:
WRITE_REGISTER_ULONG(translatedAddressMITE + 0xc0,(physicalAddressBAR1 & 0xffffff00L) | 0x80);
And it was fixed with this, so the offset is in bytes, not longs :
WRITE_REGISTER_UCHAR(((unsigned char *)translatedAddressMITE) + 0xc0,(physicalAddressBAR1 & 0xffffff00L) | 0x80);
Then I capture the translated addresses for BAR1 with:
translatedBAR1 = (unsigned char *) MmMapIoSpace(resource->u.Memory.Start,
resource->u.Memory.Length,MmNonCached);
And try to set PORTA with WRITE_REGISTER_UCHAR(translatedBAR1 , 0xff or 0x00 );
But I still don't get any output. Can you offer any other advice?
-Scotty