blob: ac13988fc79a0ec14898942eec77c4068306f437 [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 Didelot18abed22016-11-04 03:23:26 +010026#endif /* _MV88E6XXX_PORT_H */