nhi.h (3eb66e91a25497065c5322b1268cbc3953642227) nhi.h (3cdb9446a117d5d63af823bde6fe6babc312e77b)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Thunderbolt driver - NHI driver
4 *
5 * Copyright (c) 2014 Andreas Noever <andreas.noever@gmail.com>
6 * Copyright (C) 2018, Intel Corporation
7 */
8

--- 16 unchanged lines hidden (view full) ---

25 NHI_MAILBOX_DISCONNECT_PA = 0x10,
26 NHI_MAILBOX_DISCONNECT_PB = 0x11,
27 NHI_MAILBOX_ALLOW_ALL_DEVS = 0x23,
28};
29
30int nhi_mailbox_cmd(struct tb_nhi *nhi, enum nhi_mailbox_cmd cmd, u32 data);
31enum nhi_fw_mode nhi_mailbox_mode(struct tb_nhi *nhi);
32
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Thunderbolt driver - NHI driver
4 *
5 * Copyright (c) 2014 Andreas Noever <andreas.noever@gmail.com>
6 * Copyright (C) 2018, Intel Corporation
7 */
8

--- 16 unchanged lines hidden (view full) ---

25 NHI_MAILBOX_DISCONNECT_PA = 0x10,
26 NHI_MAILBOX_DISCONNECT_PB = 0x11,
27 NHI_MAILBOX_ALLOW_ALL_DEVS = 0x23,
28};
29
30int nhi_mailbox_cmd(struct tb_nhi *nhi, enum nhi_mailbox_cmd cmd, u32 data);
31enum nhi_fw_mode nhi_mailbox_mode(struct tb_nhi *nhi);
32
33/**
34 * struct tb_nhi_ops - NHI specific optional operations
35 * @init: NHI specific initialization
36 * @suspend_noirq: NHI specific suspend_noirq hook
37 * @resume_noirq: NHI specific resume_noirq hook
38 * @runtime_suspend: NHI specific runtime_suspend hook
39 * @runtime_resume: NHI specific runtime_resume hook
40 * @shutdown: NHI specific shutdown
41 */
42struct tb_nhi_ops {
43 int (*init)(struct tb_nhi *nhi);
44 int (*suspend_noirq)(struct tb_nhi *nhi, bool wakeup);
45 int (*resume_noirq)(struct tb_nhi *nhi);
46 int (*runtime_suspend)(struct tb_nhi *nhi);
47 int (*runtime_resume)(struct tb_nhi *nhi);
48 void (*shutdown)(struct tb_nhi *nhi);
49};
50
51extern const struct tb_nhi_ops icl_nhi_ops;
52
33/*
34 * PCI IDs used in this driver from Win Ridge forward. There is no
35 * need for the PCI quirk anymore as we will use ICM also on Apple
36 * hardware.
37 */
38#define PCI_DEVICE_ID_INTEL_WIN_RIDGE_2C_NHI 0x157d
39#define PCI_DEVICE_ID_INTEL_WIN_RIDGE_2C_BRIDGE 0x157e
40#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_LP_NHI 0x15bf

--- 5 unchanged lines hidden (view full) ---

46#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_LP_USBONLY_NHI 0x15dc
47#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_USBONLY_NHI 0x15dd
48#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_C_USBONLY_NHI 0x15de
49#define PCI_DEVICE_ID_INTEL_TITAN_RIDGE_2C_BRIDGE 0x15e7
50#define PCI_DEVICE_ID_INTEL_TITAN_RIDGE_2C_NHI 0x15e8
51#define PCI_DEVICE_ID_INTEL_TITAN_RIDGE_4C_BRIDGE 0x15ea
52#define PCI_DEVICE_ID_INTEL_TITAN_RIDGE_4C_NHI 0x15eb
53#define PCI_DEVICE_ID_INTEL_TITAN_RIDGE_DD_BRIDGE 0x15ef
53/*
54 * PCI IDs used in this driver from Win Ridge forward. There is no
55 * need for the PCI quirk anymore as we will use ICM also on Apple
56 * hardware.
57 */
58#define PCI_DEVICE_ID_INTEL_WIN_RIDGE_2C_NHI 0x157d
59#define PCI_DEVICE_ID_INTEL_WIN_RIDGE_2C_BRIDGE 0x157e
60#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_LP_NHI 0x15bf

--- 5 unchanged lines hidden (view full) ---

66#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_LP_USBONLY_NHI 0x15dc
67#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_USBONLY_NHI 0x15dd
68#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_C_USBONLY_NHI 0x15de
69#define PCI_DEVICE_ID_INTEL_TITAN_RIDGE_2C_BRIDGE 0x15e7
70#define PCI_DEVICE_ID_INTEL_TITAN_RIDGE_2C_NHI 0x15e8
71#define PCI_DEVICE_ID_INTEL_TITAN_RIDGE_4C_BRIDGE 0x15ea
72#define PCI_DEVICE_ID_INTEL_TITAN_RIDGE_4C_NHI 0x15eb
73#define PCI_DEVICE_ID_INTEL_TITAN_RIDGE_DD_BRIDGE 0x15ef
74#define PCI_DEVICE_ID_INTEL_ICL_NHI1 0x8a0d
75#define PCI_DEVICE_ID_INTEL_ICL_NHI0 0x8a17
54
55#endif
76
77#endif