Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
bcma_driver_gmac_cmn.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  bcma_drv_gmac_cmn
 

Macros

#define BCMA_GMAC_CMN_STAG0   0x000
 
#define BCMA_GMAC_CMN_STAG1   0x004
 
#define BCMA_GMAC_CMN_STAG2   0x008
 
#define BCMA_GMAC_CMN_STAG3   0x00C
 
#define BCMA_GMAC_CMN_PARSER_CTL   0x020
 
#define BCMA_GMAC_CMN_MIB_MAX_LEN   0x024
 
#define BCMA_GMAC_CMN_PHY_ACCESS   0x100
 
#define BCMA_GMAC_CMN_PA_DATA_MASK   0x0000ffff
 
#define BCMA_GMAC_CMN_PA_ADDR_MASK   0x001f0000
 
#define BCMA_GMAC_CMN_PA_ADDR_SHIFT   16
 
#define BCMA_GMAC_CMN_PA_REG_MASK   0x1f000000
 
#define BCMA_GMAC_CMN_PA_REG_SHIFT   24
 
#define BCMA_GMAC_CMN_PA_WRITE   0x20000000
 
#define BCMA_GMAC_CMN_PA_START   0x40000000
 
#define BCMA_GMAC_CMN_PHY_CTL   0x104
 
#define BCMA_GMAC_CMN_PC_EPA_MASK   0x0000001f
 
#define BCMA_GMAC_CMN_PC_MCT_MASK   0x007f0000
 
#define BCMA_GMAC_CMN_PC_MCT_SHIFT   16
 
#define BCMA_GMAC_CMN_PC_MTE   0x00800000
 
#define BCMA_GMAC_CMN_GMAC0_RGMII_CTL   0x110
 
#define BCMA_GMAC_CMN_CFP_ACCESS   0x200
 
#define BCMA_GMAC_CMN_CFP_TCAM_DATA0   0x210
 
#define BCMA_GMAC_CMN_CFP_TCAM_DATA1   0x214
 
#define BCMA_GMAC_CMN_CFP_TCAM_DATA2   0x218
 
#define BCMA_GMAC_CMN_CFP_TCAM_DATA3   0x21C
 
#define BCMA_GMAC_CMN_CFP_TCAM_DATA4   0x220
 
#define BCMA_GMAC_CMN_CFP_TCAM_DATA5   0x224
 
#define BCMA_GMAC_CMN_CFP_TCAM_DATA6   0x228
 
#define BCMA_GMAC_CMN_CFP_TCAM_DATA7   0x22C
 
#define BCMA_GMAC_CMN_CFP_TCAM_MASK0   0x230
 
#define BCMA_GMAC_CMN_CFP_TCAM_MASK1   0x234
 
#define BCMA_GMAC_CMN_CFP_TCAM_MASK2   0x238
 
#define BCMA_GMAC_CMN_CFP_TCAM_MASK3   0x23C
 
#define BCMA_GMAC_CMN_CFP_TCAM_MASK4   0x240
 
#define BCMA_GMAC_CMN_CFP_TCAM_MASK5   0x244
 
#define BCMA_GMAC_CMN_CFP_TCAM_MASK6   0x248
 
#define BCMA_GMAC_CMN_CFP_TCAM_MASK7   0x24C
 
#define BCMA_GMAC_CMN_CFP_ACTION_DATA   0x250
 
#define BCMA_GMAC_CMN_TCAM_BIST_CTL   0x2A0
 
#define BCMA_GMAC_CMN_TCAM_BIST_STATUS   0x2A4
 
#define BCMA_GMAC_CMN_TCAM_CMP_STATUS   0x2A8
 
#define BCMA_GMAC_CMN_TCAM_DISABLE   0x2AC
 
#define BCMA_GMAC_CMN_TCAM_TEST_CTL   0x2F0
 
#define BCMA_GMAC_CMN_UDF_0_A3_A0   0x300
 
#define BCMA_GMAC_CMN_UDF_0_A7_A4   0x304
 
#define BCMA_GMAC_CMN_UDF_0_A8   0x308
 
#define BCMA_GMAC_CMN_UDF_1_A3_A0   0x310
 
#define BCMA_GMAC_CMN_UDF_1_A7_A4   0x314
 
#define BCMA_GMAC_CMN_UDF_1_A8   0x318
 
#define BCMA_GMAC_CMN_UDF_2_A3_A0   0x320
 
#define BCMA_GMAC_CMN_UDF_2_A7_A4   0x324
 
#define BCMA_GMAC_CMN_UDF_2_A8   0x328
 
#define BCMA_GMAC_CMN_UDF_0_B3_B0   0x330
 
#define BCMA_GMAC_CMN_UDF_0_B7_B4   0x334
 
#define BCMA_GMAC_CMN_UDF_0_B8   0x338
 
#define BCMA_GMAC_CMN_UDF_1_B3_B0   0x340
 
#define BCMA_GMAC_CMN_UDF_1_B7_B4   0x344
 
#define BCMA_GMAC_CMN_UDF_1_B8   0x348
 
#define BCMA_GMAC_CMN_UDF_2_B3_B0   0x350
 
#define BCMA_GMAC_CMN_UDF_2_B7_B4   0x354
 
#define BCMA_GMAC_CMN_UDF_2_B8   0x358
 
#define BCMA_GMAC_CMN_UDF_0_C3_C0   0x360
 
#define BCMA_GMAC_CMN_UDF_0_C7_C4   0x364
 
#define BCMA_GMAC_CMN_UDF_0_C8   0x368
 
#define BCMA_GMAC_CMN_UDF_1_C3_C0   0x370
 
#define BCMA_GMAC_CMN_UDF_1_C7_C4   0x374
 
#define BCMA_GMAC_CMN_UDF_1_C8   0x378
 
#define BCMA_GMAC_CMN_UDF_2_C3_C0   0x380
 
#define BCMA_GMAC_CMN_UDF_2_C7_C4   0x384
 
#define BCMA_GMAC_CMN_UDF_2_C8   0x388
 
#define BCMA_GMAC_CMN_UDF_0_D3_D0   0x390
 
#define BCMA_GMAC_CMN_UDF_0_D7_D4   0x394
 
#define BCMA_GMAC_CMN_UDF_0_D11_D8   0x394
 
#define gmac_cmn_read16(gc, offset)   bcma_read16((gc)->core, offset)
 
#define gmac_cmn_read32(gc, offset)   bcma_read32((gc)->core, offset)
 
#define gmac_cmn_write16(gc, offset, val)   bcma_write16((gc)->core, offset, val)
 
#define gmac_cmn_write32(gc, offset, val)   bcma_write32((gc)->core, offset, val)
 

Macro Definition Documentation

#define BCMA_GMAC_CMN_CFP_ACCESS   0x200

Definition at line 26 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_CFP_ACTION_DATA   0x250

Definition at line 43 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_CFP_TCAM_DATA0   0x210

Definition at line 27 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_CFP_TCAM_DATA1   0x214

Definition at line 28 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_CFP_TCAM_DATA2   0x218

Definition at line 29 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_CFP_TCAM_DATA3   0x21C

Definition at line 30 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_CFP_TCAM_DATA4   0x220

Definition at line 31 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_CFP_TCAM_DATA5   0x224

Definition at line 32 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_CFP_TCAM_DATA6   0x228

Definition at line 33 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_CFP_TCAM_DATA7   0x22C

Definition at line 34 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_CFP_TCAM_MASK0   0x230

Definition at line 35 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_CFP_TCAM_MASK1   0x234

Definition at line 36 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_CFP_TCAM_MASK2   0x238

Definition at line 37 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_CFP_TCAM_MASK3   0x23C

Definition at line 38 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_CFP_TCAM_MASK4   0x240

Definition at line 39 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_CFP_TCAM_MASK5   0x244

Definition at line 40 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_CFP_TCAM_MASK6   0x248

Definition at line 41 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_CFP_TCAM_MASK7   0x24C

Definition at line 42 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_GMAC0_RGMII_CTL   0x110

Definition at line 25 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_MIB_MAX_LEN   0x024

Definition at line 11 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_PA_ADDR_MASK   0x001f0000

Definition at line 14 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_PA_ADDR_SHIFT   16

Definition at line 15 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_PA_DATA_MASK   0x0000ffff

Definition at line 13 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_PA_REG_MASK   0x1f000000

Definition at line 16 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_PA_REG_SHIFT   24

Definition at line 17 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_PA_START   0x40000000

Definition at line 19 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_PA_WRITE   0x20000000

Definition at line 18 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_PARSER_CTL   0x020

Definition at line 10 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_PC_EPA_MASK   0x0000001f

Definition at line 21 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_PC_MCT_MASK   0x007f0000

Definition at line 22 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_PC_MCT_SHIFT   16

Definition at line 23 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_PC_MTE   0x00800000

Definition at line 24 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_PHY_ACCESS   0x100

Definition at line 12 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_PHY_CTL   0x104

Definition at line 20 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_STAG0   0x000

Definition at line 6 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_STAG1   0x004

Definition at line 7 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_STAG2   0x008

Definition at line 8 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_STAG3   0x00C

Definition at line 9 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_TCAM_BIST_CTL   0x2A0

Definition at line 44 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_TCAM_BIST_STATUS   0x2A4

Definition at line 45 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_TCAM_CMP_STATUS   0x2A8

Definition at line 46 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_TCAM_DISABLE   0x2AC

Definition at line 47 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_TCAM_TEST_CTL   0x2F0

Definition at line 48 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_0_A3_A0   0x300

Definition at line 49 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_0_A7_A4   0x304

Definition at line 50 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_0_A8   0x308

Definition at line 51 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_0_B3_B0   0x330

Definition at line 58 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_0_B7_B4   0x334

Definition at line 59 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_0_B8   0x338

Definition at line 60 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_0_C3_C0   0x360

Definition at line 67 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_0_C7_C4   0x364

Definition at line 68 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_0_C8   0x368

Definition at line 69 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_0_D11_D8   0x394

Definition at line 78 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_0_D3_D0   0x390

Definition at line 76 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_0_D7_D4   0x394

Definition at line 77 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_1_A3_A0   0x310

Definition at line 52 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_1_A7_A4   0x314

Definition at line 53 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_1_A8   0x318

Definition at line 54 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_1_B3_B0   0x340

Definition at line 61 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_1_B7_B4   0x344

Definition at line 62 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_1_B8   0x348

Definition at line 63 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_1_C3_C0   0x370

Definition at line 70 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_1_C7_C4   0x374

Definition at line 71 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_1_C8   0x378

Definition at line 72 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_2_A3_A0   0x320

Definition at line 55 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_2_A7_A4   0x324

Definition at line 56 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_2_A8   0x328

Definition at line 57 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_2_B3_B0   0x350

Definition at line 64 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_2_B7_B4   0x354

Definition at line 65 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_2_B8   0x358

Definition at line 66 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_2_C3_C0   0x380

Definition at line 73 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_2_C7_C4   0x384

Definition at line 74 of file bcma_driver_gmac_cmn.h.

#define BCMA_GMAC_CMN_UDF_2_C8   0x388

Definition at line 75 of file bcma_driver_gmac_cmn.h.

#define gmac_cmn_read16 (   gc,
  offset 
)    bcma_read16((gc)->core, offset)

Definition at line 89 of file bcma_driver_gmac_cmn.h.

#define gmac_cmn_read32 (   gc,
  offset 
)    bcma_read32((gc)->core, offset)

Definition at line 90 of file bcma_driver_gmac_cmn.h.

#define gmac_cmn_write16 (   gc,
  offset,
  val 
)    bcma_write16((gc)->core, offset, val)

Definition at line 91 of file bcma_driver_gmac_cmn.h.

#define gmac_cmn_write32 (   gc,
  offset,
  val 
)    bcma_write32((gc)->core, offset, val)

Definition at line 92 of file bcma_driver_gmac_cmn.h.