source: rtems/c/src/lib/libbsp/i960/cvme961/shmsupp/addrconv.c @ 2ec8160

4.104.114.84.95
Last change on this file since 2ec8160 was 2ec8160, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:51:30

2003-09-04 Joel Sherrill <joel@…>

  • clock/ckinit.c, console/console.c, include/bsp.h, shmsupp/addrconv.c, shmsupp/getcfg.c, shmsupp/lock.c, shmsupp/mpisr.c, start/start.S, startup/bspclean.c, startup/bspstart.c, startup/exit.c, startup/linkcmds, startup/setvec.c, timer/timer.c, timer/timerisr.S: URL for license changed.
  • Property mode set to 100644
File size: 865 bytes
Line 
1/*  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.rtems.com/license/LICENSE.
19 *
20 *  $Id$
21 */
22
23#include <rtems.h>
24#include <bsp.h>
25#include "shm_driver.h"
26
27void *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}
Note: See TracBrowser for help on using the repository browser.