DSPRelated.com
Forums

Host communication

Started by zest...@hotmail.com October 4, 2005
Hi,

I'm trying to get my PC to talk to my board with the TMS320c6711. I have the physical address of the board on the PCI slot (0xD3000000). In order to get to the registers of the board, i know i have to remap the physical address to a virtual address space. I know the function that does that under linux is ioremap() but i don't do what to do under windows. Does anybody know an equivalent thing for windows and visual c? And hox do you choose the adress of the virtual space?

Sincerely,

Terrence



Terrence,

What PCI interface are you using ?
Windows will pass in the PCI virtual address address information to the
AddDevice() method of yourWDM driver.

- Andrew E.

zestytwizzler@zest... wrote:

>Hi,
>
>I'm trying to get my PC to talk to my board with the TMS320c6711. I have the physical address of the board on the PCI slot (0xD3000000). In order to get to the registers of the board, i know i have to remap the physical address to a virtual address space. I know the function that does that under linux is ioremap() but i don't do what to do under windows. Does anybody know an equivalent thing for windows and visual c? And hox do you choose the adress of the virtual space?
>
>Sincerely,
>
>Terrence




Terrence,

I suggest going to microsoft web site and searching
for information on their "driver developer kit". it
comes with examples and some info on the kernel api.

You may also be able to get some kernel driver info
from the 'windoze' community on the web.

mikedunn

--- zestytwizzler@zest... wrote:

> Hi,
>
> I'm trying to get my PC to talk to my board with the
> TMS320c6711. I have the physical address of the
> board on the PCI slot (0xD3000000). In order to get
> to the registers of the board, i know i have to
> remap the physical address to a virtual address
> space. I know the function that does that under
> linux is ioremap() but i don't do what to do under
> windows. Does anybody know an equivalent thing for
> windows and visual c? And hox do you choose the
> adress of the virtual space?
>
> Sincerely,
>
> Terrence >
>
> c6x-unsubscribe@c6x-...




Andrew,

Actually, i don't really have an interface. The board I have is inserted in my PC and i am trying to communicate simply with the HPI of the DSP (just like when you boot the DSP via HPI. Here I only want to go read and write a few words to understand the communication between a host and the card). What i don't know is where to get that information about the virtual address space that was given to the PCI physical address.

What do you call AddDevice() method? is there a way to know this virtual address?

Thank you again for your concern,

Terrence

From:  Andrew Elder <a...@bigfoot.com>
To:  z...@hotmail.com
CC:  c...@yahoogroups.com
Subject:  Re: [c6x] Host communication
Date:  Tue, 04 Oct 2005 10:58:00 -0400
>
>Terrence,
>
>What PCI interface are you using ?
>Windows will pass in the PCI  virtual address address information to the
>AddDevice() method of yourWDM driver.
>
>- Andrew E.
>
>z...@hotmail.com wrote:
>
> >Hi,
> >
> >I'm trying to get my PC to talk to my board with the TMS320c6711. I have the physical address of the board on the PCI slot (0xD3000000). In order to get to the registers of the board, i know i have to remap the physical address to a virtual address space. I know the function that does that under linux is ioremap() but i don't do what to do under windows. Does anybody know an equivalent thing for windows and visual c? And hox do you choose the adress of the virtual space?
> >
> >Sincerely,
> >
> >Terrence
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> ><*> To visit your group on the web, go to:
>     http://groups.yahoo.com/group/c6x/
>
><*> To unsubscribe from this group, send an email to:
>     c...@yahoogroups.com
>
><*>



Tereance,

To make the communication work there needs to be
PCI <-> PCI interface chip/logic <-> HPI

The PCI bus cannot directly access the C6000 HPI. What hardware do you have that lets you issue a PCI write that will somehow access the C6000 HPI ?

Am I correct in reading that you have everything working in Linux ? You sort of hinted that you knew how to make it work in Linux.

You are going to have to write a fairly simple Windows kernel driver to read and write registers on your card. I think Mike made the excellent suggestion that you look at a WDM driver DDK.

Have a look
<http://www.codeproject.com/system/WDM_Driver_development.asp>
and
<http://www.microsoft.com/whdc/archive/wdmoverview.mspx>

There used to be drivers for simple port read write operations available on the web, but I cna't seem to locate them at the moment.

- Andrew Thierry Ranson wrote:

Andrew,

Actually, i don't really have an interface. The board I have is inserted in my PC and i am trying to communicate simply with the HPI of the DSP (just like when you boot the DSP via HPI. Here I only want to go read and write a few words to understand the communication between a host and the card). What i don't know is where to get that information about the virtual address space that was given to the PCI physical address.

What do you call AddDevice() method? is there a way to know this virtual address?

Thank you again for your concern,

Terrence

From:  Andrew Elder <a...@bigfoot.com>
To:  z...@hotmail.com
CC:  c...@yahoogroups.com
Subject:  Re: [c6x] Host communication
Date:  Tue, 04 Oct 2005 10:58:00 -0400
>
>Terrence,
>
>What PCI interface are you using ?
>Windows will pass in the PCI  virtual address address information
to the
>AddDevice() method of yourWDM driver.
>
>- Andrew E.
>
>z...@hotmail.com wrote:
>
> >Hi,
> >
> >I'm trying to get my PC to talk to my board with the
TMS320c6711. I have the physical address of the board on the PCI slot (0xD3000000). In order to get to the registers of the board, i know i have to remap the physical address to a virtual address space. I know the function that does that under linux is ioremap() but i don't do what to do under windows. Does anybody know an equivalent thing for windows and visual c? And hox do you choose the adress of the virtual space?
> >
> >Sincerely,
> >
> >Terrence
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >