mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Remove the array of port module status and instead save module status and module number. At boot, for each PCI function driver get event from fw about module status. The event contains module number and module status. Driver stores module number and module status.. When user (ifconfig) ask for modules information, for each pci function driver first queries fw to get module number of current pci function, then driver compares the module number to the module number it stored before and if it matches and module status is "plugged and enabled" then driver queries fw for the eprom information of that module number and return it to the caller. In fact fw could have concluded that required module number of the current pci function, but fw is not implemented this way. current design of PRM/FW is that MCIA register handling is only aware of modules, not the pci function->module connections. FW is designed to take the module number written to MCIA and write/read the content to/from the associated module's EPROM. So, based on current FW design, we must supply the module num so fw can find the corresponding I2C interface of the module to write/read. Sponsored by: NVidia networking MFC after: 1 week |
||
|---|---|---|
| .. | ||
| diag_cnt.h | ||
| eswitch.h | ||
| flow_table.h | ||
| fs_chains.h | ||
| fs_cmd.h | ||
| fs_core.h | ||
| fs_ft_pool.h | ||
| fs_tcp.h | ||
| mlx5_alloc.c | ||
| mlx5_cmd.c | ||
| mlx5_core.h | ||
| mlx5_cq.c | ||
| mlx5_crypto.c | ||
| mlx5_diag_cnt.c | ||
| mlx5_diagnostics.c | ||
| mlx5_eq.c | ||
| mlx5_eswitch.c | ||
| mlx5_fs_chains.c | ||
| mlx5_fs_cmd.c | ||
| mlx5_fs_core.c | ||
| mlx5_fs_counters.c | ||
| mlx5_fs_ft_pool.c | ||
| mlx5_fs_tcp.c | ||
| mlx5_fw.c | ||
| mlx5_fwdump.c | ||
| mlx5_health.c | ||
| mlx5_mad.c | ||
| mlx5_main.c | ||
| mlx5_mcg.c | ||
| mlx5_mpfs.c | ||
| mlx5_mr.c | ||
| mlx5_pagealloc.c | ||
| mlx5_pd.c | ||
| mlx5_port.c | ||
| mlx5_qp.c | ||
| mlx5_rl.c | ||
| mlx5_srq.c | ||
| mlx5_tls.c | ||
| mlx5_transobj.c | ||
| mlx5_uar.c | ||
| mlx5_vport.c | ||
| mlx5_vsc.c | ||
| mlx5_wq.c | ||
| transobj.h | ||
| wq.h | ||