-
Notifications
You must be signed in to change notification settings - Fork 2
/
nf10fops.h
56 lines (50 loc) · 1.76 KB
/
nf10fops.h
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*******************************************************************************
*
* NetFPGA-10G http://www.netfpga.org
*
* File:
* nf10fops.h
*
* Project:
* nic
*
* Author:
* Mario Flajslik
*
* Description:
* Function prototypes for nf10fops.c
*
* Copyright notice:
* Copyright (C) 2010, 2011 The Board of Trustees of The Leland Stanford
* Junior University
*
* Licence:
* This file is part of the NetFPGA 10G development base package.
*
* This file is free code: you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License version 2.1 as
* published by the Free Software Foundation.
*
* This package 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with the NetFPGA source package. If not, see
* http://www.gnu.org/licenses/.
*
*/
#ifndef NF10FOPS_H
#define NF10FOPS_H
#include <linux/fs.h>
#include "nf10driver.h"
#define NF10_IOCTL_CMD_READ_STAT (SIOCDEVPRIVATE+0)
#define NF10_IOCTL_CMD_WRITE_REG (SIOCDEVPRIVATE+1)
#define NF10_IOCTL_CMD_READ_REG (SIOCDEVPRIVATE+2)
int nf10fops_open (struct inode *n, struct file *f);
long nf10fops_ioctl (struct file *f, unsigned int cmd, unsigned long arg);
int nf10fops_release (struct inode *n, struct file *f);
int nf10fops_probe(struct pci_dev *pdev, struct nf10_card *card);
int nf10fops_remove(struct pci_dev *pdev, struct nf10_card *card);
#endif