Last change
on this file since 8c99365 was
8c99365,
checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:53:36
|
2003-09-04 Joel Sherrill <joel@…>
- addlq.c, cnvpkt.c, dump.c, fatal.c, getlq.c, getpkt.c, init.c,
initlq.c, intr.c, mpci.h, mpisr.c, poll.c, receive.c, retpkt.c,
send.c, setckvec.c, shm_driver.h: URL for license changed.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[ac7d5ef0] | 1 | /* void Shm_Convert_packet( &packet ) |
---|
| 2 | * |
---|
| 3 | * This routine is the shared memory locked queue MPCI driver routine |
---|
| 4 | * used to convert the RTEMS's information in a packet from non-native |
---|
| 5 | * format to processor native format. |
---|
| 6 | * |
---|
| 7 | * Input parameters: |
---|
| 8 | * packet - pointer to a packet |
---|
| 9 | * |
---|
| 10 | * Output parameters: |
---|
| 11 | * *packet - packet in native format |
---|
| 12 | * |
---|
| 13 | * NOTE: Message buffers are not manipulated. |
---|
| 14 | * Endian conversion is currently the only conversion. |
---|
| 15 | * |
---|
[08311cc3] | 16 | * COPYRIGHT (c) 1989-1999. |
---|
[ac7d5ef0] | 17 | * On-Line Applications Research Corporation (OAR). |
---|
| 18 | * |
---|
[98e4ebf5] | 19 | * The license and distribution terms for this file may be |
---|
| 20 | * found in the file LICENSE in this distribution or at |
---|
[8c99365] | 21 | * http://www.rtems.com/license/LICENSE. |
---|
[ac7d5ef0] | 22 | * |
---|
| 23 | * $Id$ |
---|
| 24 | */ |
---|
| 25 | |
---|
| 26 | #include <rtems.h> |
---|
[48bfd992] | 27 | #include "shm_driver.h" |
---|
[ac7d5ef0] | 28 | |
---|
| 29 | void Shm_Convert_packet( |
---|
| 30 | rtems_packet_prefix *packet |
---|
| 31 | ) |
---|
| 32 | { |
---|
| 33 | rtems_unsigned32 *pkt, i; |
---|
| 34 | |
---|
| 35 | pkt = (rtems_unsigned32 *) packet; |
---|
| 36 | for ( i=RTEMS_MINIMUN_HETERO_CONVERSION ; i ; i--, pkt++ ) |
---|
| 37 | *pkt = CPU_swap_u32( *pkt ); |
---|
| 38 | |
---|
| 39 | for ( i=packet->to_convert ; i ; i--, pkt++ ) |
---|
| 40 | *pkt = CPU_swap_u32( *pkt ); |
---|
| 41 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.