OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [i960/] [cvme961/] [shmsupp/] [addrconv.c] - Blame information for rev 30

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  Shm_Convert_address
2
 *
3
 *  This routine takes into account the peculiar short VME address
4
 *  of the CVME961 board.  The CVME961 maps short address space
5
 *  0xffffxxxx to 0xb400xxxx.
6
 *
7
 *  Input parameters:
8
 *    address - address to convert
9
 *
10
 *  Output parameters:
11
 *    returns - converted address
12
 *
13
 *  COPYRIGHT (c) 1989-1999.
14
 *  On-Line Applications Research Corporation (OAR).
15
 *
16
 *  The license and distribution terms for this file may be
17
 *  found in the file LICENSE in this distribution or at
18
 *  http://www.OARcorp.com/rtems/license.html.
19
 *
20
 *  $Id: addrconv.c,v 1.2 2001-09-27 11:59:56 chris Exp $
21
 */
22
 
23
#include <rtems.h>
24
#include <bsp.h>
25
#include "shm_driver.h"
26
 
27
void *Shm_Convert_address(
28
  void *address
29
)
30
{
31
  rtems_unsigned32 workaddr = (rtems_unsigned32) address;
32
 
33
  if ( workaddr >= 0xffff0000 )
34
    workaddr = (workaddr & 0xffff) | 0xb4000000;
35
  return ( (rtems_unsigned32 *)workaddr );
36
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.