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()
123 dev->dev_addr[i] = stnic_eadr[i]; in stnic_probe()
126 dev->base_addr = 0x1000; in stnic_probe()
127 dev->irq = IRQ_STNIC; in stnic_probe()
128 dev->netdev_ops = &ei_netdev_ops; in stnic_probe()
132 err = request_irq (dev->irq, ei_interrupt, 0, DRV_NAME, dev); in stnic_probe()
134 netdev_emerg(dev, " unable to get IRQ %d.\n", dev->irq); in stnic_probe()
139 ei_status.name = dev->name; in stnic_probe()
157 ei_local->msg_enable = stnic_msg_enable; in stnic_probe()
161 free_irq(dev->irq, dev); in stnic_probe()
167 netdev_info(dev, "NS ST-NIC 83902A\n"); in stnic_probe()
190 half buf[2]; in stnic_get_hdr()
202 hdr->next = buf[0] >> 8; in stnic_get_hdr()
203 hdr->status = buf[0] & 0xff; in stnic_get_hdr()
205 hdr->count = buf[1]; in stnic_get_hdr()
207 hdr->count = ((buf[1] >> 8) & 0xff) | (buf[1] << 8); in stnic_get_hdr()
211 ring_page, hdr->status, hdr->next, hdr->count); in stnic_get_hdr()
218 The HP LAN doesn't use shared memory -- we put the packet
225 char *buf = skb->data; in stnic_block_input()
226 half val; in stnic_block_input()
248 length -= sizeof (half); in stnic_block_input()
258 STNIC_WRITE (PG0_RBCR0, 1); /* Write non-zero value */ in stnic_block_output()
274 *(vhalf *) PA_83902_IF = ((half) buf[1] << 8) | buf[0]; in stnic_block_output()
276 *(vhalf *) PA_83902_IF = ((half) buf[0] << 8) | buf[1]; in stnic_block_output()
279 buf += sizeof (half); in stnic_block_output()
280 length -= sizeof (half); in stnic_block_output()
297 free_irq(stnic_dev->irq, stnic_dev); in stnic_cleanup()