Lines Matching +full:sparx +full:- +full:5

1 // SPDX-License-Identifier: GPL-2.0
3 * Vitesse VSC7385 SparX-G5 5+1-port Integrated Gigabit Ethernet Switch
4 * Vitesse VSC7388 SparX-G8 8-port Integrated Gigabit Ethernet Switch
5 * Vitesse VSC7395 SparX-G5e 5+1-port Integrated Gigabit Ethernet Switch
6 * Vitesse VSC7398 SparX-G8e 8-port Integrated Gigabit Ethernet Switch
8 * This driver takes control of the switch chip connected over CPU-attached
13 * Based on vitesse-vsc-spi.c by:
23 #include "vitesse-vsc73xx.h"
32 * struct vsc73xx_platform - VSC73xx Platform state container
58 struct vsc73xx_platform *vsc_platform = vsc->priv; in vsc73xx_platform_read()
62 return -EINVAL; in vsc73xx_platform_read()
65 /* By default vsc73xx running in big-endian mode. in vsc73xx_platform_read()
68 *val = ioread32be(vsc_platform->base_addr + offset); in vsc73xx_platform_read()
76 struct vsc73xx_platform *vsc_platform = vsc->priv; in vsc73xx_platform_write()
80 return -EINVAL; in vsc73xx_platform_write()
83 iowrite32be(val, vsc_platform->base_addr + offset); in vsc73xx_platform_write()
90 struct device *dev = &pdev->dev; in vsc73xx_platform_probe()
96 return -ENOMEM; in vsc73xx_platform_probe()
99 vsc_platform->pdev = pdev; in vsc73xx_platform_probe()
100 vsc_platform->vsc.dev = dev; in vsc73xx_platform_probe()
101 vsc_platform->vsc.priv = vsc_platform; in vsc73xx_platform_probe()
102 vsc_platform->vsc.ops = &vsc73xx_platform_ops; in vsc73xx_platform_probe()
105 vsc_platform->base_addr = devm_platform_ioremap_resource(pdev, 0); in vsc73xx_platform_probe()
106 if (IS_ERR(vsc_platform->base_addr)) { in vsc73xx_platform_probe()
107 dev_err(&pdev->dev, "cannot request I/O memory space\n"); in vsc73xx_platform_probe()
108 ret = -ENXIO; in vsc73xx_platform_probe()
112 return vsc73xx_probe(&vsc_platform->vsc); in vsc73xx_platform_probe()
122 vsc73xx_remove(&vsc_platform->vsc); in vsc73xx_platform_remove()
132 vsc73xx_shutdown(&vsc_platform->vsc); in vsc73xx_platform_shutdown()
164 .name = "vsc73xx-platform",