source: rtems/c/src/libchip/shmdr/cnvpkt.c @ f619250

4.115
Last change on this file since f619250 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 1.0 KB
Line 
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 *
16 *  COPYRIGHT (c) 1989-1999.
17 *  On-Line Applications Research Corporation (OAR).
18 *
19 *  The license and distribution terms for this file may be
20 *  found in the file LICENSE in this distribution or at
21 *  http://www.rtems.com/license/LICENSE.
22 */
23
24#include <rtems.h>
25#include "shm_driver.h"
26
27void Shm_Convert_packet(
28  rtems_packet_prefix *packet
29)
30{
31  uint32_t   *pkt, i;
32
33  pkt = (uint32_t*) packet;
34  for ( i=RTEMS_MINIMUN_HETERO_CONVERSION ; i ; i--, pkt++ )
35    *pkt = CPU_swap_u32( *pkt );
36
37  for ( i=packet->to_convert ; i ; i--, pkt++ )
38    *pkt = CPU_swap_u32( *pkt );
39}
Note: See TracBrowser for help on using the repository browser.