#include <linux/clk.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/phy/phy.h>
#include <linux/io.h>
#include <linux/platform_device.h>
#define HOST_VSA_ADDR …
#define HOST_VSA_DATA …
#define PORT_SCR_CTL …
#define PORT_VSR_ADDR …
#define PORT_VSR_DATA …
#define CONTROL_REGISTER …
#define MBUS_SIZE_CONTROL …
#define POWER_DOWN_PHY0 …
#define POWER_DOWN_PHY1 …
#define MBUS_WRITE_REQUEST_SIZE_128 …
#define MBUS_READ_REQUEST_SIZE_128 …
#define BG2_PHY_BASE …
#define BG2Q_PHY_BASE …
#define REF_FREF_SEL_25 …
#define PHY_BERLIN_MODE_SATA …
#define USE_MAX_PLL_RATE …
#define DATA_BIT_WIDTH_10 …
#define DATA_BIT_WIDTH_20 …
#define DATA_BIT_WIDTH_40 …
#define PHY_GEN_MAX_1_5 …
#define PHY_GEN_MAX_3_0 …
#define PHY_GEN_MAX_6_0 …
struct phy_berlin_desc { … };
struct phy_berlin_priv { … };
static inline void phy_berlin_sata_reg_setbits(void __iomem *ctrl_reg,
u32 phy_base, u32 reg, u32 mask, u32 val)
{ … }
static int phy_berlin_sata_power_on(struct phy *phy)
{ … }
static int phy_berlin_sata_power_off(struct phy *phy)
{ … }
static struct phy *phy_berlin_sata_phy_xlate(struct device *dev,
const struct of_phandle_args *args)
{ … }
static const struct phy_ops phy_berlin_sata_ops = …;
static u32 phy_berlin_power_down_bits[] = …;
static int phy_berlin_sata_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id phy_berlin_sata_of_match[] = …;
MODULE_DEVICE_TABLE(of, phy_berlin_sata_of_match);
static struct platform_driver phy_berlin_sata_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;