Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/ixlv.h
/****************************************************************************** | /****************************************************************************** | ||||
Copyright (c) 2013-2015, Intel Corporation | Copyright (c) 2013-2017, 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 119 Lines • ▼ Show 20 Lines | struct ixlv_sc { | ||||
struct resource *res; /* For the AQ */ | struct resource *res; /* For the AQ */ | ||||
struct ifmedia media; | struct ifmedia media; | ||||
struct callout timer; | struct callout timer; | ||||
int msix; | int msix; | ||||
int pf_version; | int pf_version; | ||||
int if_flags; | int if_flags; | ||||
bool link_up; | bool link_up; | ||||
u32 link_speed; | enum virtchnl_link_speed link_speed; | ||||
struct mtx mtx; | struct mtx mtx; | ||||
u32 qbase; | u32 qbase; | ||||
u32 admvec; | u32 admvec; | ||||
struct timeout_task timeout; | struct timeout_task timeout; | ||||
struct task aq_irq; | struct task aq_irq; | ||||
struct task aq_sched; | struct task aq_sched; | ||||
Show All 22 Lines | struct ixlv_sc { | ||||
struct ixl_vc_cmd add_multi_cmd; | struct ixl_vc_cmd add_multi_cmd; | ||||
struct ixl_vc_cmd del_multi_cmd; | struct ixl_vc_cmd del_multi_cmd; | ||||
struct ixl_vc_cmd config_rss_key_cmd; | struct ixl_vc_cmd config_rss_key_cmd; | ||||
struct ixl_vc_cmd get_rss_hena_caps_cmd; | struct ixl_vc_cmd get_rss_hena_caps_cmd; | ||||
struct ixl_vc_cmd set_rss_hena_cmd; | struct ixl_vc_cmd set_rss_hena_cmd; | ||||
struct ixl_vc_cmd config_rss_lut_cmd; | struct ixl_vc_cmd config_rss_lut_cmd; | ||||
/* Virtual comm channel */ | /* Virtual comm channel */ | ||||
struct i40e_virtchnl_vf_resource *vf_res; | struct virtchnl_vf_resource *vf_res; | ||||
struct i40e_virtchnl_vsi_resource *vsi_res; | struct virtchnl_vsi_resource *vsi_res; | ||||
/* Misc stats maintained by the driver */ | /* Misc stats maintained by the driver */ | ||||
u64 watchdog_events; | u64 watchdog_events; | ||||
u64 admin_irq; | u64 admin_irq; | ||||
u8 aq_buffer[IXL_AQ_BUF_SZ]; | u8 aq_buffer[IXL_AQ_BUF_SZ]; | ||||
}; | }; | ||||
Show All 28 Lines | |||||
void ixlv_map_queues(struct ixlv_sc *); | void ixlv_map_queues(struct ixlv_sc *); | ||||
void ixlv_enable_intr(struct ixl_vsi *); | void ixlv_enable_intr(struct ixl_vsi *); | ||||
void ixlv_disable_intr(struct ixl_vsi *); | void ixlv_disable_intr(struct ixl_vsi *); | ||||
void ixlv_add_ether_filters(struct ixlv_sc *); | void ixlv_add_ether_filters(struct ixlv_sc *); | ||||
void ixlv_del_ether_filters(struct ixlv_sc *); | void ixlv_del_ether_filters(struct ixlv_sc *); | ||||
void ixlv_request_stats(struct ixlv_sc *); | void ixlv_request_stats(struct ixlv_sc *); | ||||
void ixlv_request_reset(struct ixlv_sc *); | void ixlv_request_reset(struct ixlv_sc *); | ||||
void ixlv_vc_completion(struct ixlv_sc *, | void ixlv_vc_completion(struct ixlv_sc *, | ||||
enum i40e_virtchnl_ops, i40e_status, u8 *, u16); | enum virtchnl_ops, enum virtchnl_status_code, | ||||
u8 *, u16); | |||||
void ixlv_add_ether_filter(struct ixlv_sc *); | void ixlv_add_ether_filter(struct ixlv_sc *); | ||||
void ixlv_add_vlans(struct ixlv_sc *); | void ixlv_add_vlans(struct ixlv_sc *); | ||||
void ixlv_del_vlans(struct ixlv_sc *); | void ixlv_del_vlans(struct ixlv_sc *); | ||||
void ixlv_update_stats_counters(struct ixlv_sc *, | void ixlv_update_stats_counters(struct ixlv_sc *, | ||||
struct i40e_eth_stats *); | struct i40e_eth_stats *); | ||||
void ixlv_update_link_status(struct ixlv_sc *); | void ixlv_update_link_status(struct ixlv_sc *); | ||||
void ixlv_get_default_rss_key(u32 *, bool); | void ixlv_get_default_rss_key(u32 *, bool); | ||||
void ixlv_config_rss_key(struct ixlv_sc *); | void ixlv_config_rss_key(struct ixlv_sc *); | ||||
void ixlv_set_rss_hena(struct ixlv_sc *); | void ixlv_set_rss_hena(struct ixlv_sc *); | ||||
void ixlv_config_rss_lut(struct ixlv_sc *); | void ixlv_config_rss_lut(struct ixlv_sc *); | ||||
#endif /* _IXLV_H_ */ | #endif /* _IXLV_H_ */ |