Add Broadcom / Netgear changes from RAXE 1.0.0.48
[project/bcm63xx/u-boot.git] / drivers / net / bcmbca / phy / mdio_drv_impl5.h
diff --git a/drivers/net/bcmbca/phy/mdio_drv_impl5.h b/drivers/net/bcmbca/phy/mdio_drv_impl5.h
new file mode 100644 (file)
index 0000000..aaa9d7f
--- /dev/null
@@ -0,0 +1,34 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+   Copyright (c) 2016 Broadcom Corporation
+   All Rights Reserved
+
+    
+*/
+
+/*
+ *  Created on: June 2017
+ *      Author: dima.mamut@broadcom.com
+ */
+
+/*
+ * MDIO driver for BCM96846 ,BCM96878 and BCM96856 
+ */
+
+#ifndef __MDIO_DRV_IMPL5_H__
+#define __MDIO_DRV_IMPL5_H__
+
+#include "mdio_drv_common.h"
+
+typedef enum
+{
+    MDIO_EXT = 0,
+    MDIO_INT = 1,
+} mdio_type_t;
+
+int32_t mdio_read_c22_register(mdio_type_t type, uint32_t addr, uint32_t reg, uint16_t *val);
+int32_t mdio_write_c22_register(mdio_type_t type, uint32_t addr, uint32_t reg, uint16_t val);
+int32_t mdio_read_c45_register(mdio_type_t type, uint32_t addr, uint32_t dev, uint16_t reg, uint16_t *val);
+int32_t mdio_write_c45_register(mdio_type_t type, uint32_t addr, uint32_t dev, uint16_t reg, uint16_t val);
+
+#endif //__MDIO_DRV_IMPL5_H__