bgmac.h (48e07fbe073202beed60a734191f8341bfd18f73) bgmac.h (6df4aff972f0294f210559ce898a8a958e23b2c6)
1#ifndef _BGMAC_H
2#define _BGMAC_H
3
4#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
5
6#define bgmac_err(bgmac, fmt, ...) \
7 dev_err(&(bgmac)->core->dev, fmt, ##__VA_ARGS__)
8#define bgmac_warn(bgmac, fmt, ...) \

--- 175 unchanged lines hidden (view full) ---

184#define BGMAC_HDBKP_CTL 0x804
185#define BGMAC_CMDCFG 0x808 /* Configuration */
186#define BGMAC_CMDCFG_TE 0x00000001 /* Set to activate TX */
187#define BGMAC_CMDCFG_RE 0x00000002 /* Set to activate RX */
188#define BGMAC_CMDCFG_ES_MASK 0x0000000c /* Ethernet speed see gmac_speed */
189#define BGMAC_CMDCFG_ES_10 0x00000000
190#define BGMAC_CMDCFG_ES_100 0x00000004
191#define BGMAC_CMDCFG_ES_1000 0x00000008
1#ifndef _BGMAC_H
2#define _BGMAC_H
3
4#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
5
6#define bgmac_err(bgmac, fmt, ...) \
7 dev_err(&(bgmac)->core->dev, fmt, ##__VA_ARGS__)
8#define bgmac_warn(bgmac, fmt, ...) \

--- 175 unchanged lines hidden (view full) ---

184#define BGMAC_HDBKP_CTL 0x804
185#define BGMAC_CMDCFG 0x808 /* Configuration */
186#define BGMAC_CMDCFG_TE 0x00000001 /* Set to activate TX */
187#define BGMAC_CMDCFG_RE 0x00000002 /* Set to activate RX */
188#define BGMAC_CMDCFG_ES_MASK 0x0000000c /* Ethernet speed see gmac_speed */
189#define BGMAC_CMDCFG_ES_10 0x00000000
190#define BGMAC_CMDCFG_ES_100 0x00000004
191#define BGMAC_CMDCFG_ES_1000 0x00000008
192#define BGMAC_CMDCFG_ES_2500 0x0000000C
192#define BGMAC_CMDCFG_PROM 0x00000010 /* Set to activate promiscuous mode */
193#define BGMAC_CMDCFG_PAD_EN 0x00000020
194#define BGMAC_CMDCFG_CF 0x00000040
195#define BGMAC_CMDCFG_PF 0x00000080
196#define BGMAC_CMDCFG_RPI 0x00000100 /* Unset to enable 802.3x tx flow control */
197#define BGMAC_CMDCFG_TAI 0x00000200
198#define BGMAC_CMDCFG_HD 0x00000400 /* Set if in half duplex mode */
199#define BGMAC_CMDCFG_HD_SHIFT 10

--- 288 unchanged lines hidden ---
193#define BGMAC_CMDCFG_PROM 0x00000010 /* Set to activate promiscuous mode */
194#define BGMAC_CMDCFG_PAD_EN 0x00000020
195#define BGMAC_CMDCFG_CF 0x00000040
196#define BGMAC_CMDCFG_PF 0x00000080
197#define BGMAC_CMDCFG_RPI 0x00000100 /* Unset to enable 802.3x tx flow control */
198#define BGMAC_CMDCFG_TAI 0x00000200
199#define BGMAC_CMDCFG_HD 0x00000400 /* Set if in half duplex mode */
200#define BGMAC_CMDCFG_HD_SHIFT 10

--- 288 unchanged lines hidden ---