Add Broadcom / Netgear changes from RAXE 1.0.0.48
[project/bcm63xx/u-boot.git] / drivers / net / bcmbca / lport / ag / bcm6858_lport_mdio_ag.h
diff --git a/drivers/net/bcmbca/lport/ag/bcm6858_lport_mdio_ag.h b/drivers/net/bcmbca/lport/ag/bcm6858_lport_mdio_ag.h
new file mode 100644 (file)
index 0000000..6e1495b
--- /dev/null
@@ -0,0 +1,35 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+   Copyright (c) 2015 Broadcom Corporation
+   All Rights Reserved
+
+    
+*/
+
+#ifndef _BCM6858_LPORT_MDIO_AG_H_
+#define _BCM6858_LPORT_MDIO_AG_H_
+
+#include "access_macros.h"
+#include "bcmtypes.h"
+typedef struct
+{
+    uint8_t start_busy;
+    uint8_t fail;
+    uint8_t op_code;
+    uint8_t phy_prt_addr;
+    uint8_t reg_dev_addr;
+    uint16_t data_addr;
+} lport_mdio_control;
+
+int ag_drv_lport_mdio_control_set(const lport_mdio_control *control);
+int ag_drv_lport_mdio_control_get(lport_mdio_control *control);
+int ag_drv_lport_mdio_cfg_set(uint8_t free_run_clk_enable, uint8_t supress_preamble, uint8_t mdio_clk_divider, uint8_t mdio_clause);
+int ag_drv_lport_mdio_cfg_get(uint8_t *free_run_clk_enable, uint8_t *supress_preamble, uint8_t *mdio_clk_divider, uint8_t *mdio_clause);
+
+#ifdef USE_BDMF_SHELL
+bdmfmon_handle_t ag_drv_lport_mdio_cli_init(bdmfmon_handle_t driver_dir);
+#endif
+
+
+#endif
+