linux/drivers/usb/renesas_usbhs/pipe.c

// SPDX-License-Identifier: GPL-1.0+
/*
 * Renesas USB driver
 *
 * Copyright (C) 2011 Renesas Solutions Corp.
 * Kuninori Morimoto <[email protected]>
 */
#include <linux/delay.h>
#include <linux/slab.h>
#include "common.h"
#include "pipe.h"

/*
 *		macros
 */
#define usbhsp_addr_offset(p)

#define usbhsp_flags_set(p, f)
#define usbhsp_flags_clr(p, f)
#define usbhsp_flags_has(p, f)
#define usbhsp_flags_init(p)

/*
 * for debug
 */
static char *usbhsp_pipe_name[] =;

char *usbhs_pipe_name(struct usbhs_pipe *pipe)
{}

static struct renesas_usbhs_driver_pipe_config
*usbhsp_get_pipe_config(struct usbhs_priv *priv, int pipe_num)
{}

/*
 *		DCPCTR/PIPEnCTR functions
 */
static void usbhsp_pipectrl_set(struct usbhs_pipe *pipe, u16 mask, u16 val)
{}

static u16 usbhsp_pipectrl_get(struct usbhs_pipe *pipe)
{}

/*
 *		DCP/PIPE functions
 */
static void __usbhsp_pipe_xxx_set(struct usbhs_pipe *pipe,
				  u16 dcp_reg, u16 pipe_reg,
				  u16 mask, u16 val)
{}

static u16 __usbhsp_pipe_xxx_get(struct usbhs_pipe *pipe,
				 u16 dcp_reg, u16 pipe_reg)
{}

/*
 *		DCPCFG/PIPECFG functions
 */
static void usbhsp_pipe_cfg_set(struct usbhs_pipe *pipe, u16 mask, u16 val)
{}

static u16 usbhsp_pipe_cfg_get(struct usbhs_pipe *pipe)
{}

/*
 *		PIPEnTRN/PIPEnTRE functions
 */
static void usbhsp_pipe_trn_set(struct usbhs_pipe *pipe, u16 mask, u16 val)
{}

static void usbhsp_pipe_tre_set(struct usbhs_pipe *pipe, u16 mask, u16 val)
{}

/*
 *		PIPEBUF
 */
static void usbhsp_pipe_buf_set(struct usbhs_pipe *pipe, u16 mask, u16 val)
{}

/*
 *		DCPMAXP/PIPEMAXP
 */
static void usbhsp_pipe_maxp_set(struct usbhs_pipe *pipe, u16 mask, u16 val)
{}

/*
 *		pipe control functions
 */
static void usbhsp_pipe_select(struct usbhs_pipe *pipe)
{}

static int usbhsp_pipe_barrier(struct usbhs_pipe *pipe)
{}

int usbhs_pipe_is_accessible(struct usbhs_pipe *pipe)
{}

bool usbhs_pipe_contains_transmittable_data(struct usbhs_pipe *pipe)
{}

/*
 *		PID ctrl
 */
static void __usbhsp_pid_try_nak_if_stall(struct usbhs_pipe *pipe)
{}

void usbhs_pipe_disable(struct usbhs_pipe *pipe)
{}

void usbhs_pipe_enable(struct usbhs_pipe *pipe)
{}

void usbhs_pipe_stall(struct usbhs_pipe *pipe)
{}

int usbhs_pipe_is_stall(struct usbhs_pipe *pipe)
{}

void usbhs_pipe_set_trans_count_if_bulk(struct usbhs_pipe *pipe, int len)
{}


/*
 *		pipe setup
 */
static int usbhsp_setup_pipecfg(struct usbhs_pipe *pipe, int is_host,
				int dir_in, u16 *pipecfg)
{}

static u16 usbhsp_setup_pipebuff(struct usbhs_pipe *pipe)
{}

void usbhs_pipe_config_update(struct usbhs_pipe *pipe, u16 devsel,
			      u16 epnum, u16 maxp)
{}

/*
 *		pipe control
 */
int usbhs_pipe_get_maxpacket(struct usbhs_pipe *pipe)
{}

int usbhs_pipe_is_dir_in(struct usbhs_pipe *pipe)
{}

int usbhs_pipe_is_dir_host(struct usbhs_pipe *pipe)
{}

int usbhs_pipe_is_running(struct usbhs_pipe *pipe)
{}

void usbhs_pipe_running(struct usbhs_pipe *pipe, int running)
{}

void usbhs_pipe_data_sequence(struct usbhs_pipe *pipe, int sequence)
{}

static int usbhs_pipe_get_data_sequence(struct usbhs_pipe *pipe)
{}

void usbhs_pipe_clear(struct usbhs_pipe *pipe)
{}

/* Should call usbhsp_pipe_select() before */
void usbhs_pipe_clear_without_sequence(struct usbhs_pipe *pipe,
				       int needs_bfre, int bfre_enable)
{}

void usbhs_pipe_config_change_bfre(struct usbhs_pipe *pipe, int enable)
{}

static struct usbhs_pipe *usbhsp_get_pipe(struct usbhs_priv *priv, u32 type)
{}

static void usbhsp_put_pipe(struct usbhs_pipe *pipe)
{}

void usbhs_pipe_init(struct usbhs_priv *priv,
		     int (*dma_map_ctrl)(struct device *dma_dev,
					 struct usbhs_pkt *pkt, int map))
{}

struct usbhs_pipe *usbhs_pipe_malloc(struct usbhs_priv *priv,
				     int endpoint_type,
				     int dir_in)
{}

void usbhs_pipe_free(struct usbhs_pipe *pipe)
{}

void usbhs_pipe_select_fifo(struct usbhs_pipe *pipe, struct usbhs_fifo *fifo)
{}


/*
 *		dcp control
 */
struct usbhs_pipe *usbhs_dcp_malloc(struct usbhs_priv *priv)
{}

void usbhs_dcp_control_transfer_done(struct usbhs_pipe *pipe)
{}

void usbhs_dcp_dir_for_host(struct usbhs_pipe *pipe, int dir_out)
{}

/*
 *		pipe module function
 */
int usbhs_pipe_probe(struct usbhs_priv *priv)
{}

void usbhs_pipe_remove(struct usbhs_priv *priv)
{}