core_sas.h
来自「6440linuxDriver的源代码」· C头文件 代码 · 共 91 行
H
91 行
#if !defined(CORE_SAS_H)#define CORE_SAS_Henum sas_dev_type { NO_DEVICE = 0, /* protocol */ SAS_END_DEV = 1, /* protocol */ EDGE_DEV = 2, /* protocol */ FANOUT_DEV = 3, /* protocol */ SAS_HA = 4, SATA_DEV = 5, SATA_PM = 7, SATA_PM_PORT= 8,};enum sas_phy_linkrate { PHY_LINKRATE_NONE = 0, PHY_LINKRATE_UNKNOWN = 0, PHY_DISABLED, PHY_RESET_PROBLEM, PHY_SPINUP_HOLD, PHY_PORT_SELECTOR, PHY_LINKRATE_1_5 = 0x08, PHY_LINKRATE_G1 = PHY_LINKRATE_1_5, PHY_LINKRATE_3 = 0x09, PHY_LINKRATE_G2 = PHY_LINKRATE_3, PHY_LINKRATE_6 = 0x0A,};enum sas_oob_mode { OOB_NOT_CONNECTED, SATA_OOB_MODE, SAS_OOB_MODE};enum sas_proto { SATA_PROTO = 1, SAS_PROTO_SMP = 2, /* protocol */ SAS_PROTO_STP = 4, /* protocol */ SAS_PROTO_SSP = 8, /* protocol */ SAS_PROTO_ALL = 0xE,};struct sas_port { /* public: */ int id; struct sas_discovery disc; struct domain_device *port_dev; struct list_head dev_list; enum sas_phy_linkrate linkrate; u8 attached_sas_addr[SAS_ADDR_SIZE]; enum sas_proto iproto; enum sas_proto tproto; enum sas_oob_mode oob_mode; struct sas_phy port_phy;};struct domain_device { U16 id; enum sas_dev_type dev_type; enum sas_phy_linkrate linkrate; enum sas_phy_linkrate min_linkrate; enum sas_phy_linkrate max_linkrate; U16 pathways; struct domain_device *parent; struct list_head siblings; /* devices on the same level */ struct sas_port *port; /* shortcut to root of the tree */ struct list_head dev_list_node; enum sas_proto iproto; enum sas_proto tproto; u8 sas_addr[SAS_ADDR_SIZE]; u8 hashed_sas_addr[HASHED_SAS_ADDR_SIZE]; union { struct expander_device ex_dev; struct end_device end_dev; struct sata_device sata_dev; /* STP & directly attached */ };};#endif /* CORE_SAS_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?