2 * Definitions for Media Agnostic USB dissection
3 * Copyright 2016, Intel Corporation
4 * Author: Sean O. Stalley <sean.stalley@intel.com>
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * SPDX-License-Identifier: GPL-2.0-or-later
13 #ifndef __PACKET_MAUSB_H__
14 #define __PACKET_MAUSB_H__
16 #define MAUSB_DPH_LENGTH 20
17 /** Common header fields, per section 6.2.1 */
35 uint16_t num_headers_iflags
;
38 uint32_t seq_num
; /* Note: only 24 bits used */
43 uint32_t present_time_num_seg
;
48 uint32_t tx_dly
; /* Note: if no timestamp, tx_dly will be in DWORD 5 */
53 bool mausb_is_from_host(struct mausb_header
*header
);
54 uint8_t mausb_ep_handle_ep_d(uint16_t handle
);
55 uint8_t mausb_ep_handle_ep_num(uint16_t handle
);
56 uint8_t mausb_ep_handle_dev_addr(uint16_t handle
);
57 uint8_t mausb_ep_handle_bus_num(uint16_t handle
);
59 void mausb_set_urb_info(urb_info_t
*urb
, struct mausb_header
*header
);
64 * Editor modelines - https://www.wireshark.org/tools/modelines.html
69 * indent-tabs-mode: nil
72 * vi: set shiftwidth=4 tabstop=8 expandtab:
73 * :indentSize=4:tabSize=8:noTabs=true: