linux/drivers/gpu/drm/udl/udl_main.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2012 Red Hat
 *
 * based in parts on udlfb.c:
 * Copyright (C) 2009 Roberto De Ioris <[email protected]>
 * Copyright (C) 2009 Jaya Kumar <[email protected]>
 * Copyright (C) 2009 Bernie Thompson <[email protected]>
 */

#include <drm/drm.h>
#include <drm/drm_print.h>
#include <drm/drm_probe_helper.h>

#include "udl_drv.h"

/* -BULK_SIZE as per usb-skeleton. Can we get full page and avoid overhead? */
#define BULK_SIZE

#define NR_USB_REQUEST_CHANNEL

#define MAX_TRANSFER
#define WRITES_IN_FLIGHT
#define MAX_VENDOR_DESCRIPTOR_SIZE

static struct urb *udl_get_urb_locked(struct udl_device *udl, long timeout);

static int udl_parse_vendor_descriptor(struct udl_device *udl)
{}

/*
 * Need to ensure a channel is selected before submitting URBs
 */
int udl_select_std_channel(struct udl_device *udl)
{}

void udl_urb_completion(struct urb *urb)
{}

static void udl_free_urb_list(struct drm_device *dev)
{}

static int udl_alloc_urb_list(struct drm_device *dev, int count, size_t size)
{}

static struct urb *udl_get_urb_locked(struct udl_device *udl, long timeout)
{}

#define GET_URB_TIMEOUT
struct urb *udl_get_urb(struct drm_device *dev)
{}

int udl_submit_urb(struct drm_device *dev, struct urb *urb, size_t len)
{}

/* wait until all pending URBs have been processed */
void udl_sync_pending_urbs(struct drm_device *dev)
{}

int udl_init(struct udl_device *udl)
{}

int udl_drop_usb(struct drm_device *dev)
{}