Query re: PCI Driver in Windows NT 4.0

Hi,
I have a PCI Windows NT 4 driver for a custom board.( The board has a
PCI9030 controller and a C6204 DSP).
I have a similar driver in VxWorks. I need to load a COFF File into the
DSP memory through the PCI driver.
After the COFF File is loaded i set a bit in the DSP’s register that
starts the execution of the loaded program.
All this works fine in VxWorks but it doesnt in NT (??)

  1. i have verified the COFF Loading by reading back the DSP memory and
    writing to a file.
    I get exactly same files in VxWorks and NT.

  2. The only difference in the code being, in VxWorks i use normal c syntax
    to read and write to memory
    mapped registers. in NT i use the macros WRITE_REGISTER_ULONG etc.

Are there any specific issues that need to be considered for a PCI driver
in NT??

thanks and regards
ameya

“Ameya” wrote in message news:xxxxx@ntdev…
>
> Hi,
> I have a PCI Windows NT 4 driver for a custom board.( The board has a
> PCI9030 controller and a C6204 DSP).
> I have a similar driver in VxWorks. I need to load a COFF File into the
> DSP memory through the PCI driver.
> After the COFF File is loaded i set a bit in the DSP’s register that
> starts the execution of the loaded program.
> All this works fine in VxWorks but it doesnt in NT (??)

What CPU does the VxWorks machine have?

> 1) i have verified the COFF Loading by reading back the DSP memory and
> writing to a file.
> I get exactly same files in VxWorks and NT.
> 2) The only difference in the code being, in VxWorks i use normal c syntax
> to read and write to memory
> mapped registers. in NT i use the macros WRITE_REGISTER_ULONG etc.

You may be seeing endian issues. Remember, since you’re writing 4 bytes at
a time,
you need to make sure about this.

Scott

Hi scott,

  1. I use the same hardware platform for vxworks as well as NT. Its an
    Intel celeron MMX cpu (133mhz).

  2. The little endian issue had been taken care while writing with
    WRITE_REGISTER_Uxxx

ameya