etherh_priv
((struct etherh_priv *)(((char *)netdev_priv(dev)) + sizeof(struct ei_device)))
static inline void etherh_set_ctrl(struct etherh_priv *eh, unsigned char mask)
static inline void etherh_clr_ctrl(struct etherh_priv *eh, unsigned char mask)
static inline unsigned int etherh_get_stat(struct etherh_priv *eh)
struct etherh_priv *eh = ec->irq_data;
struct etherh_priv *eh = ec->irq_data;
switch (etherh_priv(dev)->id) {
etherh_clr_ctrl(etherh_priv(dev), ETHERH_CP_IF);
etherh_set_ctrl(etherh_priv(dev), ETHERH_CP_IF);
switch (etherh_priv(dev)->id) {
stat = etherh_get_stat(etherh_priv(dev)) & ETHERH_CP_HEARTBEAT;
dma_base = etherh_priv(dev)->dma_base;
dma_base = etherh_priv(dev)->dma_base;
dma_base = etherh_priv(dev)->dma_base;
etherh_priv(dev)->supported);
struct etherh_priv *eh;
dev = ____alloc_ei_netdev(sizeof(struct etherh_priv));
eh = etherh_priv(dev);