/* * Marvell 88E6xxx Switch Port Registers support * * Copyright (c) 2008 Marvell Semiconductor * * Copyright (c) 2016 Vivien Didelot <vivien.didelot@savoirfairelinux.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */#include "mv88e6xxx.h"#include "port.h"intmv88e6xxx_port_read(structmv88e6xxx_chip*chip,intport,intreg,u16*val){intaddr=chip->info->port_base_addr+port;returnmv88e6xxx_read(chip,addr,reg,val);}intmv88e6xxx_port_write(structmv88e6xxx_chip*chip,intport,intreg,u16val){intaddr=chip->info->port_base_addr+port;returnmv88e6xxx_write(chip,addr,reg,val);}