"Fossies" - the Fresh Open Source Software Archive

Member "opensaf-5.21.09/src/ntf/ntfd/ntfs_evt.h" (14 Sep 2021, 1992 Bytes) of package /linux/misc/opensaf-5.21.09.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "ntfs_evt.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 5.21.06_vs_5.21.09.

    1 /*      -*- OpenSAF  -*-
    2  *
    3  * (C) Copyright 2008 The OpenSAF Foundation
    4  *
    5  * This program is distributed in the hope that it will be useful, but
    6  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
    7  * or FITNESS FOR A PARTICULAR PURPOSE. This file and program are licensed
    8  * under the GNU Lesser General Public License Version 2.1, February 1999.
    9  * The complete license can be accessed from the following location:
   10  * http://opensource.org/licenses/lgpl-license.php
   11  * See the Copying file included with the OpenSAF distribution for full
   12  * licensing terms.
   13  *
   14  * Author(s): Ericsson AB
   15  *
   16  */
   17 
   18 #ifndef NTF_NTFD_NTFS_EVT_H_
   19 #define NTF_NTFD_NTFS_EVT_H_
   20 
   21 #include "rde/agent/rda_papi.h"
   22 
   23 typedef enum ntfsv_ntfs_evt_type {
   24   NTFSV_NTFS_NTFSV_MSG = 1,
   25   NTFSV_NTFS_EVT_NTFA_UP = 2,
   26   NTFSV_NTFS_EVT_NTFA_DOWN = 3,
   27   NTFSV_EVT_QUIESCED_ACK = 4,
   28   NTFSV_EVT_RDA = 5,
   29   NTFSV_NTFS_EVT_MAX
   30 } NTFSV_NTFS_EVT_TYPE;
   31 
   32 typedef struct ntfsv_ntfs_mds_info {
   33   uint32_t node_id;
   34   MDS_DEST mds_dest_id;
   35 } ntfsv_ntfs_mds_info_t;
   36 
   37 typedef struct { PCS_RDA_ROLE io_role; } ntfsv_rda_info_t;
   38 
   39 typedef struct ntfsv_ntfs_evt {
   40   struct ntfsv_ntfs_evt *next;
   41   uint32_t cb_hdl;
   42   bool internal_event;  // 0 for external and 1 for internal
   43   MDS_SYNC_SND_CTXT mds_ctxt; /* Relevant when this event has to be responded to
   44                                * in a synchronous fashion.
   45                                */
   46   MDS_DEST fr_dest;
   47   NODE_ID fr_node_id;
   48   MDS_SEND_PRIORITY_TYPE rcvd_prio; /* Priority of the recvd evt */
   49   NTFSV_NTFS_EVT_TYPE evt_type;
   50   union {
   51     ntfsv_msg_t msg;
   52     ntfsv_ntfs_mds_info_t mds_info;
   53     ntfsv_rda_info_t rda_info;
   54   } info;
   55 } ntfsv_ntfs_evt_t;
   56 
   57 /* These are the function prototypes for event handling */
   58 typedef uint32_t (*NTFSV_NTFS_NTFA_API_MSG_HANDLER)(ntfs_cb_t *,
   59                                                     ntfsv_ntfs_evt_t *evt);
   60 typedef uint32_t (*NTFSV_NTFS_EVT_HANDLER)(ntfsv_ntfs_evt_t *evt);
   61 
   62 #endif  // NTF_NTFD_NTFS_EVT_H_