Source: opendevices.sony.net, "Open source archive for 73.1.A.2.74" (Xperia 1 VIII: XQ-GE74, XQ-GE54, SO-51G, SOG17, A601SO, XQ-GE44), unmodified. Co-Authored-By: Claude Opus 5.5 <[email protected]>
41 lines
990 B
C
41 lines
990 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Synopsys DesignWare XPCS platform device driver
|
|
*
|
|
* Copyright (c) 2024-2025 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __LINUX_PCS_XPCS_QCOM_H
|
|
#define __LINUX_PCS_XPCS_QCOM_H
|
|
|
|
#include <linux/phy.h>
|
|
#include <linux/phylink.h>
|
|
|
|
/* AN mode */
|
|
#define DW_AN_C37_USXGMII 1
|
|
#define DW_10GBASER 5
|
|
|
|
struct xpcs_id;
|
|
|
|
struct dw_xpcs_qcom {
|
|
const struct xpcs_id *id;
|
|
struct phylink_pcs pcs;
|
|
void __iomem *addr;
|
|
int pcs_intr;
|
|
int pcs_fusa_intr;
|
|
int pcs_fusa_error_count;
|
|
bool intr_en;
|
|
bool needs_aneg;
|
|
int phy_interface;
|
|
};
|
|
|
|
struct phylink_pcs *qcom_xpcs_create(struct device_node *np,
|
|
phy_interface_t interface);
|
|
void qcom_xpcs_link_up(struct phylink_pcs *pcs, unsigned int mode,
|
|
phy_interface_t interface, int speed, int duplex);
|
|
void qcom_xpcs_destroy(struct phylink_pcs *pcs);
|
|
|
|
void qcom_xpcs_get_err_stats(struct phylink_pcs *pcs, unsigned long *ptr);
|
|
|
|
#endif /* __LINUX_PCS_XPCS_QCOM_H */
|