Lines Matching +full:0 +full:x0000001
57 #define KAWETH_STATUS_BROKEN 0x0000001
58 #define KAWETH_STATUS_CLOSING 0x0000002
59 #define KAWETH_STATUS_SUSPENDING 0x0000004
63 #define KAWETH_PACKET_FILTER_PROMISCUOUS 0x01
64 #define KAWETH_PACKET_FILTER_ALL_MULTICAST 0x02
65 #define KAWETH_PACKET_FILTER_DIRECTED 0x04
66 #define KAWETH_PACKET_FILTER_BROADCAST 0x08
67 #define KAWETH_PACKET_FILTER_MULTICAST 0x10
70 #define KAWETH_COMMAND_GET_ETHERNET_DESC 0x00
71 #define KAWETH_COMMAND_MULTICAST_FILTERS 0x01
72 #define KAWETH_COMMAND_SET_PACKET_FILTER 0x02
73 #define KAWETH_COMMAND_STATISTICS 0x03
74 #define KAWETH_COMMAND_SET_TEMP_MAC 0x06
75 #define KAWETH_COMMAND_GET_TEMP_MAC 0x07
76 #define KAWETH_COMMAND_SET_URB_SIZE 0x08
77 #define KAWETH_COMMAND_SET_SOFS_WAIT 0x09
78 #define KAWETH_COMMAND_SCAN 0xFF
80 #define KAWETH_SOFS_TO_WAIT 0x05
84 #define STATE_OFFSET 0
85 #define STATE_MASK 0x40
113 { USB_DEVICE(0x03e8, 0x0008) }, /* AOX Endpoints USB Ethernet */
114 { USB_DEVICE(0x04bb, 0x0901) }, /* I-O DATA USB-ET/T */
115 { USB_DEVICE(0x0506, 0x03e8) }, /* 3Com 3C19250 */
116 { USB_DEVICE(0x0506, 0x11f8) }, /* 3Com 3C460 */
117 { USB_DEVICE(0x0557, 0x2002) }, /* ATEN USB Ethernet */
118 { USB_DEVICE(0x0557, 0x4000) }, /* D-Link DSB-650C */
119 { USB_DEVICE(0x0565, 0x0002) }, /* Peracom Enet */
120 { USB_DEVICE(0x0565, 0x0003) }, /* Optus@Home UEP1045A */
121 { USB_DEVICE(0x0565, 0x0005) }, /* Peracom Enet2 */
122 { USB_DEVICE(0x05e9, 0x0008) }, /* KLSI KL5KUSB101B */
123 { USB_DEVICE(0x05e9, 0x0009) }, /* KLSI KL5KUSB101B (Board change) */
124 { USB_DEVICE(0x066b, 0x2202) }, /* Linksys USB10T */
125 { USB_DEVICE(0x06e1, 0x0008) }, /* ADS USB-10BT */
126 { USB_DEVICE(0x06e1, 0x0009) }, /* ADS USB-10BT */
127 { USB_DEVICE(0x0707, 0x0100) }, /* SMC 2202USB */
128 { USB_DEVICE(0x07aa, 0x0001) }, /* Correga K.K. */
129 { USB_DEVICE(0x07b8, 0x4000) }, /* D-Link DU-E10 */
130 { USB_DEVICE(0x07c9, 0xb010) }, /* Allied Telesyn AT-USB10 USB Ethernet Adapter */
131 { USB_DEVICE(0x0846, 0x1001) }, /* NetGear EA-101 */
132 { USB_DEVICE(0x0846, 0x1002) }, /* NetGear EA-101 */
133 { USB_DEVICE(0x085a, 0x0008) }, /* PortGear Ethernet Adapter */
134 { USB_DEVICE(0x085a, 0x0009) }, /* PortGear Ethernet Adapter */
135 { USB_DEVICE(0x087d, 0x5704) }, /* Jaton USB Ethernet Device Adapter */
136 { USB_DEVICE(0x0951, 0x0008) }, /* Kingston Technology USB Ethernet Adapter */
137 { USB_DEVICE(0x095a, 0x3003) }, /* Portsmith Express Ethernet Adapter */
138 { USB_DEVICE(0x10bd, 0x1427) }, /* ASANTE USB To Ethernet Adapter */
139 { USB_DEVICE(0x1342, 0x0204) }, /* Mobility USB-Ethernet Adapter */
140 { USB_DEVICE(0x13d2, 0x0400) }, /* Shark Pocket Adapter */
141 { USB_DEVICE(0x1485, 0x0001) }, /* Silicom U2E */
142 { USB_DEVICE(0x1485, 0x0002) }, /* Psion Dacom Gold Port Ethernet */
143 { USB_DEVICE(0x1645, 0x0005) }, /* Entrega E45 */
144 { USB_DEVICE(0x1645, 0x0008) }, /* Entrega USB Ethernet Adapter */
145 { USB_DEVICE(0x1645, 0x8005) }, /* PortGear Ethernet Adapter */
146 { USB_DEVICE(0x1668, 0x0323) }, /* Actiontec USB Ethernet */
147 { USB_DEVICE(0x2001, 0x4000) }, /* D-link DSB-650C */
239 return usb_control_msg(kaweth->dev, usb_rcvctrlpipe(kaweth->dev, 0), in kaweth_read_configuration()
242 0, 0, in kaweth_read_configuration()
255 return usb_control_msg(kaweth->dev, usb_sndctrlpipe(kaweth->dev, 0), in kaweth_set_urb_size()
258 urb_size, 0, in kaweth_set_urb_size()
259 &kaweth->scratch, 0, in kaweth_set_urb_size()
270 return usb_control_msg(kaweth->dev, usb_sndctrlpipe(kaweth->dev, 0), in kaweth_set_sofs_wait()
273 sofs_wait, 0, in kaweth_set_sofs_wait()
274 &kaweth->scratch, 0, in kaweth_set_sofs_wait()
287 return usb_control_msg(kaweth->dev, usb_sndctrlpipe(kaweth->dev, 0), in kaweth_set_receive_filter()
290 receive_filter, 0, in kaweth_set_receive_filter()
291 &kaweth->scratch, 0, in kaweth_set_receive_filter()
324 kaweth->firmware_buf[2] = (data_len & 0xFF) - 7; in kaweth_download_firmware()
337 return usb_control_msg(kaweth->dev, usb_sndctrlpipe(kaweth->dev, 0), in kaweth_download_firmware()
340 0, 0, in kaweth_download_firmware()
351 kaweth->firmware_buf[0] = 0xB6; in kaweth_trigger_firmware()
352 kaweth->firmware_buf[1] = 0xC3; in kaweth_trigger_firmware()
353 kaweth->firmware_buf[2] = 0x01; in kaweth_trigger_firmware()
354 kaweth->firmware_buf[3] = 0x00; in kaweth_trigger_firmware()
355 kaweth->firmware_buf[4] = 0x06; in kaweth_trigger_firmware()
357 kaweth->firmware_buf[6] = 0x00; in kaweth_trigger_firmware()
358 kaweth->firmware_buf[7] = 0x00; in kaweth_trigger_firmware()
360 return usb_control_msg(kaweth->dev, usb_sndctrlpipe(kaweth->dev, 0), in kaweth_trigger_firmware()
363 0, 0, in kaweth_trigger_firmware()
399 kaweth->suspend_lowmem_ctrl = 0; in kaweth_resubmit_int_urb()
416 case 0: /* success */ in int_callback()
482 kaweth->suspend_lowmem_rx = 0; in kaweth_resubmit_rx_urb()
620 return 0; in kaweth_open()
652 kaweth->opened = 0; in kaweth_close()
662 return 0; in kaweth_close()
685 if (unlikely(status != 0)) in kaweth_usb_transmit_complete()
733 kaweth->end = 0; in kaweth_start_xmit()
790 kaweth->packet_filter_bitmap = 0; in kaweth_async_set_rx_mode()
791 if (packet_filter_bitmap == 0) in kaweth_async_set_rx_mode()
797 ret = usb_control_msg(kaweth->dev, usb_sndctrlpipe(kaweth->dev, 0), in kaweth_async_set_rx_mode()
800 packet_filter_bitmap, 0, in kaweth_async_set_rx_mode()
801 &kaweth->scratch, 0, in kaweth_async_set_rx_mode()
803 if (ret < 0) in kaweth_async_set_rx_mode()
838 return 0; in kaweth_suspend()
854 return 0; in kaweth_resume()
858 return 0; in kaweth_resume()
885 const eth_addr_t bcast_addr = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }; in kaweth_probe()
886 int result = 0; in kaweth_probe()
890 "Kawasaki Device Probe (Device number:%d): 0x%4.4x:0x%4.4x:0x%4.4x\n", in kaweth_probe()
935 2)) < 0) { in kaweth_probe()
944 3)) < 0) { in kaweth_probe()
953 2)) < 0) { in kaweth_probe()
963 3)) < 0) { in kaweth_probe()
969 if ((result = kaweth_trigger_firmware(kaweth, 126)) < 0) { in kaweth_probe()
984 if(result < 0) { in kaweth_probe()
1001 if(kaweth_set_urb_size(kaweth, KAWETH_BUF_SIZE) < 0) { in kaweth_probe()
1006 if(kaweth_set_sofs_wait(kaweth, KAWETH_SOFS_TO_WAIT) < 0) { in kaweth_probe()
1016 if(result < 0) { in kaweth_probe()
1023 kaweth->tx_urb = usb_alloc_urb(0, GFP_KERNEL); in kaweth_probe()
1026 kaweth->rx_urb = usb_alloc_urb(0, GFP_KERNEL); in kaweth_probe()
1029 kaweth->irq_urb = usb_alloc_urb(0, GFP_KERNEL); in kaweth_probe()
1059 if (register_netdev(netdev) != 0) { in kaweth_probe()
1067 return 0; in kaweth_probe()