mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-23 11:04:44 +08:00
fd3b339cbb
This gets rid of the licence boilerplate duplicated in each file. While there fix doubled space in domain.c author line. No functional changes intended. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Acked-by: Yehezkel Bernat <yehezkelshb@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
32 lines
937 B
C
32 lines
937 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Thunderbolt DMA configuration based mailbox support
|
|
*
|
|
* Copyright (C) 2017, Intel Corporation
|
|
* Authors: Michael Jamet <michael.jamet@intel.com>
|
|
* Mika Westerberg <mika.westerberg@linux.intel.com>
|
|
*/
|
|
|
|
#ifndef DMA_PORT_H_
|
|
#define DMA_PORT_H_
|
|
|
|
#include "tb.h"
|
|
|
|
struct tb_switch;
|
|
struct tb_dma_port;
|
|
|
|
#define DMA_PORT_CSS_ADDRESS 0x3fffff
|
|
#define DMA_PORT_CSS_MAX_SIZE SZ_128
|
|
|
|
struct tb_dma_port *dma_port_alloc(struct tb_switch *sw);
|
|
void dma_port_free(struct tb_dma_port *dma);
|
|
int dma_port_flash_read(struct tb_dma_port *dma, unsigned int address,
|
|
void *buf, size_t size);
|
|
int dma_port_flash_update_auth(struct tb_dma_port *dma);
|
|
int dma_port_flash_update_auth_status(struct tb_dma_port *dma, u32 *status);
|
|
int dma_port_flash_write(struct tb_dma_port *dma, unsigned int address,
|
|
const void *buf, size_t size);
|
|
int dma_port_power_cycle(struct tb_dma_port *dma);
|
|
|
|
#endif
|