* Alpha VME64 shared memory
@ 1995-09-08 4:00 Richard Paton
1995-09-09 4:00 ` Andrew Fraser
0 siblings, 1 reply; 5+ messages in thread
From: Richard Paton @ 1995-09-08 4:00 UTC (permalink / raw)
Hi there,
I'm new to VME stuff, but need to write a device driver that accesses
shared memory on the VME bus (we've got a comms card that can share its
memory on the bus). I've been told that the only way that the Alpha
processor can access this memory-on-the-bus is by DMA. Is this true? or
can the alpha access this shared memory as if it were local.
If DMA is the only method, what other methods are available to
communicate with devices on the VME bus?
Thanks
Richard Paton
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Alpha VME64 shared memory
1995-09-08 4:00 Alpha VME64 shared memory Richard Paton
@ 1995-09-09 4:00 ` Andrew Fraser
1995-09-12 4:00 ` Richard Paton
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Fraser @ 1995-09-09 4:00 UTC (permalink / raw)
richardp@iinet.com.au (Richard Paton) wrote:
>I'm new to VME stuff, but need to write a device driver that accesses
>shared memory on the VME bus (we've got a comms card that can share its
>memory on the bus). I've been told that the only way that the Alpha
>processor can access this memory-on-the-bus is by DMA. Is this true? or
>can the alpha access this shared memory as if it were local.
>If DMA is the only method, what other methods are available to
>communicate with devices on the VME bus?
Whether or not the Alpha can access the bus depends mainly on the card
design. I'd be extremely surprised if it could not, since that would
make it almost impossible to use. I don't know how the Alpha treats
the world - can it address by bytes, or is everything a longword (eg.,
address 1 is the first longword, address 2 isn't the second byte, but
the second longword)? Some DSPs do this and it makes use of the
VMEbus awkward.
Check the user manual for the Alpha card; it should specify the
processor's memory space map, and accesses in a certain range will be
directed out to the bus. If the processor cannot access bytes or
words, I would expect that to be clearly noted in that area of the
manual.
Let the newsgroup know which Alpha card you're using, and someone may
have some familiarity with it...
-Andy
---------------------------------------------------------------------
ANDREW FRASER DY 4 Systems Inc email afraser@dy4.com
Senior Hardware Designer 21 Fitzgerald Rd voice (613)596-9922x251
Product Support Group Nepean, Ontario fax (613)596-0574
(veni, vidi, fixi) Canada support support@dy4.com
K2H 9J4 sales sales@dy4.com
------------------- CUSTOMER FIRST, QUALITY ALWAYS ------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Alpha VME64 shared memory
1995-09-09 4:00 ` Andrew Fraser
@ 1995-09-12 4:00 ` Richard Paton
1995-09-12 4:00 ` Dan Gulkis
0 siblings, 1 reply; 5+ messages in thread
From: Richard Paton @ 1995-09-12 4:00 UTC (permalink / raw)
It's a AXP VME64. Noone at DEC seems to think that shared memory is
available (other than through I/O)
Any help appreciated
afraser@hookup.net (Andrew Fraser) writes:
>richardp@iinet.com.au (Richard Paton) wrote:
>>I'm new to VME stuff, but need to write a device driver that accesses
>>shared memory on the VME bus (we've got a comms card that can share its
>>memory on the bus). I've been told that the only way that the Alpha
>>processor can access this memory-on-the-bus is by DMA. Is this true? or
>>can the alpha access this shared memory as if it were local.
>>If DMA is the only method, what other methods are available to
>>communicate with devices on the VME bus?
>Whether or not the Alpha can access the bus depends mainly on the card
>design. I'd be extremely surprised if it could not, since that would
>make it almost impossible to use. I don't know how the Alpha treats
>the world - can it address by bytes, or is everything a longword (eg.,
>address 1 is the first longword, address 2 isn't the second byte, but
>the second longword)? Some DSPs do this and it makes use of the
>VMEbus awkward.
>Check the user manual for the Alpha card; it should specify the
>processor's memory space map, and accesses in a certain range will be
>directed out to the bus. If the processor cannot access bytes or
>words, I would expect that to be clearly noted in that area of the
>manual.
>Let the newsgroup know which Alpha card you're using, and someone may
>have some familiarity with it...
>-Andy
>---------------------------------------------------------------------
> ANDREW FRASER DY 4 Systems Inc email afraser@dy4.com
>Senior Hardware Designer 21 Fitzgerald Rd voice (613)596-9922x251
> Product Support Group Nepean, Ontario fax (613)596-0574
> (veni, vidi, fixi) Canada support support@dy4.com
> K2H 9J4 sales sales@dy4.com
>------------------- CUSTOMER FIRST, QUALITY ALWAYS ------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Alpha VME64 shared memory
1995-09-12 4:00 ` Richard Paton
@ 1995-09-12 4:00 ` Dan Gulkis
1995-09-17 4:00 ` Bob Strickland
0 siblings, 1 reply; 5+ messages in thread
From: Dan Gulkis @ 1995-09-12 4:00 UTC (permalink / raw)
richardp@iinet.com.au (Richard Paton) writes:
>It's a AXP VME64. Noone at DEC seems to think that shared memory is
>available (other than through I/O)
>>>I'm new to VME stuff, but need to write a device driver that accesses
>>>shared memory on the VME bus (we've got a comms card that can share its
>>>memory on the bus). I've been told that the only way that the Alpha
>>>processor can access this memory-on-the-bus is by DMA. Is this true? or
>>>can the alpha access this shared memory as if it were local.
>>>If DMA is the only method, what other methods are available to
>>>communicate with devices on the VME bus?
You can communicate with VME devices using three different methods:
-- PIO: Use vba_map_csr() to map the VME region and then use
write_io_port() and read_io_port().
-- DMA: Use vba_set_dma_addr(), dma_map_alloc(), dma_map_load()
to set up. Use vba_dma() for the transfers.
-- Memory Mapped: Map the region using vba_map_csr() and then
use iohandle_to_phys() and PHYS_TO_KSEG() to get the
page frame number.
---
Dan Gulkis email: dgulkis@encore.com
Encore Computer Corp. MS 404 voice: 305-587-2900 x4831
6901 West Sunrise Blvd. fax: 305-797-5807
Ft. Lauderdale, FL 33313
--
Dan Gulkis
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Alpha VME64 shared memory
1995-09-12 4:00 ` Dan Gulkis
@ 1995-09-17 4:00 ` Bob Strickland
0 siblings, 0 replies; 5+ messages in thread
From: Bob Strickland @ 1995-09-17 4:00 UTC (permalink / raw)
I'm not familiar with all the devices you have on your VME bus, but the
VxWorks O/S (and probably others too) provides a method for a second
(third, etc) processor to access shared memory on CPU zero. Also, any
processor can access shared memory on a separate memory card (maybe your
comms card could pass as a memory card).
Essentially you set up an `anchor' in extended memory that allows the
processor to access extended memory on a remote board just as if the
memory is located on it's own board.
Good Luck, Bob
In article <DEswnB.64z@encore.com>, dgulkis@encore.com (Dan Gulkis) wrote:
> richardp@iinet.com.au (Richard Paton) writes:
>
> >It's a AXP VME64. Noone at DEC seems to think that shared memory is
> >available (other than through I/O)
>
> >>>I'm new to VME stuff, but need to write a device driver that accesses
> >>>shared memory on the VME bus (we've got a comms card that can share its
> >>>memory on the bus). I've been told that the only way that the Alpha
> >>>processor can access this memory-on-the-bus is by DMA. Is this true? or
> >>>can the alpha access this shared memory as if it were local.
>
> >>>If DMA is the only method, what other methods are available to
> >>>communicate with devices on the VME bus?
>
> You can communicate with VME devices using three different methods:
>
> -- PIO: Use vba_map_csr() to map the VME region and then use
> write_io_port() and read_io_port().
>
> -- DMA: Use vba_set_dma_addr(), dma_map_alloc(), dma_map_load()
> to set up. Use vba_dma() for the transfers.
>
> -- Memory Mapped: Map the region using vba_map_csr() and then
> use iohandle_to_phys() and PHYS_TO_KSEG() to get the
> page frame number.
>
> ---
> Dan Gulkis email: dgulkis@encore.com
> Encore Computer Corp. MS 404 voice: 305-587-2900 x4831
> 6901 West Sunrise Blvd. fax: 305-797-5807
> Ft. Lauderdale, FL 33313
> --
> Dan Gulkis
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1995-09-17 4:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-09-08 4:00 Alpha VME64 shared memory Richard Paton
1995-09-09 4:00 ` Andrew Fraser
1995-09-12 4:00 ` Richard Paton
1995-09-12 4:00 ` Dan Gulkis
1995-09-17 4:00 ` Bob Strickland
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox