#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/tty.h>
#include <linux/tty_driver.h>
#include <linux/tty_flip.h>
#include <linux/module.h>
#include <linux/spinlock.h>
#include <linux/uaccess.h>
#include <linux/usb.h>
#include <linux/usb/serial.h>
#include "belkin_sa.h"
#define DRIVER_AUTHOR …
#define DRIVER_DESC …
static int belkin_sa_port_probe(struct usb_serial_port *port);
static void belkin_sa_port_remove(struct usb_serial_port *port);
static int belkin_sa_open(struct tty_struct *tty,
struct usb_serial_port *port);
static void belkin_sa_close(struct usb_serial_port *port);
static void belkin_sa_read_int_callback(struct urb *urb);
static void belkin_sa_process_read_urb(struct urb *urb);
static void belkin_sa_set_termios(struct tty_struct *tty,
struct usb_serial_port *port,
const struct ktermios *old_termios);
static int belkin_sa_break_ctl(struct tty_struct *tty, int break_state);
static int belkin_sa_tiocmget(struct tty_struct *tty);
static int belkin_sa_tiocmset(struct tty_struct *tty,
unsigned int set, unsigned int clear);
static const struct usb_device_id id_table[] = …;
MODULE_DEVICE_TABLE(usb, id_table);
static struct usb_serial_driver belkin_device = …;
static struct usb_serial_driver * const serial_drivers[] = …;
struct belkin_sa_private { … };
#define WDR_TIMEOUT …
#define BSA_USB_CMD(c, v) …
static int belkin_sa_port_probe(struct usb_serial_port *port)
{ … }
static void belkin_sa_port_remove(struct usb_serial_port *port)
{ … }
static int belkin_sa_open(struct tty_struct *tty,
struct usb_serial_port *port)
{ … }
static void belkin_sa_close(struct usb_serial_port *port)
{ … }
static void belkin_sa_read_int_callback(struct urb *urb)
{ … }
static void belkin_sa_process_read_urb(struct urb *urb)
{ … }
static void belkin_sa_set_termios(struct tty_struct *tty,
struct usb_serial_port *port,
const struct ktermios *old_termios)
{ … }
static int belkin_sa_break_ctl(struct tty_struct *tty, int break_state)
{ … }
static int belkin_sa_tiocmget(struct tty_struct *tty)
{ … }
static int belkin_sa_tiocmset(struct tty_struct *tty,
unsigned int set, unsigned int clear)
{ … }
module_usb_serial_driver(…);
MODULE_AUTHOR(…);
MODULE_DESCRIPTION(…);
MODULE_LICENSE(…) …;