~ubuntu-branches/ubuntu/trusty/bcmwl/trusty-proposed

« back to all changes in this revision

Viewing changes to src/src/include/pcicfg.h

  • Committer: Package Import Robot
  • Author(s): Alberto Milone
  • Date: 2013-05-15 13:11:43 UTC
  • mfrom: (2.1.7)
  • Revision ID: package-import@ubuntu.com-20130515131143-0i960cfjq3dsst6h
Tags: 6.30.223.30+bdcom-0ubuntu1
* New upstream release.
* debian/dkms.conf.in:
  - Drop patches for Linux 3.2 and 3.4.
* 0006-add-support-for-linux-3.8.0.patch,
  0007-nl80211-move-scan-API-to-wdev.patch:
  - Refresh against new release.
* 0008-add-support-for-linux-3.9.0.patch:
  - Add support for Linux 3.9 (LP: #1157880).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * pcicfg.h: PCI configuration constants and structures.
3
3
 *
4
 
 * Copyright (C) 2011, Broadcom Corporation. All Rights Reserved.
 
4
 * Copyright (C) 2013, Broadcom Corporation. All Rights Reserved.
5
5
 * 
6
6
 * Permission to use, copy, modify, and/or distribute this software for any
7
7
 * purpose with or without fee is hereby granted, provided that the above
15
15
 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
16
16
 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
17
 *
18
 
 * $Id: pcicfg.h 241182 2011-02-17 21:50:03Z $
 
18
 * $Id: pcicfg.h 316716 2012-02-23 04:39:13Z $
19
19
 */
20
20
 
21
21
#ifndef _h_pcicfg_
22
22
#define _h_pcicfg_
23
23
 
 
24
#define PCI_CFG_VID             0
 
25
#define PCI_CFG_DID             2
 
26
#define PCI_CFG_CMD             4
 
27
#define PCI_CFG_STAT            6
 
28
#define PCI_CFG_REV             8
 
29
#define PCI_CFG_PROGIF          9
 
30
#define PCI_CFG_SUBCL           0xa
 
31
#define PCI_CFG_BASECL          0xb
 
32
#define PCI_CFG_CLSZ            0xc
 
33
#define PCI_CFG_LATTIM          0xd
 
34
#define PCI_CFG_HDR             0xe
 
35
#define PCI_CFG_BIST            0xf
 
36
#define PCI_CFG_BAR0            0x10
 
37
#define PCI_CFG_BAR1            0x14
 
38
#define PCI_CFG_BAR2            0x18
 
39
#define PCI_CFG_BAR3            0x1c
 
40
#define PCI_CFG_BAR4            0x20
 
41
#define PCI_CFG_BAR5            0x24
 
42
#define PCI_CFG_CIS             0x28
 
43
#define PCI_CFG_SVID            0x2c
 
44
#define PCI_CFG_SSID            0x2e
 
45
#define PCI_CFG_ROMBAR          0x30
 
46
#define PCI_CFG_CAPPTR          0x34
 
47
#define PCI_CFG_INT             0x3c
 
48
#define PCI_CFG_PIN             0x3d
 
49
#define PCI_CFG_MINGNT          0x3e
 
50
#define PCI_CFG_MAXLAT          0x3f
 
51
#define PCI_CFG_DEVCTRL         0xd8
24
52
#define PCI_BAR0_WIN            0x80    
 
53
#define PCI_BAR1_WIN            0x84    
 
54
#define PCI_SPROM_CONTROL       0x88    
 
55
#define PCI_BAR1_CONTROL        0x8c    
 
56
#define PCI_INT_STATUS          0x90    
 
57
#define PCI_INT_MASK            0x94    
 
58
#define PCI_TO_SB_MB            0x98    
 
59
#define PCI_BACKPLANE_ADDR      0xa0    
 
60
#define PCI_BACKPLANE_DATA      0xa4    
 
61
#define PCI_CLK_CTL_ST          0xa8    
 
62
#define PCI_BAR0_WIN2           0xac    
 
63
#define PCI_GPIO_IN             0xb0    
 
64
#define PCI_GPIO_OUT            0xb4    
 
65
#define PCI_GPIO_OUTEN          0xb8    
 
66
 
 
67
#define PCI_BAR0_SHADOW_OFFSET  (2 * 1024)      
 
68
#define PCI_BAR0_SPROM_OFFSET   (4 * 1024)      
 
69
#define PCI_BAR0_PCIREGS_OFFSET (6 * 1024)      
 
70
#define PCI_BAR0_PCISBR_OFFSET  (4 * 1024)      
 
71
 
 
72
#define PCIE2_BAR0_WIN2         0x70 
 
73
#define PCIE2_BAR0_CORE2_WIN    0x74 
 
74
#define PCIE2_BAR0_CORE2_WIN2   0x78 
 
75
 
25
76
#define PCI_BAR0_WINSZ          (16 * 1024)     
 
77
 
 
78
#define PCI_16KB0_PCIREGS_OFFSET (8 * 1024)     
 
79
#define PCI_16KB0_CCREGS_OFFSET (12 * 1024)     
 
80
#define PCI_16KBB0_WINSZ        (16 * 1024)     
 
81
 
 
82
#define PCI_CONFIG_SPACE_SIZE   256
26
83
#endif