mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 20:23:57 +08:00
1ea739a5f9
three gigabit ports, but some enp2611 models only have two ports (and only one onboard PM3386.) The current driver assumes there are always three ports and so it doesn't work on the two-port version of the board at all. This patch adds a bit of logic to the enp2611 driver to limit the number of ports to 2 if the second PM3386 isn't detected. Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org> Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
30 lines
919 B
C
30 lines
919 B
C
/*
|
|
* Helper functions for the PM3386s on the Radisys ENP2611
|
|
* Copyright (C) 2004, 2005 Lennert Buytenhek <buytenh@wantstofly.org>
|
|
* Dedicated to Marija Kulikova.
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
#ifndef __PM3386_H
|
|
#define __PM3386_H
|
|
|
|
void pm3386_reset(void);
|
|
int pm3386_port_count(void);
|
|
void pm3386_init_port(int port);
|
|
void pm3386_get_mac(int port, u8 *mac);
|
|
void pm3386_set_mac(int port, u8 *mac);
|
|
void pm3386_get_stats(int port, struct net_device_stats *stats);
|
|
void pm3386_set_carrier(int port, int state);
|
|
int pm3386_is_link_up(int port);
|
|
void pm3386_enable_rx(int port);
|
|
void pm3386_disable_rx(int port);
|
|
void pm3386_enable_tx(int port);
|
|
void pm3386_disable_tx(int port);
|
|
|
|
|
|
#endif
|