linux/drivers/usb/serial/wishbone-serial.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * USB Wishbone-Serial adapter driver
 *
 * Copyright (C) 2013 Wesley W. Terpstra <[email protected]>
 * Copyright (C) 2013 GSI Helmholtz Centre for Heavy Ion Research GmbH
 */

#include <linux/kernel.h>
#include <linux/tty.h>
#include <linux/module.h>
#include <linux/usb.h>
#include <linux/usb/serial.h>
#include <linux/uaccess.h>

#define GSI_VENDOR_OPENCLOSE

static const struct usb_device_id id_table[] =;
MODULE_DEVICE_TABLE(usb, id_table);

/*
 * Etherbone must be told that a new stream has begun before data arrives.
 * This is necessary to restart the negotiation of Wishbone bus parameters.
 * Similarly, when the stream ends, Etherbone must be told so that the cycle
 * line can be driven low in the case that userspace failed to do so.
 */
static int usb_gsi_openclose(struct usb_serial_port *port, int value)
{}

static int wishbone_serial_open(struct tty_struct *tty,
				struct usb_serial_port *port)
{}

static void wishbone_serial_close(struct usb_serial_port *port)
{}

static struct usb_serial_driver wishbone_serial_device =;

static struct usb_serial_driver * const serial_drivers[] =;

module_usb_serial_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();