blob: 9f95196647057cec7e8f763ce13aafd67423e26b (
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
|
/*
* Xilinx XLNK Engine Driver
*
* Copyright (C) 2010 Xilinx, Inc. All rights reserved.
*
*
*/
#ifndef XLNK_ENG_H
#define XLNK_ENG_H
#include <linux/init.h>
#include <linux/module.h>
#include <linux/io.h>
#include <linux/spinlock_types.h>
#include <linux/slab.h>
#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <linux/mutex.h>
#include <linux/string.h>
struct xlnk_eng_device {
struct list_head global_node;
struct xlnk_eng_device * (*alloc)(struct xlnk_eng_device *xdev);
void (*free)(struct xlnk_eng_device *xdev);
struct device *dev;
};
extern int xlnk_eng_register_device(struct xlnk_eng_device *xlnk_dev);
extern void xlnk_eng_unregister_device(struct xlnk_eng_device *xlnk_dev);
extern struct xlnk_eng_device *xlnk_eng_request_by_name(char *name);
#endif
|