endfunction()
add_custom_target(api_headers
- DEPENDS vlibmemory_api_headers vnet_api_headers vpp_api_headers
+ DEPENDS vlibmemory_api_headers vnet_api_headers vpp_api_headers vlib_api_headers
)
-
node_cli.c
node_format.c
pci/pci.c
+ pci/pci_types_api.c
physmem.c
punt.c
punt_node.c
node.h
pci/pci_config.h
pci/pci.h
+ pci/pci_types_api.h
physmem_funcs.h
physmem.h
punt.h
vlib.h
vmbus/vmbus.h
+ API_FILES
+ pci/pci_types.api
+
LINK_LIBRARIES vppinfra svm ${VMBUS_LIBS} ${CMAKE_DL_LIBS}
+
+ DEPENDS api_headers
)
*/
#include <vlibapi/api_types.h>
-#include <vnet/pci/pci_types_api.h>
+#include <vlib/pci/pci_types_api.h>
-#define vl_typedefs /* define message structures */
-#include <vnet/vnet_all_api_h.h>
-#undef vl_typedefs
-
-#define vl_endianfun /* define message structures */
-#include <vnet/vnet_all_api_h.h>
-#undef vl_endianfun
-
-/* instantiate all the print functions we know about */
-#define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__)
-#define vl_printfun
-#include <vnet/vnet_all_api_h.h>
-#undef vl_printfun
+#include <vlib/pci/pci_types.api_types.h>
void
pci_address_decode (const vl_api_pci_address_t * in, vlib_pci_addr_t * out)
list(APPEND VNET_API_FILES syslog/syslog.api)
-##############################################################################
-# PCI
-##############################################################################
-
-list (APPEND VNET_SOURCES
- pci/pci_types_api.c
-)
-
-list(APPEND VNET_HEADERS
- pci/pci_types_api.h
-)
-
-list(APPEND VNET_API_FILES pci/pci_types.api)
-
##############################################################################
# Tunnel Endpoint Information Base
##############################################################################
import "vnet/interface_types.api";
import "vnet/ethernet/ethernet_types.api";
-import "vnet/pci/pci_types.api";
+import "vlib/pci/pci_types.api";
/** \brief Initialize a new virtio pci interface with the given parameters
#include <vnet/ip/ip.h>
#include <vnet/devices/virtio/virtio.h>
#include <vnet/devices/virtio/pci.h>
-#include <vnet/pci/pci_types_api.h>
+#include <vlib/pci/pci_types_api.h>
#include <vnet/vnet_msg_enum.h>