Changeset b06e68ef in rtems for c/src/lib/libbsp/shmdr


Ignore:
Timestamp:
08/17/95 19:51:51 (28 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
95fbca1
Parents:
3b438fa
Message:

Numerous miscellaneous features incorporated from Tony Bennett
(tbennett@…) including the following major additions:

+ variable length messages
+ named devices
+ debug monitor
+ association tables/variables

Location:
c/src/lib/libbsp/shmdr
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/shmdr/poll.c

    r3b438fa rb06e68ef  
    1717 *  notice must appear in all copies of this file and its derivatives.
    1818 *
    19  *  poll.c,v 1.2 1995/05/09 20:22:57 joel Exp
     19 *  $Id$
    2020 */
    2121
    2222#include <rtems.h>
    2323#include <rtems/sysstate.h>
     24#include <rtems/libio.h>
     25
    2426#include "shm.h"
    25 #include "clockdrv.h"
    2627
    2728void Shm_Poll()
    2829{
    2930  rtems_unsigned32 tmpfront;
     31  rtems_libio_ioctl_args_t args;
    3032
    31   Clock_isr( 0 );             /* invoke standard clock ISR */
    32 
     33  /* invoke clock isr */
     34  args.iop = 0;
     35  args.command = rtems_build_name('I', 'S', 'R', ' ');
     36  (void) rtems_io_control(rtems_clock_major, rtems_clock_minor, &args);
    3337
    3438  /*
     
    4044  if (_System_state_Is_up(_System_state_Get()))
    4145  {
    42       /* enable_tracing(); */
    43       /* ticks += 1; */
    44       Shm_Lock( Shm_Local_receive_queue );
    4546      tmpfront = Shm_Local_receive_queue->front;
    46       Shm_Unlock( Shm_Local_receive_queue );
    47       if ( Shm_Convert(tmpfront) != Shm_Locked_queue_End_of_list ) {
    48         rtems_multiprocessing_announce();
    49         Shm_Interrupt_count++;
     47      if ( Shm_Convert(tmpfront) != Shm_Locked_queue_End_of_list )
     48      {
     49          rtems_multiprocessing_announce();
     50          Shm_Interrupt_count++;
    5051      }
    5152  }
  • c/src/lib/libbsp/shmdr/setckvec.c

    r3b438fa rb06e68ef  
    2020
    2121#include <rtems.h>
     22#include <rtems/libio.h>
     23
    2224#include "shm.h"
    23 #include "clockdrv.h"
    2425
    2526rtems_isr Shm_setclockvec()
    2627{
    27   ReInstall_clock( Shm_Poll );
     28    rtems_libio_ioctl_args_t args;
     29    args.iop = 0;
     30    args.command = rtems_build_name('N', 'E', 'W', ' ');
     31    args.buffer = (void *) Shm_Poll;
     32
     33    (void) rtems_io_control(rtems_clock_major, rtems_clock_minor, &args);
    2834}
  • c/src/lib/libbsp/shmdr/shm.h

    r3b438fa rb06e68ef  
    2020#ifndef __SHM_h
    2121#define __SHM_h
     22
     23#include <clockdrv.h>
    2224
    2325#ifdef __cplusplus
     
    519521rtems_mpci_table MPCI_table  = {
    520522  100000,                     /* default timeout value in ticks */
     523  MAX_PACKET_SIZE,            /* maximum packet size */
    521524  Shm_Initialization,         /* initialization procedure   */
    522525  Shm_Get_packet,             /* get packet procedure       */
  • c/src/lib/libbsp/shmdr/shm_driver.h

    r3b438fa rb06e68ef  
    2020#ifndef __SHM_h
    2121#define __SHM_h
     22
     23#include <clockdrv.h>
    2224
    2325#ifdef __cplusplus
     
    519521rtems_mpci_table MPCI_table  = {
    520522  100000,                     /* default timeout value in ticks */
     523  MAX_PACKET_SIZE,            /* maximum packet size */
    521524  Shm_Initialization,         /* initialization procedure   */
    522525  Shm_Get_packet,             /* get packet procedure       */
Note: See TracChangeset for help on using the changeset viewer.