pm3386.h 919 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/*
 * 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);
16
int pm3386_port_count(void);
17 18
void pm3386_init_port(int port);
void pm3386_get_mac(int port, u8 *mac);
19
void pm3386_set_mac(int port, u8 *mac);
20
void pm3386_get_stats(int port, struct net_device_stats *stats);
21
void pm3386_set_carrier(int port, int state);
22 23 24 25 26 27 28 29
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