|
iPXE
|
iPhone USB Ethernet driver More...
#include <stdint.h>#include <ipxe/usb.h>#include <ipxe/usbnet.h>#include <ipxe/process.h>#include <ipxe/timer.h>#include <ipxe/retry.h>#include <ipxe/tcp.h>#include <ipxe/x509.h>#include <ipxe/privkey.h>Go to the source code of this file.
Data Structures | |
| struct | icert |
| An iPhone pairing certificate set. More... | |
| struct | imux_header |
| An iPhone USB multiplexed packet header. More... | |
| struct | imux_header_version |
| An iPhone USB multiplexed version message header. More... | |
| struct | imux_header_log |
| An iPhone USB multiplexed log message header. More... | |
| struct | imux_header_tcp |
| An iPhone USB multiplexed pseudo-TCP message header. More... | |
| struct | imux |
| An iPhone USB multiplexer. More... | |
| struct | ipair_header |
| An iPhone USB multiplexed pseudo-TCP XML message header. More... | |
| struct | ipair |
| An iPhone pairing client. More... | |
| struct | iphone |
| An iPhone network device. More... | |
Macros | |
| #define | IMUX_PORT_LOCAL 0x18ae |
| Local port number. | |
| #define | IMUX_PORT_LOCKDOWND 62078 |
| Lockdown daemon port number. | |
| #define | IMUX_WINDOW 0x0200 |
| Advertised TCP window. | |
| #define | IMUX_IN_MAX_FILL 1 |
| Multiplexer bulk IN maximum fill level. | |
| #define | IMUX_IN_MTU 4096 |
| Multiplexer bulk IN buffer size. | |
| #define | IPAIR_RETRY_DELAY ( 1 * TICKS_PER_SEC ) |
| Pairing retry delay. | |
| #define | IPHONE_GET_MAC |
| Get MAC address. | |
| #define | IPHONE_GET_LINK |
| Get link status. | |
| #define | IPHONE_IN_PAD 2 |
| Bulk IN padding. | |
| #define | IPHONE_IN_MTU ( ETH_FRAME_LEN + IPHONE_IN_PAD ) |
| Bulk IN buffer size. | |
| #define | IPHONE_IN_MAX_FILL 8 |
| Bulk IN maximum fill level. | |
| #define | IPHONE_LINK_CHECK_INTERVAL ( 5 * TICKS_PER_SEC ) |
| Link check interval. | |
Enumerations | |
| enum | imux_protocol { IMUX_VERSION = 0 , IMUX_LOG = 1 , IMUX_TCP = IP_TCP } |
| iPhone USB multiplexer protocols More... | |
| enum | ipair_flags { IPAIR_REQUEST = 0x0001 , IPAIR_RX_LEN = 0x0002 , IPAIR_TLS = 0x0004 } |
| Pairing client state flags. More... | |
| enum | iphone_link_status { IPHONE_LINK_DISABLED = 0x03 , IPHONE_LINK_UP = 0x04 , IPHONE_LINK_UNKNOWN = -1U } |
| An iPhone link status. More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| FILE_SECBOOT (PERMITTED) | |
iPhone USB Ethernet driver
Definition in file iphone.h.
| #define IMUX_PORT_LOCAL 0x18ae |
Local port number.
This is a policy decision.
Definition at line 103 of file iphone.h.
Referenced by imux_probe().
| #define IMUX_PORT_LOCKDOWND 62078 |
| #define IMUX_WINDOW 0x0200 |
Advertised TCP window.
This is a policy decision.
Definition at line 112 of file iphone.h.
Referenced by imux_tx_tcp().
| #define IMUX_IN_MAX_FILL 1 |
Multiplexer bulk IN maximum fill level.
This is a policy decision.
Definition at line 159 of file iphone.h.
Referenced by imux_probe().
| #define IMUX_IN_MTU 4096 |
Multiplexer bulk IN buffer size.
This is a policy decision.
Definition at line 165 of file iphone.h.
Referenced by imux_probe().
| #define IPAIR_RETRY_DELAY ( 1 * TICKS_PER_SEC ) |
Pairing retry delay.
This is a policy decision.
Definition at line 225 of file iphone.h.
Referenced by ipair_rx_pair_error().
| #define IPHONE_GET_MAC |
Get MAC address.
Definition at line 235 of file iphone.h.
Referenced by iphone_probe().
| #define IPHONE_GET_LINK |
Get link status.
Definition at line 240 of file iphone.h.
Referenced by iphone_check_link().
| #define IPHONE_IN_PAD 2 |
| #define IPHONE_IN_MTU ( ETH_FRAME_LEN + IPHONE_IN_PAD ) |
Bulk IN buffer size.
This is a policy decision.
Definition at line 278 of file iphone.h.
Referenced by iphone_probe().
| #define IPHONE_IN_MAX_FILL 8 |
Bulk IN maximum fill level.
This is a policy decision.
Definition at line 284 of file iphone.h.
Referenced by iphone_probe().
| #define IPHONE_LINK_CHECK_INTERVAL ( 5 * TICKS_PER_SEC ) |
Link check interval.
This is a policy decision.
Definition at line 290 of file iphone.h.
Referenced by iphone_expired().
| enum imux_protocol |
iPhone USB multiplexer protocols
| Enumerator | |
|---|---|
| IMUX_VERSION | Version number. |
| IMUX_LOG | Log message. |
| IMUX_TCP | TCP packet. |
Definition at line 64 of file iphone.h.
| enum ipair_flags |
Pairing client state flags.
| Enumerator | |
|---|---|
| IPAIR_REQUEST | Request a new pairing. |
| IPAIR_RX_LEN | Standalone length has been received. |
| IPAIR_TLS | TLS session has been started. |
Definition at line 212 of file iphone.h.
| enum iphone_link_status |
An iPhone link status.
| Enumerator | |
|---|---|
| IPHONE_LINK_DISABLED | Personal Hotspot is disabled. |
| IPHONE_LINK_UP | Link up. |
| IPHONE_LINK_UNKNOWN | Link not yet determined. |
Definition at line 245 of file iphone.h.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |