1 // SPDX-License-Identifier: GPL-2.0-only
3 * Intel Wireless UWB Link 1480
4 * Event Size tables for Wired Adaptors
6 * Copyright (C) 2005-2006 Intel Corporation
12 #include <linux/init.h>
13 #include <linux/module.h>
14 #include <linux/usb.h>
16 #include "dfu/i1480-dfu.h"
19 /** Event size table for wEvents 0x00XX */
20 static struct uwb_est_entry i1480_est_fd00[] = {
21 /* Anybody expecting this response has to use
22 * neh->extra_size to specify the real size that will
24 [i1480_EVT_CONFIRM] = { .size = sizeof(struct i1480_evt_confirm) },
25 [i1480_CMD_SET_IP_MAS] = { .size = sizeof(struct i1480_evt_confirm) },
26 #ifdef i1480_RCEB_EXTENDED
28 .size = sizeof(struct i1480_rceb),
29 .offset = 1 + offsetof(struct i1480_rceb, wParamLength),
34 /** Event size table for wEvents 0x01XX */
35 static struct uwb_est_entry i1480_est_fd01[] = {
36 [0xff & i1480_EVT_RM_INIT_DONE] = { .size = sizeof(struct i1480_rceb) },
37 [0xff & i1480_EVT_DEV_ADD] = { .size = sizeof(struct i1480_rceb) + 9 },
38 [0xff & i1480_EVT_DEV_RM] = { .size = sizeof(struct i1480_rceb) + 9 },
39 [0xff & i1480_EVT_DEV_ID_CHANGE] = {
40 .size = sizeof(struct i1480_rceb) + 2 },
43 static int __init i1480_est_init(void)
45 int result = uwb_est_register(i1480_CET_VS1, 0x00, 0x8086, 0x0c3b,
47 ARRAY_SIZE(i1480_est_fd00));
49 printk(KERN_ERR "Can't register EST table fd00: %d\n", result);
52 result = uwb_est_register(i1480_CET_VS1, 0x01, 0x8086, 0x0c3b,
53 i1480_est_fd01, ARRAY_SIZE(i1480_est_fd01));
55 printk(KERN_ERR "Can't register EST table fd01: %d\n", result);
60 module_init(i1480_est_init);
62 static void __exit i1480_est_exit(void)
64 uwb_est_unregister(i1480_CET_VS1, 0x00, 0x8086, 0x0c3b,
65 i1480_est_fd00, ARRAY_SIZE(i1480_est_fd00));
66 uwb_est_unregister(i1480_CET_VS1, 0x01, 0x8086, 0x0c3b,
67 i1480_est_fd01, ARRAY_SIZE(i1480_est_fd01));
69 module_exit(i1480_est_exit);
72 MODULE_DESCRIPTION("i1480's Vendor Specific Event Size Tables");
73 MODULE_LICENSE("GPL");
76 * USB device ID's that we handle
78 * [so we are loaded when this kind device is connected]
80 static struct usb_device_id __used i1480_est_id_table[] = {
81 { USB_DEVICE(0x8086, 0xdf3b), },
82 { USB_DEVICE(0x8086, 0x0c3b), },
85 MODULE_DEVICE_TABLE(usb, i1480_est_id_table);