-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdfv_pci.h
More file actions
43 lines (40 loc) · 1.28 KB
/
dfv_pci.h
File metadata and controls
43 lines (40 loc) · 1.28 KB
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
/*
* Device File-based I/O Virtualization (DFV)
* File: dfv_pci.h
*
* Copyright (c) 2014 Rice University, Houston, TX, USA
* All rights reserved.
*
* Authors: Ardalan Amiri Sani <arrdalan@gmail.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published by
* the Free Software Foundation.
*
* 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.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
struct dfv_pci_info {
char dev_name[32];
unsigned int funcnr;
unsigned int devnr;
unsigned int busnr;
unsigned int domainnr;
unsigned short vendor;
unsigned short device;
unsigned short subsystem_vendor;
unsigned short subsystem_device;
unsigned int class;
int cfg_size;
char driver_name[32];
u8 *config;
unsigned long *resource;
};
struct pci_dev *register_to_dfv_pci(struct dfv_pci_info *pci_info);
void unregister_from_dfv_pci(struct dfv_pci_info *pci_info);
extern struct pci_bus *dfv_pbus;