blob: 4ced7ac16c2c643ea32e578ff35bfc4557c70065 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _LMC_H_
2#define _LMC_H_
3
4#include "lmc_var.h"
5
6/*
7 * prototypes for everyone
8 */
9int lmc_probe(struct net_device * dev);
10unsigned lmc_mii_readreg(lmc_softc_t * const sc, unsigned
11 devaddr, unsigned regno);
12void lmc_mii_writereg(lmc_softc_t * const sc, unsigned devaddr,
13 unsigned regno, unsigned data);
Krzysztof Hałasa867240f2008-07-03 00:39:46 +020014void lmc_led_on(lmc_softc_t * const, u32);
15void lmc_led_off(lmc_softc_t * const, u32);
Linus Torvalds1da177e2005-04-16 15:20:36 -070016unsigned lmc_mii_readreg(lmc_softc_t * const, unsigned, unsigned);
17void lmc_mii_writereg(lmc_softc_t * const, unsigned, unsigned, unsigned);
Krzysztof Hałasa867240f2008-07-03 00:39:46 +020018void lmc_gpio_mkinput(lmc_softc_t * const sc, u32 bits);
19void lmc_gpio_mkoutput(lmc_softc_t * const sc, u32 bits);
Linus Torvalds1da177e2005-04-16 15:20:36 -070020
21int lmc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd);
22
23extern lmc_media_t lmc_ds3_media;
24extern lmc_media_t lmc_ssi_media;
25extern lmc_media_t lmc_t1_media;
26extern lmc_media_t lmc_hssi_media;
27
28#ifdef _DBG_EVENTLOG
Krzysztof Hałasa867240f2008-07-03 00:39:46 +020029static void lmcEventLog(u32 EventNum, u32 arg2, u32 arg3);
Linus Torvalds1da177e2005-04-16 15:20:36 -070030#endif
31
32#endif