Lines Matching +full:8 +full:dev
59 static void stnic_reset (struct net_device *dev);
60 static void stnic_get_hdr (struct net_device *dev, struct e8390_pkt_hdr *hdr,
62 static void stnic_block_input (struct net_device *dev, int count,
64 static void stnic_block_output (struct net_device *dev, int count,
67 static void stnic_init (struct net_device *dev);
89 val = (*(vhalf *) (PA_83902 + ((reg) << 1)) >> 8) & 0xff; in STNIC_READ()
97 *(vhalf *) (PA_83902 + ((reg) << 1)) = ((half) (val) << 8); in STNIC_WRITE()
103 struct net_device *dev; in stnic_probe() local
112 dev = alloc_ei_netdev(); in stnic_probe()
113 if (!dev) in stnic_probe()
119 eth_hw_addr_set(dev, stnic_eadr); in stnic_probe()
122 dev->base_addr = 0x1000; in stnic_probe()
123 dev->irq = IRQ_STNIC; in stnic_probe()
124 dev->netdev_ops = &ei_netdev_ops; in stnic_probe()
128 err = request_irq (dev->irq, ei_interrupt, 0, DRV_NAME, dev); in stnic_probe()
130 netdev_emerg(dev, " unable to get IRQ %d.\n", dev->irq); in stnic_probe()
131 free_netdev(dev); in stnic_probe()
135 ei_status.name = dev->name; in stnic_probe()
151 stnic_init (dev); in stnic_probe()
152 ei_local = netdev_priv(dev); in stnic_probe()
155 err = register_netdev(dev); in stnic_probe()
157 free_irq(dev->irq, dev); in stnic_probe()
158 free_netdev(dev); in stnic_probe()
161 stnic_dev = dev; in stnic_probe()
163 netdev_info(dev, "NS ST-NIC 83902A\n"); in stnic_probe()
169 stnic_reset (struct net_device *dev) in stnic_reset() argument
171 struct ei_device *ei_local = netdev_priv(dev); in stnic_reset()
175 netif_warn(ei_local, hw, dev, "8390 reset done (%ld).\n", jiffies); in stnic_reset()
181 stnic_get_hdr (struct net_device *dev, struct e8390_pkt_hdr *hdr, in stnic_get_hdr() argument
184 struct ei_device *ei_local = netdev_priv(dev); in stnic_get_hdr()
198 hdr->next = buf[0] >> 8; in stnic_get_hdr()
203 hdr->count = ((buf[1] >> 8) & 0xff) | (buf[1] << 8); in stnic_get_hdr()
206 netif_dbg(ei_local, probe, dev, "ring %x status %02x next %02x count %04x.\n", in stnic_get_hdr()
218 stnic_block_input (struct net_device *dev, int length, struct sk_buff *skb, in stnic_block_input() argument
225 STNIC_WRITE (PG0_RSAR1, offset >> 8); in stnic_block_input()
227 STNIC_WRITE (PG0_RBCR1, length >> 8); in stnic_block_input()
238 *buf++ = val >> 8; in stnic_block_input()
240 *buf++ = val >> 8; in stnic_block_input()
251 stnic_block_output (struct net_device *dev, int length, in stnic_block_output() argument
259 STNIC_WRITE (PG0_RBCR1, length >> 8); in stnic_block_output()
270 *(vhalf *) PA_83902_IF = ((half) buf[1] << 8) | buf[0]; in stnic_block_output()
272 *(vhalf *) PA_83902_IF = ((half) buf[0] << 8) | buf[1]; in stnic_block_output()
284 stnic_init (struct net_device *dev) in stnic_init() argument
286 stnic_reset (dev); in stnic_init()
287 NS8390_init (dev, 0); in stnic_init()