#include <linux/module.h>
#include <linux/init.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/ethtool.h>
#include <linux/workqueue.h>
#include <linux/mii.h>
#include <linux/usb.h>
#include <linux/usb/usbnet.h>
#include <linux/slab.h>
#include <asm/unaligned.h>
Go to the source code of this file.
#define frame_errors data[1] |
#define FRAMED_SIZE |
( |
|
mtu | ) |
|
#define MK_TTL |
( |
|
this, |
|
|
|
other |
|
) |
| ((u16)(((other)<<8)|(0x00ff&(this)))) |
#define NC_MAX_PACKET 32767 |
#define NC_READ_TTL_MS ((u8)255) |
#define PAD_BYTE ((unsigned char)0xAC) |
#define REG_STATUS ((u8)0x11) |
#define REG_TTL ((u8)0x10) |
#define REG_USBCTL ((u8)0x04) |
#define REQUEST_EEPROM ((u8)0x11) |
#define REQUEST_REGISTER ((u8)0x10) |
#define STATUS_CONN_OTHER (1 << 14) |
#define STATUS_CONN_THIS (1 << 6) |
#define STATUS_MAILBOX_OTHER (1 << 12) |
#define STATUS_MAILBOX_THIS (1 << 4) |
#define STATUS_NOISE_MASK ((u16)~(0x0303|STATUS_UNSPEC_MASK)) |
#define STATUS_PACKETS_OTHER |
( |
|
n | ) |
(((n) >> 8) & 0x03) |
#define STATUS_PACKETS_THIS |
( |
|
n | ) |
(((n) >> 0) & 0x03) |
#define STATUS_PORT_A (1 << 15) |
#define STATUS_SUSPEND_OTHER (1 << 13) |
#define STATUS_SUSPEND_THIS (1 << 5) |
#define STATUS_UNSPEC_MASK 0x0c8c |
#define TTL_OTHER |
( |
|
ttl | ) |
(0x00ff & (ttl >> 8)) |
#define TTL_THIS |
( |
|
ttl | ) |
(0x00ff & ttl) |
#define USBCTL_DISCONN_OTHER (1 << 1) |
#define USBCTL_DISCONN_THIS (1 << 0) |
#define USBCTL_ENABLE_DEFAULTS (1 << 8) |
#define USBCTL_ENABLE_LANG (1 << 12) |
#define USBCTL_ENABLE_MFGR (1 << 11) |
#define USBCTL_ENABLE_PROD (1 << 10) |
#define USBCTL_ENABLE_SERIAL (1 << 9) |
#define USBCTL_FLUSH_OTHER (1 << 3) |
#define USBCTL_FLUSH_THIS (1 << 2) |
#define USBCTL_WRITABLE_MASK 0x1f0f |
MODULE_AUTHOR |
( |
"David Brownell" |
| ) |
|
MODULE_DESCRIPTION |
( |
"NetChip 1080 based USB Host-to-Host Links" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
usb |
, |
|
|
products |
|
|
) |
| |
module_usb_driver |
( |
net1080_driver |
| ) |
|