* drivers/virtio/virtio-rpmsg.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/
* Included Files
****************************************************************************/
#include <nuttx/percpu.h>
#include <nuttx/rpmsg/rpmsg_virtio.h>
#include <nuttx/virtio/virtio.h>
#include "virtio-rpmsg.h"
* Private Data
****************************************************************************/
static DEFINE_PER_CPU_BMP(struct virtio_driver, g_virtio_rpmsg_driver) =
{
VIRTIO_ID_RPMSG,
rpmsg_virtio_probe,
rpmsg_virtio_remove,
};
#define g_virtio_rpmsg_driver this_cpu_var_bmp(g_virtio_rpmsg_driver)
* Public Functions
****************************************************************************/
* Name: virtio_register_rpmsg_driver
****************************************************************************/
int virtio_register_rpmsg_driver(void)
{
return virtio_register_driver(&g_virtio_rpmsg_driver);
}