Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ipheth.c File Reference
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/ethtool.h>
#include <linux/usb.h>
#include <linux/workqueue.h>

Go to the source code of this file.

Data Structures

struct  ipheth_device
 

Macros

#define USB_VENDOR_APPLE   0x05ac
 
#define USB_PRODUCT_IPHONE   0x1290
 
#define USB_PRODUCT_IPHONE_3G   0x1292
 
#define USB_PRODUCT_IPHONE_3GS   0x1294
 
#define USB_PRODUCT_IPHONE_4   0x1297
 
#define USB_PRODUCT_IPAD   0x129a
 
#define USB_PRODUCT_IPHONE_4_VZW   0x129c
 
#define USB_PRODUCT_IPHONE_4S   0x12a0
 
#define USB_PRODUCT_IPHONE_5   0x12a8
 
#define IPHETH_USBINTF_CLASS   255
 
#define IPHETH_USBINTF_SUBCLASS   253
 
#define IPHETH_USBINTF_PROTO   1
 
#define IPHETH_BUF_SIZE   1516
 
#define IPHETH_IP_ALIGN   2 /* padding at front of URB */
 
#define IPHETH_TX_TIMEOUT   (5 * HZ)
 
#define IPHETH_INTFNUM   2
 
#define IPHETH_ALT_INTFNUM   1
 
#define IPHETH_CTRL_ENDP   0x00
 
#define IPHETH_CTRL_BUF_SIZE   0x40
 
#define IPHETH_CTRL_TIMEOUT   (5 * HZ)
 
#define IPHETH_CMD_GET_MACADDR   0x00
 
#define IPHETH_CMD_CARRIER_CHECK   0x45
 
#define IPHETH_CARRIER_CHECK_TIMEOUT   round_jiffies_relative(1 * HZ)
 
#define IPHETH_CARRIER_ON   0x04
 

Functions

 MODULE_DEVICE_TABLE (usb, ipheth_table)
 
 module_usb_driver (ipheth_driver)
 
 MODULE_AUTHOR ("Diego Giagio <[email protected]>")
 
 MODULE_DESCRIPTION ("Apple iPhone USB Ethernet driver")
 
 MODULE_LICENSE ("Dual BSD/GPL")
 

Macro Definition Documentation

#define IPHETH_ALT_INTFNUM   1

Definition at line 76 of file ipheth.c.

#define IPHETH_BUF_SIZE   1516

Definition at line 71 of file ipheth.c.

#define IPHETH_CARRIER_CHECK_TIMEOUT   round_jiffies_relative(1 * HZ)

Definition at line 85 of file ipheth.c.

#define IPHETH_CARRIER_ON   0x04

Definition at line 86 of file ipheth.c.

#define IPHETH_CMD_CARRIER_CHECK   0x45

Definition at line 83 of file ipheth.c.

#define IPHETH_CMD_GET_MACADDR   0x00

Definition at line 82 of file ipheth.c.

#define IPHETH_CTRL_BUF_SIZE   0x40

Definition at line 79 of file ipheth.c.

#define IPHETH_CTRL_ENDP   0x00

Definition at line 78 of file ipheth.c.

#define IPHETH_CTRL_TIMEOUT   (5 * HZ)

Definition at line 80 of file ipheth.c.

#define IPHETH_INTFNUM   2

Definition at line 75 of file ipheth.c.

#define IPHETH_IP_ALIGN   2 /* padding at front of URB */

Definition at line 72 of file ipheth.c.

#define IPHETH_TX_TIMEOUT   (5 * HZ)

Definition at line 73 of file ipheth.c.

#define IPHETH_USBINTF_CLASS   255

Definition at line 67 of file ipheth.c.

#define IPHETH_USBINTF_PROTO   1

Definition at line 69 of file ipheth.c.

#define IPHETH_USBINTF_SUBCLASS   253

Definition at line 68 of file ipheth.c.

#define USB_PRODUCT_IPAD   0x129a

Definition at line 62 of file ipheth.c.

#define USB_PRODUCT_IPHONE   0x1290

Definition at line 58 of file ipheth.c.

#define USB_PRODUCT_IPHONE_3G   0x1292

Definition at line 59 of file ipheth.c.

#define USB_PRODUCT_IPHONE_3GS   0x1294

Definition at line 60 of file ipheth.c.

#define USB_PRODUCT_IPHONE_4   0x1297

Definition at line 61 of file ipheth.c.

#define USB_PRODUCT_IPHONE_4_VZW   0x129c

Definition at line 63 of file ipheth.c.

#define USB_PRODUCT_IPHONE_4S   0x12a0

Definition at line 64 of file ipheth.c.

#define USB_PRODUCT_IPHONE_5   0x12a8

Definition at line 65 of file ipheth.c.

#define USB_VENDOR_APPLE   0x05ac

Definition at line 57 of file ipheth.c.

Function Documentation

MODULE_AUTHOR ( "Diego Giagio <[email protected]>"  )
MODULE_DESCRIPTION ( "Apple iPhone USB Ethernet driver )
MODULE_DEVICE_TABLE ( usb  ,
ipheth_table   
)
MODULE_LICENSE ( "Dual BSD/GPL"  )
module_usb_driver ( ipheth_driver  )