• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2017 Realtek Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  *****************************************************************************/
15 #ifndef __DRV_TYPES_PCI_H__
16 #define __DRV_TYPES_PCI_H__
17 
18 #ifdef PLATFORM_LINUX
19 	#include <linux/pci.h>
20 #endif
21 
22 #define	INTEL_VENDOR_ID				0x8086
23 #define	SIS_VENDOR_ID					0x1039
24 #define	ATI_VENDOR_ID					0x1002
25 #define	ATI_DEVICE_ID					0x7914
26 #define	AMD_VENDOR_ID					0x1022
27 
28 #define PCI_VENDER_ID_REALTEK		0x10ec
29 
30 enum aspm_mode {
31 	ASPM_MODE_UND,
32 	ASPM_MODE_PERF,
33 	ASPM_MODE_PS,
34 	ASPM_MODE_DEF,
35 };
36 
37 struct pci_priv {
38 	BOOLEAN		pci_clk_req;
39 
40 	u8	pciehdr_offset;
41 
42 	u8	linkctrl_reg;
43 	u8	pcibridge_linkctrlreg;
44 
45 	u8	amd_l1_patch;
46 
47 #ifdef CONFIG_PCI_DYNAMIC_ASPM
48 	u8	aspm_mode;
49 #endif
50 };
51 
52 typedef struct _RT_ISR_CONTENT {
53 	union {
54 		u32			IntArray[2];
55 		u32			IntReg4Byte;
56 		u16			IntReg2Byte;
57 	};
58 } RT_ISR_CONTENT, *PRT_ISR_CONTENT;
59 
60 #endif
61