OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

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

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-1997.
14
 *  On-Line Applications Research Corporation (OAR).
15
 *  Copyright assigned to U.S. Government, 1994.
16
 *
17
 *  The license and distribution terms for this file may in
18
 *  the file LICENSE in this distribution or at
19
 *  http://www.OARcorp.com/rtems/license.html.
20
 *
21
 *  $Id: addrconv.c,v 1.2 2001-09-27 11:59:59 chris Exp $
22
 */
23
 
24
#include <rtems.h>
25
#include <bsp.h>
26
#include "shm_driver.h"
27
 
28
void *Shm_Convert_address(
29
  void *address
30
)
31
{
32
  rtems_unsigned32 workaddr = (rtems_unsigned32) address;
33
 
34
  if ( workaddr >= 0xffff0000 )
35
    workaddr = (workaddr & 0xffff) | 0xb4000000;
36
  return ( (rtems_unsigned32 *)workaddr );
37
}

powered by: WebSVN 2.1.0

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