2014-06-03 20:03:58 +00:00
|
|
|
/*
|
|
|
|
* Thunderbolt Cactus Ridge driver - NHI driver
|
|
|
|
*
|
|
|
|
* Copyright (c) 2014 Andreas Noever <andreas.noever@gmail.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DSL3510_H_
|
|
|
|
#define DSL3510_H_
|
|
|
|
|
2017-10-02 10:38:37 +00:00
|
|
|
#include <linux/thunderbolt.h>
|
2014-06-03 20:03:58 +00:00
|
|
|
|
2017-06-06 12:25:12 +00:00
|
|
|
enum nhi_fw_mode {
|
|
|
|
NHI_FW_SAFE_MODE,
|
|
|
|
NHI_FW_AUTH_MODE,
|
|
|
|
NHI_FW_EP_MODE,
|
|
|
|
NHI_FW_CM_MODE,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum nhi_mailbox_cmd {
|
|
|
|
NHI_MAILBOX_SAVE_DEVS = 0x05,
|
2017-06-06 12:25:17 +00:00
|
|
|
NHI_MAILBOX_DISCONNECT_PCIE_PATHS = 0x06,
|
2017-06-06 12:25:12 +00:00
|
|
|
NHI_MAILBOX_DRV_UNLOADS = 0x07,
|
2017-10-02 10:38:34 +00:00
|
|
|
NHI_MAILBOX_DISCONNECT_PA = 0x10,
|
|
|
|
NHI_MAILBOX_DISCONNECT_PB = 0x11,
|
2017-06-06 12:25:12 +00:00
|
|
|
NHI_MAILBOX_ALLOW_ALL_DEVS = 0x23,
|
|
|
|
};
|
|
|
|
|
|
|
|
int nhi_mailbox_cmd(struct tb_nhi *nhi, enum nhi_mailbox_cmd cmd, u32 data);
|
|
|
|
enum nhi_fw_mode nhi_mailbox_mode(struct tb_nhi *nhi);
|
|
|
|
|
2017-06-06 12:25:11 +00:00
|
|
|
/*
|
|
|
|
* PCI IDs used in this driver from Win Ridge forward. There is no
|
|
|
|
* need for the PCI quirk anymore as we will use ICM also on Apple
|
|
|
|
* hardware.
|
|
|
|
*/
|
|
|
|
#define PCI_DEVICE_ID_INTEL_WIN_RIDGE_2C_NHI 0x157d
|
|
|
|
#define PCI_DEVICE_ID_INTEL_WIN_RIDGE_2C_BRIDGE 0x157e
|
|
|
|
#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_LP_NHI 0x15bf
|
|
|
|
#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_LP_BRIDGE 0x15c0
|
|
|
|
#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_C_4C_NHI 0x15d2
|
|
|
|
#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_C_4C_BRIDGE 0x15d3
|
|
|
|
#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_C_2C_NHI 0x15d9
|
|
|
|
#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_C_2C_BRIDGE 0x15da
|
|
|
|
#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_LP_USBONLY_NHI 0x15dc
|
|
|
|
#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_USBONLY_NHI 0x15dd
|
|
|
|
#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_C_USBONLY_NHI 0x15de
|
|
|
|
|
2014-06-03 20:03:58 +00:00
|
|
|
#endif
|