Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
mv88e1xxx.h File Reference

Go to the source code of this file.

Macros

#define BMCR_SPEED1000   0x40
 
#define ADVERTISE_PAUSE   0x400
 
#define ADVERTISE_PAUSE_ASYM   0x800
 
#define MII_GBCR   9 /* 1000Base-T control register */
 
#define MII_GBSR   10 /* 1000Base-T status register */
 
#define GBCR_ADV_1000HALF   0x100
 
#define GBCR_ADV_1000FULL   0x200
 
#define GBCR_PREFER_MASTER   0x400
 
#define GBCR_MANUAL_AS_MASTER   0x800
 
#define GBCR_MANUAL_CONFIG_ENABLE   0x1000
 
#define GBSR_LP_1000HALF   0x400
 
#define GBSR_LP_1000FULL   0x800
 
#define GBSR_REMOTE_OK   0x1000
 
#define GBSR_LOCAL_OK   0x2000
 
#define GBSR_LOCAL_MASTER   0x4000
 
#define GBSR_MASTER_FAULT   0x8000
 
#define MV88E1XXX_INTR_JABBER   0x0001
 
#define MV88E1XXX_INTR_POLARITY_CHNG   0x0002
 
#define MV88E1XXX_INTR_ENG_DETECT_CHNG   0x0010
 
#define MV88E1XXX_INTR_DOWNSHIFT   0x0020
 
#define MV88E1XXX_INTR_MDI_XOVER_CHNG   0x0040
 
#define MV88E1XXX_INTR_FIFO_OVER_UNDER   0x0080
 
#define MV88E1XXX_INTR_FALSE_CARRIER   0x0100
 
#define MV88E1XXX_INTR_SYMBOL_ERROR   0x0200
 
#define MV88E1XXX_INTR_LINK_CHNG   0x0400
 
#define MV88E1XXX_INTR_AUTONEG_DONE   0x0800
 
#define MV88E1XXX_INTR_PAGE_RECV   0x1000
 
#define MV88E1XXX_INTR_DUPLEX_CHNG   0x2000
 
#define MV88E1XXX_INTR_SPEED_CHNG   0x4000
 
#define MV88E1XXX_INTR_AUTONEG_ERR   0x8000
 
#define MV88E1XXX_SPECIFIC_CNTRL_REGISTER   16
 
#define MV88E1XXX_SPECIFIC_STATUS_REGISTER   17
 
#define MV88E1XXX_INTERRUPT_ENABLE_REGISTER   18
 
#define MV88E1XXX_INTERRUPT_STATUS_REGISTER   19
 
#define MV88E1XXX_EXT_PHY_SPECIFIC_CNTRL_REGISTER   20
 
#define MV88E1XXX_RECV_ERR_CNTR_REGISTER   21
 
#define MV88E1XXX_RES_REGISTER   22
 
#define MV88E1XXX_GLOBAL_STATUS_REGISTER   23
 
#define MV88E1XXX_LED_CONTROL_REGISTER   24
 
#define MV88E1XXX_MANUAL_LED_OVERRIDE_REGISTER   25
 
#define MV88E1XXX_EXT_PHY_SPECIFIC_CNTRL_2_REGISTER   26
 
#define MV88E1XXX_EXT_PHY_SPECIFIC_STATUS_REGISTER   27
 
#define MV88E1XXX_VIRTUAL_CABLE_TESTER_REGISTER   28
 
#define MV88E1XXX_EXTENDED_ADDR_REGISTER   29
 
#define MV88E1XXX_EXTENDED_REGISTER   30
 
#define S_PSCR_MDI_XOVER_MODE   5
 
#define M_PSCR_MDI_XOVER_MODE   0x3
 
#define V_PSCR_MDI_XOVER_MODE(x)   ((x) << S_PSCR_MDI_XOVER_MODE)
 
#define G_PSCR_MDI_XOVER_MODE(x)   (((x) >> S_PSCR_MDI_XOVER_MODE) & M_PSCR_MDI_XOVER_MODE)
 
#define S_DOWNSHIFT_ENABLE   8
 
#define V_DOWNSHIFT_ENABLE   (1 << S_DOWNSHIFT_ENABLE)
 
#define S_DOWNSHIFT_CNT   9
 
#define M_DOWNSHIFT_CNT   0x7
 
#define V_DOWNSHIFT_CNT(x)   ((x) << S_DOWNSHIFT_CNT)
 
#define G_DOWNSHIFT_CNT(x)   (((x) >> S_DOWNSHIFT_CNT) & M_DOWNSHIFT_CNT)
 
#define S_PSSR_JABBER   0
 
#define V_PSSR_JABBER   (1 << S_PSSR_JABBER)
 
#define S_PSSR_POLARITY   1
 
#define V_PSSR_POLARITY   (1 << S_PSSR_POLARITY)
 
#define S_PSSR_RX_PAUSE   2
 
#define V_PSSR_RX_PAUSE   (1 << S_PSSR_RX_PAUSE)
 
#define S_PSSR_TX_PAUSE   3
 
#define V_PSSR_TX_PAUSE   (1 << S_PSSR_TX_PAUSE)
 
#define S_PSSR_ENERGY_DETECT   4
 
#define V_PSSR_ENERGY_DETECT   (1 << S_PSSR_ENERGY_DETECT)
 
#define S_PSSR_DOWNSHIFT_STATUS   5
 
#define V_PSSR_DOWNSHIFT_STATUS   (1 << S_PSSR_DOWNSHIFT_STATUS)
 
#define S_PSSR_MDI   6
 
#define V_PSSR_MDI   (1 << S_PSSR_MDI)
 
#define S_PSSR_CABLE_LEN   7
 
#define M_PSSR_CABLE_LEN   0x7
 
#define V_PSSR_CABLE_LEN(x)   ((x) << S_PSSR_CABLE_LEN)
 
#define G_PSSR_CABLE_LEN(x)   (((x) >> S_PSSR_CABLE_LEN) & M_PSSR_CABLE_LEN)
 
#define S_PSSR_LINK   10
 
#define V_PSSR_LINK   (1 << S_PSSR_LINK)
 
#define S_PSSR_STATUS_RESOLVED   11
 
#define V_PSSR_STATUS_RESOLVED   (1 << S_PSSR_STATUS_RESOLVED)
 
#define S_PSSR_PAGE_RECEIVED   12
 
#define V_PSSR_PAGE_RECEIVED   (1 << S_PSSR_PAGE_RECEIVED)
 
#define S_PSSR_DUPLEX   13
 
#define V_PSSR_DUPLEX   (1 << S_PSSR_DUPLEX)
 
#define S_PSSR_SPEED   14
 
#define M_PSSR_SPEED   0x3
 
#define V_PSSR_SPEED(x)   ((x) << S_PSSR_SPEED)
 
#define G_PSSR_SPEED(x)   (((x) >> S_PSSR_SPEED) & M_PSSR_SPEED)
 

Macro Definition Documentation

#define ADVERTISE_PAUSE   0x400

Definition at line 10 of file mv88e1xxx.h.

#define ADVERTISE_PAUSE_ASYM   0x800

Definition at line 13 of file mv88e1xxx.h.

#define BMCR_SPEED1000   0x40

Definition at line 6 of file mv88e1xxx.h.

#define G_DOWNSHIFT_CNT (   x)    (((x) >> S_DOWNSHIFT_CNT) & M_DOWNSHIFT_CNT)

Definition at line 81 of file mv88e1xxx.h.

#define G_PSCR_MDI_XOVER_MODE (   x)    (((x) >> S_PSCR_MDI_XOVER_MODE) & M_PSCR_MDI_XOVER_MODE)

Definition at line 72 of file mv88e1xxx.h.

#define G_PSSR_CABLE_LEN (   x)    (((x) >> S_PSSR_CABLE_LEN) & M_PSSR_CABLE_LEN)

Definition at line 108 of file mv88e1xxx.h.

#define G_PSSR_SPEED (   x)    (((x) >> S_PSSR_SPEED) & M_PSSR_SPEED)

Definition at line 125 of file mv88e1xxx.h.

#define GBCR_ADV_1000FULL   0x200

Definition at line 22 of file mv88e1xxx.h.

#define GBCR_ADV_1000HALF   0x100

Definition at line 21 of file mv88e1xxx.h.

#define GBCR_MANUAL_AS_MASTER   0x800

Definition at line 24 of file mv88e1xxx.h.

#define GBCR_MANUAL_CONFIG_ENABLE   0x1000

Definition at line 25 of file mv88e1xxx.h.

#define GBCR_PREFER_MASTER   0x400

Definition at line 23 of file mv88e1xxx.h.

#define GBSR_LOCAL_MASTER   0x4000

Definition at line 32 of file mv88e1xxx.h.

#define GBSR_LOCAL_OK   0x2000

Definition at line 31 of file mv88e1xxx.h.

#define GBSR_LP_1000FULL   0x800

Definition at line 29 of file mv88e1xxx.h.

#define GBSR_LP_1000HALF   0x400

Definition at line 28 of file mv88e1xxx.h.

#define GBSR_MASTER_FAULT   0x8000

Definition at line 33 of file mv88e1xxx.h.

#define GBSR_REMOTE_OK   0x1000

Definition at line 30 of file mv88e1xxx.h.

#define M_DOWNSHIFT_CNT   0x7

Definition at line 79 of file mv88e1xxx.h.

#define M_PSCR_MDI_XOVER_MODE   0x3

Definition at line 70 of file mv88e1xxx.h.

#define M_PSSR_CABLE_LEN   0x7

Definition at line 106 of file mv88e1xxx.h.

#define M_PSSR_SPEED   0x3

Definition at line 123 of file mv88e1xxx.h.

#define MII_GBCR   9 /* 1000Base-T control register */

Definition at line 17 of file mv88e1xxx.h.

#define MII_GBSR   10 /* 1000Base-T status register */

Definition at line 18 of file mv88e1xxx.h.

#define MV88E1XXX_EXT_PHY_SPECIFIC_CNTRL_2_REGISTER   26

Definition at line 62 of file mv88e1xxx.h.

#define MV88E1XXX_EXT_PHY_SPECIFIC_CNTRL_REGISTER   20

Definition at line 56 of file mv88e1xxx.h.

#define MV88E1XXX_EXT_PHY_SPECIFIC_STATUS_REGISTER   27

Definition at line 63 of file mv88e1xxx.h.

#define MV88E1XXX_EXTENDED_ADDR_REGISTER   29

Definition at line 65 of file mv88e1xxx.h.

#define MV88E1XXX_EXTENDED_REGISTER   30

Definition at line 66 of file mv88e1xxx.h.

#define MV88E1XXX_GLOBAL_STATUS_REGISTER   23

Definition at line 59 of file mv88e1xxx.h.

#define MV88E1XXX_INTERRUPT_ENABLE_REGISTER   18

Definition at line 54 of file mv88e1xxx.h.

#define MV88E1XXX_INTERRUPT_STATUS_REGISTER   19

Definition at line 55 of file mv88e1xxx.h.

#define MV88E1XXX_INTR_AUTONEG_DONE   0x0800

Definition at line 45 of file mv88e1xxx.h.

#define MV88E1XXX_INTR_AUTONEG_ERR   0x8000

Definition at line 49 of file mv88e1xxx.h.

#define MV88E1XXX_INTR_DOWNSHIFT   0x0020

Definition at line 39 of file mv88e1xxx.h.

#define MV88E1XXX_INTR_DUPLEX_CHNG   0x2000

Definition at line 47 of file mv88e1xxx.h.

#define MV88E1XXX_INTR_ENG_DETECT_CHNG   0x0010

Definition at line 38 of file mv88e1xxx.h.

#define MV88E1XXX_INTR_FALSE_CARRIER   0x0100

Definition at line 42 of file mv88e1xxx.h.

#define MV88E1XXX_INTR_FIFO_OVER_UNDER   0x0080

Definition at line 41 of file mv88e1xxx.h.

#define MV88E1XXX_INTR_JABBER   0x0001

Definition at line 36 of file mv88e1xxx.h.

#define MV88E1XXX_INTR_LINK_CHNG   0x0400

Definition at line 44 of file mv88e1xxx.h.

#define MV88E1XXX_INTR_MDI_XOVER_CHNG   0x0040

Definition at line 40 of file mv88e1xxx.h.

#define MV88E1XXX_INTR_PAGE_RECV   0x1000

Definition at line 46 of file mv88e1xxx.h.

#define MV88E1XXX_INTR_POLARITY_CHNG   0x0002

Definition at line 37 of file mv88e1xxx.h.

#define MV88E1XXX_INTR_SPEED_CHNG   0x4000

Definition at line 48 of file mv88e1xxx.h.

#define MV88E1XXX_INTR_SYMBOL_ERROR   0x0200

Definition at line 43 of file mv88e1xxx.h.

#define MV88E1XXX_LED_CONTROL_REGISTER   24

Definition at line 60 of file mv88e1xxx.h.

#define MV88E1XXX_MANUAL_LED_OVERRIDE_REGISTER   25

Definition at line 61 of file mv88e1xxx.h.

#define MV88E1XXX_RECV_ERR_CNTR_REGISTER   21

Definition at line 57 of file mv88e1xxx.h.

#define MV88E1XXX_RES_REGISTER   22

Definition at line 58 of file mv88e1xxx.h.

#define MV88E1XXX_SPECIFIC_CNTRL_REGISTER   16

Definition at line 52 of file mv88e1xxx.h.

#define MV88E1XXX_SPECIFIC_STATUS_REGISTER   17

Definition at line 53 of file mv88e1xxx.h.

#define MV88E1XXX_VIRTUAL_CABLE_TESTER_REGISTER   28

Definition at line 64 of file mv88e1xxx.h.

#define S_DOWNSHIFT_CNT   9

Definition at line 78 of file mv88e1xxx.h.

#define S_DOWNSHIFT_ENABLE   8

Definition at line 75 of file mv88e1xxx.h.

#define S_PSCR_MDI_XOVER_MODE   5

Definition at line 69 of file mv88e1xxx.h.

#define S_PSSR_CABLE_LEN   7

Definition at line 105 of file mv88e1xxx.h.

#define S_PSSR_DOWNSHIFT_STATUS   5

Definition at line 99 of file mv88e1xxx.h.

#define S_PSSR_DUPLEX   13

Definition at line 119 of file mv88e1xxx.h.

#define S_PSSR_ENERGY_DETECT   4

Definition at line 96 of file mv88e1xxx.h.

#define S_PSSR_JABBER   0

Definition at line 84 of file mv88e1xxx.h.

#define S_PSSR_LINK   10

Definition at line 110 of file mv88e1xxx.h.

#define S_PSSR_MDI   6

Definition at line 102 of file mv88e1xxx.h.

#define S_PSSR_PAGE_RECEIVED   12

Definition at line 116 of file mv88e1xxx.h.

#define S_PSSR_POLARITY   1

Definition at line 87 of file mv88e1xxx.h.

#define S_PSSR_RX_PAUSE   2

Definition at line 90 of file mv88e1xxx.h.

#define S_PSSR_SPEED   14

Definition at line 122 of file mv88e1xxx.h.

#define S_PSSR_STATUS_RESOLVED   11

Definition at line 113 of file mv88e1xxx.h.

#define S_PSSR_TX_PAUSE   3

Definition at line 93 of file mv88e1xxx.h.

#define V_DOWNSHIFT_CNT (   x)    ((x) << S_DOWNSHIFT_CNT)

Definition at line 80 of file mv88e1xxx.h.

#define V_DOWNSHIFT_ENABLE   (1 << S_DOWNSHIFT_ENABLE)

Definition at line 76 of file mv88e1xxx.h.

#define V_PSCR_MDI_XOVER_MODE (   x)    ((x) << S_PSCR_MDI_XOVER_MODE)

Definition at line 71 of file mv88e1xxx.h.

#define V_PSSR_CABLE_LEN (   x)    ((x) << S_PSSR_CABLE_LEN)

Definition at line 107 of file mv88e1xxx.h.

#define V_PSSR_DOWNSHIFT_STATUS   (1 << S_PSSR_DOWNSHIFT_STATUS)

Definition at line 100 of file mv88e1xxx.h.

#define V_PSSR_DUPLEX   (1 << S_PSSR_DUPLEX)

Definition at line 120 of file mv88e1xxx.h.

#define V_PSSR_ENERGY_DETECT   (1 << S_PSSR_ENERGY_DETECT)

Definition at line 97 of file mv88e1xxx.h.

#define V_PSSR_JABBER   (1 << S_PSSR_JABBER)

Definition at line 85 of file mv88e1xxx.h.

#define V_PSSR_LINK   (1 << S_PSSR_LINK)

Definition at line 111 of file mv88e1xxx.h.

#define V_PSSR_MDI   (1 << S_PSSR_MDI)

Definition at line 103 of file mv88e1xxx.h.

#define V_PSSR_PAGE_RECEIVED   (1 << S_PSSR_PAGE_RECEIVED)

Definition at line 117 of file mv88e1xxx.h.

#define V_PSSR_POLARITY   (1 << S_PSSR_POLARITY)

Definition at line 88 of file mv88e1xxx.h.

#define V_PSSR_RX_PAUSE   (1 << S_PSSR_RX_PAUSE)

Definition at line 91 of file mv88e1xxx.h.

#define V_PSSR_SPEED (   x)    ((x) << S_PSSR_SPEED)

Definition at line 124 of file mv88e1xxx.h.

#define V_PSSR_STATUS_RESOLVED   (1 << S_PSSR_STATUS_RESOLVED)

Definition at line 114 of file mv88e1xxx.h.

#define V_PSSR_TX_PAUSE   (1 << S_PSSR_TX_PAUSE)

Definition at line 94 of file mv88e1xxx.h.