Lines Matching +full:8 +full:dev

62 static void stnic_reset (struct net_device *dev);
63 static void stnic_get_hdr (struct net_device *dev, struct e8390_pkt_hdr *hdr,
65 static void stnic_block_input (struct net_device *dev, int count,
67 static void stnic_block_output (struct net_device *dev, int count,
70 static void stnic_init (struct net_device *dev);
92 val = (*(vhalf *) (PA_83902 + ((reg) << 1)) >> 8) & 0xff; in STNIC_READ()
100 *(vhalf *) (PA_83902 + ((reg) << 1)) = ((half) (val) << 8); in STNIC_WRITE()
106 struct net_device *dev; in stnic_probe() local
115 dev = alloc_ei_netdev(); in stnic_probe()
116 if (!dev) in stnic_probe()
122 eth_hw_addr_set(dev, stnic_eadr); in stnic_probe()
125 dev->base_addr = 0x1000; in stnic_probe()
126 dev->irq = IRQ_STNIC; in stnic_probe()
127 dev->netdev_ops = &ei_netdev_ops; in stnic_probe()
131 err = request_irq (dev->irq, ei_interrupt, 0, DRV_NAME, dev); in stnic_probe()
133 netdev_emerg(dev, " unable to get IRQ %d.\n", dev->irq); in stnic_probe()
134 free_netdev(dev); in stnic_probe()
138 ei_status.name = dev->name; in stnic_probe()
154 stnic_init (dev); in stnic_probe()
155 ei_local = netdev_priv(dev); in stnic_probe()
158 err = register_netdev(dev); in stnic_probe()
160 free_irq(dev->irq, dev); in stnic_probe()
161 free_netdev(dev); in stnic_probe()
164 stnic_dev = dev; in stnic_probe()
166 netdev_info(dev, "NS ST-NIC 83902A\n"); in stnic_probe()
172 stnic_reset (struct net_device *dev) in stnic_reset() argument
174 struct ei_device *ei_local = netdev_priv(dev); in stnic_reset()
178 netif_warn(ei_local, hw, dev, "8390 reset done (%ld).\n", jiffies); in stnic_reset()
184 stnic_get_hdr (struct net_device *dev, struct e8390_pkt_hdr *hdr, in stnic_get_hdr() argument
187 struct ei_device *ei_local = netdev_priv(dev); in stnic_get_hdr()
201 hdr->next = buf[0] >> 8; in stnic_get_hdr()
206 hdr->count = ((buf[1] >> 8) & 0xff) | (buf[1] << 8); in stnic_get_hdr()
209 netif_dbg(ei_local, probe, dev, "ring %x status %02x next %02x count %04x.\n", in stnic_get_hdr()
221 stnic_block_input (struct net_device *dev, int length, struct sk_buff *skb, in stnic_block_input() argument
228 STNIC_WRITE (PG0_RSAR1, offset >> 8); in stnic_block_input()
230 STNIC_WRITE (PG0_RBCR1, length >> 8); in stnic_block_input()
241 *buf++ = val >> 8; in stnic_block_input()
243 *buf++ = val >> 8; in stnic_block_input()
254 stnic_block_output (struct net_device *dev, int length, in stnic_block_output() argument
262 STNIC_WRITE (PG0_RBCR1, length >> 8); in stnic_block_output()
273 *(vhalf *) PA_83902_IF = ((half) buf[1] << 8) | buf[0]; in stnic_block_output()
275 *(vhalf *) PA_83902_IF = ((half) buf[0] << 8) | buf[1]; in stnic_block_output()
287 stnic_init (struct net_device *dev) in stnic_init() argument
289 stnic_reset (dev); in stnic_init()
290 NS8390_init (dev, 0); in stnic_init()