1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2021 pureLiFi
6 #define PURELIFI_BYTE_NUM_ALIGNMENT 4
8 #define AP_USER_LIMIT 8
10 #define PLF_VNDR_FPGA_STATE_REQ 0x30
11 #define PLF_VNDR_FPGA_SET_REQ 0x33
12 #define PLF_VNDR_FPGA_SET_CMD 0x34
13 #define PLF_VNDR_FPGA_STATE_CMD 0x35
15 #define PLF_VNDR_XL_FW_CMD 0x80
16 #define PLF_VNDR_XL_DATA_CMD 0x81
17 #define PLF_VNDR_XL_FILE_CMD 0x82
18 #define PLF_VNDR_XL_EX_CMD 0x83
20 #define PLF_MAC_VENDOR_REQUEST 0x36
21 #define PLF_SERIAL_NUMBER_VENDOR_REQUEST 0x37
22 #define PLF_FIRMWARE_VERSION_VENDOR_REQUEST 0x39
23 #define PLF_SERIAL_LEN 14
24 #define PLF_FW_VER_LEN 8
30 __be64 crc_error_count;
33 enum plf_usb_req_enum {
38 USB_REQ_BEACON_WR = 4,
39 USB_REQ_BEACON_INTERVAL_WR = 5,
40 USB_REQ_RTS_CTS_RATE_WR = 6,
48 __be32 id; /* should be plf_usb_req_enum */