The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/vmware/vmci/vmci_driver.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*-
    2  * Copyright (c) 2018 VMware, Inc.
    3  *
    4  * SPDX-License-Identifier: (BSD-2-Clause OR GPL-2.0)
    5  *
    6  * $FreeBSD$
    7  */
    8 
    9 /* VMCI driver interface. */
   10 
   11 #ifndef _VMCI_DRIVER_H_
   12 #define _VMCI_DRIVER_H_
   13 
   14 #include <sys/types.h>
   15 #include <sys/syslog.h>
   16 #include <sys/systm.h>
   17 
   18 #include "vmci_call_defs.h"
   19 #include "vmci_kernel_if.h"
   20 
   21 #ifndef VMCI_DEBUG_LOGGING
   22 #define VMCI_LOG_DEBUG(_args, ...)
   23 #else /* VMCI_DEBUG_LOGGING */
   24 #define VMCI_LOG_DEBUG(_args, ...)                                      \
   25         log(LOG_DEBUG, _args, ##__VA_ARGS__)
   26 #endif /* !VMCI_DEBUG_LOGGING */
   27 #define VMCI_LOG_INFO(_args, ...)                                       \
   28         log(LOG_INFO, _args, ##__VA_ARGS__)
   29 #define VMCI_LOG_WARNING(_args, ...)                                    \
   30         log(LOG_WARNING, _args, ##__VA_ARGS__)
   31 #define VMCI_LOG_ERROR(_args, ...)                                      \
   32         log(LOG_ERR, _args, ##__VA_ARGS__)
   33 
   34 int     vmci_components_init(void);
   35 void    vmci_components_cleanup(void);
   36 int     vmci_send_datagram(struct vmci_datagram *dg);
   37 
   38 void    vmci_util_init(void);
   39 void    vmci_util_exit(void);
   40 bool    vmci_check_host_capabilities(void);
   41 void    vmci_read_datagrams_from_port(vmci_io_handle io_handle,
   42             vmci_io_port dg_in_port, uint8_t *dg_in_buffer,
   43             size_t dg_in_buffer_size);
   44 
   45 #endif /* !_VMCI_DRIVER_H_ */

Cache object: 5dc47d054711194aa62cbe86feae8cc9


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.