summaryrefslogtreecommitdiff
path: root/goldfish_pipe.h
blob: 385e30635390adce49e3ef248d489c2532b7ddce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (C) 2018 Google, Inc.
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
 * may be copied, distributed, and modified under those terms.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */

#ifndef GOLDFISH_PIPE_H
#define GOLDFISH_PIPE_H

#define DEVICE_NAME "goldfish_pipe"

struct goldfish_pipe_dev_base {
	/* the destructor, the pointer is set in init */
	int (*deinit)(void *pipe_dev, struct platform_device *pdev);
};

/* The entry point to the pipe v1 driver */
int goldfish_pipe_device_v1_init(struct platform_device *pdev,
				 void __iomem *base,
				 int irq);

/* The entry point to the pipe v2 driver */
int goldfish_pipe_device_v2_init(struct platform_device *pdev,
				 char __iomem *base,
				 int irq);

#endif /* GOLDFISH_PIPE_H */