Lines Matching +full:half +full:-
1 /* stnic.c : A SH7750 specific part of driver for NS DP83902A ST-NIC.
21 #include <mach-se/mach/se.h>
32 #define half unsigned short macro
100 *(vhalf *) (PA_83902 + ((reg) << 1)) = ((half) (val) << 8); in STNIC_WRITE()
112 return -ENODEV; in stnic_probe()
117 return -ENOMEM; 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()
138 ei_status.name = dev->name; in stnic_probe()
156 ei_local->msg_enable = stnic_msg_enable; in stnic_probe()
160 free_irq(dev->irq, dev); in stnic_probe()
166 netdev_info(dev, "NS ST-NIC 83902A\n"); in stnic_probe()
189 half buf[2]; in stnic_get_hdr()
201 hdr->next = buf[0] >> 8; in stnic_get_hdr()
202 hdr->status = buf[0] & 0xff; in stnic_get_hdr()
204 hdr->count = buf[1]; in stnic_get_hdr()
206 hdr->count = ((buf[1] >> 8) & 0xff) | (buf[1] << 8); in stnic_get_hdr()
210 ring_page, hdr->status, hdr->next, hdr->count); in stnic_get_hdr()
217 The HP LAN doesn't use shared memory -- we put the packet
224 char *buf = skb->data; in stnic_block_input()
225 half val; in stnic_block_input()
247 length -= sizeof (half); in stnic_block_input()
257 STNIC_WRITE (PG0_RBCR0, 1); /* Write non-zero value */ 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()
278 buf += sizeof (half); in stnic_block_output()
279 length -= sizeof (half); in stnic_block_output()
296 free_irq(stnic_dev->irq, stnic_dev); in stnic_cleanup()