Lines Matching full:pcs

27 	/* PCS "negotiation" mode.
152 * are supported by the MAC/PCS.
183 * @mac_select_pcs: Select a PCS for the interface mode.
230 * mac_select_pcs: Select a PCS for the interface mode.
232 * @interface: PHY interface mode for PCS
237 * This must not modify any state. It is used to query which PCS should
240 * set the PCS that will be used.
289 * the results of in-band negotiation/status from the MAC PCS should be used
353 * complete any necessary steps after the MAC and PCS have been configured
392 * where these settings are not automatically conveyed from the PCS block,
440 * struct phylink_pcs - PHYLINK PCS instance
442 * are supported by this PCS.
445 * @neg_mode: provide PCS neg mode via "mode" argument
446 * @poll: poll the PCS for link changes
448 * to always be on. Standalone PCS drivers which
452 * This structure is designed to be embedded within the PCS private data,
453 * and will be passed between phylink and the PCS.
456 * the PCS driver.
468 * struct phylink_pcs_ops - MAC PCS operations structure.
471 * @pcs_enable: enable the PCS.
472 * @pcs_disable: disable the PCS.
475 * @pcs_get_state: read the current MAC PCS link state from the hardware.
476 * @pcs_config: configure the MAC PCS for the selected mode and state.
478 * @pcs_link_up: program the PCS for the resolved link configuration
480 * @pcs_pre_init: configure PCS components necessary for MAC hardware
484 int (*pcs_validate)(struct phylink_pcs *pcs, unsigned long *supported,
486 unsigned int (*pcs_inband_caps)(struct phylink_pcs *pcs,
488 int (*pcs_enable)(struct phylink_pcs *pcs);
489 void (*pcs_disable)(struct phylink_pcs *pcs);
490 void (*pcs_pre_config)(struct phylink_pcs *pcs,
492 int (*pcs_post_config)(struct phylink_pcs *pcs,
494 void (*pcs_get_state)(struct phylink_pcs *pcs, unsigned int neg_mode,
496 int (*pcs_config)(struct phylink_pcs *pcs, unsigned int neg_mode,
500 void (*pcs_an_restart)(struct phylink_pcs *pcs);
501 void (*pcs_link_up)(struct phylink_pcs *pcs, unsigned int neg_mode,
503 int (*pcs_pre_init)(struct phylink_pcs *pcs);
509 * @pcs: a pointer to a &struct phylink_pcs.
521 int pcs_validate(struct phylink_pcs *pcs, unsigned long *supported,
525 * pcs_inband_caps - query PCS in-band capabilities for interface mode.
526 * @pcs: a pointer to a &struct phylink_pcs.
535 unsigned int pcs_inband_caps(struct phylink_pcs *pcs,
539 * pcs_enable() - enable the PCS.
540 * @pcs: a pointer to a &struct phylink_pcs.
542 int pcs_enable(struct phylink_pcs *pcs);
545 * pcs_disable() - disable the PCS.
546 * @pcs: a pointer to a &struct phylink_pcs.
548 void pcs_disable(struct phylink_pcs *pcs);
552 * @pcs: a pointer to a &struct phylink_pcs.
556 * Read the current inband link state from the MAC PCS, reporting the
566 void pcs_get_state(struct phylink_pcs *pcs, unsigned int neg_mode,
570 * pcs_config() - Configure the PCS mode and advertisement
571 * @pcs: a pointer to a &struct phylink_pcs.
577 * Configure the PCS for the operating mode, the interface mode, and set
584 * For SGMII, there is no advertisement from the MAC side, the PCS should
587 * For 1000BASE-X, the advertisement should be programmed into the PCS.
592 * functions, or for PCS that set pcs->neg_mode true, should be tested
595 int pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode,
601 * @pcs: a pointer to a &struct phylink_pcs.
603 * When PCS ops are present, this overrides mac_an_restart() in &struct
606 void pcs_an_restart(struct phylink_pcs *pcs);
609 * pcs_link_up() - program the PCS for the resolved link configuration
610 * @pcs: a pointer to a &struct phylink_pcs.
616 * This call will be made just before mac_link_up() to inform the PCS of
617 * the resolved link parameters. For example, a PCS operating in SGMII
622 * functions, or for PCS that set pcs->neg_mode true, should be tested
625 void pcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode,
629 * pcs_pre_init() - Configure PCS components necessary for MAC initialization
630 * @pcs: a pointer to a &struct phylink_pcs.
634 * should not be called after the link is brought up, as reconfiguring the PCS
638 * their associated PCS device before they can properly initialize their own
640 * which requires an active REF_CLK signal to be provided by the PHY/PCS.
642 * By calling phylink_pcs_pre_init(), MAC drivers can ensure that the PCS is
646 * model of PCS and the requirements of the MAC device attached to it. PCS
649 * driver authors should document their requirements for the PCS
653 int pcs_pre_init(struct phylink_pcs *pcs);
676 int phylink_pcs_pre_init(struct phylink *pl, struct phylink_pcs *pcs);
716 * phylink_get_link_timer_ns - return the PCS link timer value
719 * Return the PCS link timer setting in nanoseconds for the PHY @interface
742 void phylink_mii_c22_pcs_get_state(struct mdio_device *pcs,
747 int phylink_mii_c22_pcs_config(struct mdio_device *pcs,
751 void phylink_mii_c22_pcs_an_restart(struct mdio_device *pcs);
755 void phylink_mii_c45_pcs_get_state(struct mdio_device *pcs,