0b85c0ebde
When we reset the pm3386, it loses its internally stored MAC addresses that were programmed into it by the bootloader (and are used by the hardware for the generation of PAUSE frames.) Add a hook to allow setting these addresses so that we can program them back by hand. Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
27 lines
844 B
C
27 lines
844 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);
|
|
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);
|
|
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
|