I have created a RAM disk on Zynq RTEMS and I'd like to set up (for the time
being) a 'baremetal ' type DMA transferTo the ramdisk .
I have set up the RAM Disk as follows, and have no problem reading or writing
to it. How do I find the physical address in memory where the
RAM Disk has been created? I think I may be better off allocating a static
memory region for this; my RAMDISK size is 384Mbytes
rtems_status_code create_ramdisk(
const char *device,
uint32_t media_block_size,
rtems_blkdev_bnum media_block_count
)
{
rtems_status_code sc;
ramdisk *rd;
rd = ramdisk_allocate(NULL, media_block_size, media_block_count, false);
if (rd != NULL) {
sc = rtems_blkdev_create(
device,
media_block_size,
media_block_count,
ramdisk_ioctl,
rd
);
} else {
sc = RTEMS_UNSATISFIED;
}
The information contained in this message is intended for the addressee only
and may contain sensitive information. If you are not the addressee, please
delete this message and notify the sender; you should not copy or distribute
this message or disclose its contents to anyone. Any views or opinions
expressed in this message are those of the individual(s) and not necessarily of
the organisation. No reliance may be placed on this message without written
confirmation from an authorised representative of its contents. No guarantee is
implied that this message or any attachment is virus free or has not been
intercepted and amended.
_______________________________________________
users mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/users