Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ice/ice_type.h
/* SPDX-License-Identifier: BSD-3-Clause */ | /* SPDX-License-Identifier: BSD-3-Clause */ | ||||
/* Copyright (c) 2022, Intel Corporation | /* Copyright (c) 2023, Intel Corporation | ||||
* All rights reserved. | * All rights reserved. | ||||
* | * | ||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
* modification, are permitted provided that the following conditions are met: | * modification, are permitted provided that the following conditions are met: | ||||
* | * | ||||
* 1. Redistributions of source code must retain the above copyright notice, | * 1. Redistributions of source code must retain the above copyright notice, | ||||
* this list of conditions and the following disclaimer. | * this list of conditions and the following disclaimer. | ||||
* | * | ||||
▲ Show 20 Lines • Show All 929 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
struct ice_mbx_data { | struct ice_mbx_data { | ||||
u16 num_msg_proc; | u16 num_msg_proc; | ||||
u16 num_pending_arq; | u16 num_pending_arq; | ||||
u16 max_num_msgs_mbx; | u16 max_num_msgs_mbx; | ||||
u16 async_watermark_val; | u16 async_watermark_val; | ||||
}; | }; | ||||
/* PHY configuration */ | /* PHY model */ | ||||
enum ice_phy_cfg { | enum ice_phy_model { | ||||
ICE_PHY_UNSUP = -1, | |||||
ICE_PHY_E810 = 1, | ICE_PHY_E810 = 1, | ||||
ICE_PHY_E822, | ICE_PHY_E822, | ||||
ICE_PHY_ETH56G, | |||||
}; | }; | ||||
/* Port hardware description */ | /* Port hardware description */ | ||||
struct ice_hw { | struct ice_hw { | ||||
u8 *hw_addr; | u8 *hw_addr; | ||||
void *back; | void *back; | ||||
struct ice_aqc_layer_props *layer_info; | struct ice_aqc_layer_props *layer_info; | ||||
struct ice_port_info *port_info; | struct ice_port_info *port_info; | ||||
Show All 9 Lines | struct ice_hw { | ||||
/* pci info */ | /* pci info */ | ||||
u16 device_id; | u16 device_id; | ||||
u16 vendor_id; | u16 vendor_id; | ||||
u16 subsystem_device_id; | u16 subsystem_device_id; | ||||
u16 subsystem_vendor_id; | u16 subsystem_vendor_id; | ||||
u8 revision_id; | u8 revision_id; | ||||
u8 pf_id; /* device profile info */ | u8 pf_id; /* device profile info */ | ||||
enum ice_phy_cfg phy_cfg; | enum ice_phy_model phy_model; | ||||
u16 max_burst_size; /* driver sets this value */ | u16 max_burst_size; /* driver sets this value */ | ||||
/* Tx Scheduler values */ | /* Tx Scheduler values */ | ||||
u8 num_tx_sched_layers; | u8 num_tx_sched_layers; | ||||
u8 num_tx_sched_phys_layers; | u8 num_tx_sched_phys_layers; | ||||
u8 flattened_layers; | u8 flattened_layers; | ||||
u8 max_cgds; | u8 max_cgds; | ||||
▲ Show 20 Lines • Show All 367 Lines • Show Last 20 Lines |