blob: 0df29b957811f40c1fd9c9c2c57f546b8c19be5d [file] [log] [blame]
Vivien Didelot18abed22016-11-04 03:23:26 +01001/*
2 * Marvell 88E6xxx Switch Port Registers support
3 *
4 * Copyright (c) 2008 Marvell Semiconductor
5 *
6 * Copyright (c) 2016 Vivien Didelot <vivien.didelot@savoirfairelinux.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 */
13
14#ifndef _MV88E6XXX_PORT_H
15#define _MV88E6XXX_PORT_H
16
17#include "mv88e6xxx.h"
18
19int mv88e6xxx_port_read(struct mv88e6xxx_chip *chip, int port, int reg,
20 u16 *val);
21int mv88e6xxx_port_write(struct mv88e6xxx_chip *chip, int port, int reg,
22 u16 val);
23
Vivien Didelote28def332016-11-04 03:23:27 +010024int mv88e6xxx_port_set_state(struct mv88e6xxx_chip *chip, int port, u8 state);
25
Vivien Didelot5a7921f2016-11-04 03:23:28 +010026int mv88e6xxx_port_set_vlan_map(struct mv88e6xxx_chip *chip, int port, u16 map);
27
Vivien Didelotb4e48c52016-11-04 03:23:29 +010028int mv88e6xxx_port_get_fid(struct mv88e6xxx_chip *chip, int port, u16 *fid);
29int mv88e6xxx_port_set_fid(struct mv88e6xxx_chip *chip, int port, u16 fid);
30
Vivien Didelot18abed22016-11-04 03:23:26 +010031#endif /* _MV88E6XXX_PORT_H */