blob: cc4183dca9116959be453b1354065719c850fe4a [file] [log] [blame]
Lennert Buytenhek15d014d2005-11-11 18:23:13 +01001/*
2 * Helper functions for the PM3386s on the Radisys ENP2611
3 * Copyright (C) 2004, 2005 Lennert Buytenhek <buytenh@wantstofly.org>
4 * Dedicated to Marija Kulikova.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 */
11
12#ifndef __PM3386_H
13#define __PM3386_H
14
15void pm3386_reset(void);
Lennert Buytenhek1ea739a2006-05-15 12:25:29 -070016int pm3386_port_count(void);
Lennert Buytenhek15d014d2005-11-11 18:23:13 +010017void pm3386_init_port(int port);
18void pm3386_get_mac(int port, u8 *mac);
Lennert Buytenhek0b85c0e2005-11-23 12:49:47 +010019void pm3386_set_mac(int port, u8 *mac);
Lennert Buytenhek15d014d2005-11-11 18:23:13 +010020void pm3386_get_stats(int port, struct net_device_stats *stats);
Lennert Buytenhekdf865502005-11-23 12:49:51 +010021void pm3386_set_carrier(int port, int state);
Lennert Buytenhek15d014d2005-11-11 18:23:13 +010022int pm3386_is_link_up(int port);
23void pm3386_enable_rx(int port);
24void pm3386_disable_rx(int port);
25void pm3386_enable_tx(int port);
26void pm3386_disable_tx(int port);
27
28
29#endif