openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

chipsim.h (887B)


      1 /*
      2  * 
      3  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      4  * 
      5  * Copyright 2007-2019 Broadcom Inc. All rights reserved.
      6  *
      7  * File:        chipsim.h
      8  * Purpose:     
      9  */
     10 
     11 #ifndef   _CHIPSIM_H_
     12 #define   _CHIPSIM_H_
     13 
     14 
     15 
     16 typedef struct event_s event_t;
     17 
     18 typedef void (*event_handler_t)(event_t *ev);
     19 
     20 struct event_s {
     21     sal_usecs_t		abs_time;
     22     event_handler_t	handler;
     23     event_t		*next;
     24     pcid_info_t         *pcid_info;
     25 };
     26 
     27 extern void pcid_counter_activity(event_t *ev);
     28 extern void pcid_check_packet_input(event_t *ev);
     29 extern void event_enqueue(pcid_info_t *pcid_info, event_handler_t handler,
     30                           sal_usecs_t abs_time);
     31 extern void event_init(void);
     32 extern event_t *event_peek(void);
     33 extern void event_process_through(sal_usecs_t abs_time);
     34 
     35 
     36 
     37 
     38 #endif /* _CHIPSIM_H_ */