/* Defines the valid values of the 'abi_drv_reset' hwinfo key */ #define NFP_NSP_DRV_RESET_DISK 0 #define NFP_NSP_DRV_RESET_ALWAYS 1 #define NFP_NSP_DRV_RESET_NEVER 2 #define NFP_NSP_DRV_RESET_DEFAULT "0"
/* Defines the valid values of the 'app_fw_from_flash' hwinfo key */ #define NFP_NSP_APP_FW_LOAD_DISK 0 #define NFP_NSP_APP_FW_LOAD_FLASH 1 #define NFP_NSP_APP_FW_LOAD_PREF 2 #define NFP_NSP_APP_FW_LOAD_DEFAULT "2"
/* Define the default value for the 'abi_drv_load_ifc' key */ #define NFP_NSP_DRV_LOAD_IFC_DEFAULT "0x10ff"
/** * struct nfp_eth_table - ETH table information * @count: number of table entries * @max_index: max of @index fields of all @ports * @ports: table of ports * * @ports.eth_index: port index according to legacy ethX numbering * @ports.index: chip-wide first channel index * @ports.nbi: NBI index * @ports.base: first channel index (within NBI) * @ports.lanes: number of channels * @ports.speed: interface speed (in Mbps) * @ports.interface: interface (module) plugged in * @ports.media: media type of the @interface * @ports.fec: forward error correction mode * @ports.act_fec: active forward error correction mode * @ports.aneg: auto negotiation mode * @ports.mac_addr: interface MAC address * @ports.label_port: port id * @ports.label_subport: id of interface within port (for split ports) * @ports.enabled: is enabled? * @ports.tx_enabled: is TX enabled? * @ports.rx_enabled: is RX enabled? * @ports.rx_pause: Switch of RX pause frame * @ports.tx_pause: Switch of Tx pause frame * @ports.override_changed: is media reconfig pending? * * @ports.port_type: one of %PORT_* defines for ethtool * @ports.port_lanes: total number of lanes on the port (sum of lanes of all * subports) * @ports.is_split: is interface part of a split port * @ports.fec_modes_supported: bitmap of FEC modes supported * * @ports.link_modes_supp: bitmap of link modes supported * @ports.link_modes_ad: bitmap of link modes advertised
*/ struct nfp_eth_table { unsignedint count; unsignedint max_index; struct nfp_eth_table_port { unsignedint eth_index; unsignedint index; unsignedint nbi; unsignedint base; unsignedint lanes; unsignedint speed;
int __nfp_eth_set_aneg(struct nfp_nsp *nsp, enum nfp_eth_aneg mode); int __nfp_eth_set_speed(struct nfp_nsp *nsp, unsignedint speed); int __nfp_eth_set_split(struct nfp_nsp *nsp, unsignedint lanes);
/** * struct nfp_nsp_identify - NSP static information * @version: opaque version string * @flags: version flags * @br_primary: branch id of primary bootloader * @br_secondary: branch id of secondary bootloader * @br_nsp: branch id of NSP * @primary: version of primarary bootloader * @secondary: version id of secondary bootloader * @nsp: version id of NSP * @sensor_mask: mask of present sensors available on NIC
*/ struct nfp_nsp_identify { char version[40];
u8 flags;
u8 br_primary;
u8 br_secondary;
u8 br_nsp;
u16 primary;
u16 secondary;
u16 nsp;
u64 sensor_mask;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.