source: rtems/c/src/lib/libbsp/i960/rxgen960/shmsupp/addrconv.c @ 48bfd992

4.104.114.84.95
Last change on this file since 48bfd992 was 48bfd992, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 30, 1999 at 7:58:02 PM

Renamed shm.h to shm_driver.h to avoid conflicts with POSIX shm.h.

Renamed file shmsupp/intr.c in some BSPs to shmsupp/cause_intr.c to
avoid conflict with rtems/src/intr.c (Classic API Interrupt Manager).

  • Property mode set to 100644
File size: 910 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-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$
22 */
23
24#include <rtems.h>
25#include <bsp.h>
26#include "shm_driver.h"
27
28void *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}
Note: See TracBrowser for help on using the repository browser.