bgmac.h (a0b68486f6f680c7c0352a47c60042d7d95ffd87) | bgmac.h (55954f3bfdacc5908515b0c306cea23e77fab740) |
---|---|
1#ifndef _BGMAC_H 2#define _BGMAC_H 3 4#include <linux/bcma/bcma.h> 5#include <linux/brcmphy.h> 6#include <linux/netdevice.h> 7 8#define BGMAC_DEV_CTL 0x000 --- 442 unchanged lines hidden (view full) --- 451 int mac_duplex; 452 453 u8 phyaddr; 454 bool has_robosw; 455 456 bool loopback; 457}; 458 | 1#ifndef _BGMAC_H 2#define _BGMAC_H 3 4#include <linux/bcma/bcma.h> 5#include <linux/brcmphy.h> 6#include <linux/netdevice.h> 7 8#define BGMAC_DEV_CTL 0x000 --- 442 unchanged lines hidden (view full) --- 451 int mac_duplex; 452 453 u8 phyaddr; 454 bool has_robosw; 455 456 bool loopback; 457}; 458 |
459struct mii_bus *bcma_mdio_mii_register(struct bcma_device *core, u8 phyaddr); 460void bcma_mdio_mii_unregister(struct mii_bus *mii_bus); 461 |
|
459static inline u32 bgmac_read(struct bgmac *bgmac, u16 offset) 460{ 461 return bcma_read32(bgmac->core, offset); 462} 463 464static inline void bgmac_write(struct bgmac *bgmac, u16 offset, u32 value) 465{ 466 bcma_write32(bgmac->core, offset, value); --- 18 unchanged lines hidden --- | 462static inline u32 bgmac_read(struct bgmac *bgmac, u16 offset) 463{ 464 return bcma_read32(bgmac->core, offset); 465} 466 467static inline void bgmac_write(struct bgmac *bgmac, u16 offset, u32 value) 468{ 469 bcma_write32(bgmac->core, offset, value); --- 18 unchanged lines hidden --- |