Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / drivers / staging / rtl8192e / rtl8192e / rtl_pci.h
1 /******************************************************************************
2  * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
3  *
4  * Based on the r8180 driver, which is:
5  * Copyright 2004-2005 Andrea Merello <andrea.merello@gmail.com>, et al.
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of version 2 of the GNU General Public License as
8  * published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along with
16  * this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
18  *
19  * The full GNU General Public License is included in this distribution in the
20  * file called LICENSE.
21  *
22  * Contact Information:
23  * wlanfae <wlanfae@realtek.com>
24  ******************************************************************************/
25 #ifndef _RTL_PCI_H
26 #define _RTL_PCI_H
27
28 #include <linux/types.h>
29 #include <linux/pci.h>
30
31 struct mp_adapter {
32         u8              LinkCtrlReg;
33
34         u8              BusNumber;
35         u8              DevNumber;
36         u8              FuncNumber;
37
38         u8              PciBridgeBusNum;
39         u8              PciBridgeDevNum;
40         u8              PciBridgeFuncNum;
41         u8              PciBridgeVendor;
42         u16             PciBridgeVendorId;
43         u16             PciBridgeDeviceId;
44         u8              PciBridgePCIeHdrOffset;
45         u8              PciBridgeLinkCtrlReg;
46 };
47
48 struct net_device;
49 bool rtl8192_pci_findadapter(struct pci_dev *pdev, struct net_device *dev);
50
51 #endif