blob: 38961793adad69cae411999831afec41c85d80ed [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#ifndef _LMC_H_
3#define _LMC_H_
4
5#include "lmc_var.h"
6
7/*
8 * prototypes for everyone
9 */
10int lmc_probe(struct net_device * dev);
11unsigned lmc_mii_readreg(lmc_softc_t * const sc, unsigned
12 devaddr, unsigned regno);
13void lmc_mii_writereg(lmc_softc_t * const sc, unsigned devaddr,
14 unsigned regno, unsigned data);
Krzysztof Hałasa867240f2008-07-03 00:39:46 +020015void lmc_led_on(lmc_softc_t * const, u32);
16void lmc_led_off(lmc_softc_t * const, u32);
Linus Torvalds1da177e2005-04-16 15:20:36 -070017unsigned lmc_mii_readreg(lmc_softc_t * const, unsigned, unsigned);
18void lmc_mii_writereg(lmc_softc_t * const, unsigned, unsigned, unsigned);
Krzysztof Hałasa867240f2008-07-03 00:39:46 +020019void lmc_gpio_mkinput(lmc_softc_t * const sc, u32 bits);
20void lmc_gpio_mkoutput(lmc_softc_t * const sc, u32 bits);
Linus Torvalds1da177e2005-04-16 15:20:36 -070021
22int lmc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd);
23
24extern lmc_media_t lmc_ds3_media;
25extern lmc_media_t lmc_ssi_media;
26extern lmc_media_t lmc_t1_media;
27extern lmc_media_t lmc_hssi_media;
28
29#ifdef _DBG_EVENTLOG
Krzysztof Hałasa867240f2008-07-03 00:39:46 +020030static void lmcEventLog(u32 EventNum, u32 arg2, u32 arg3);
Linus Torvalds1da177e2005-04-16 15:20:36 -070031#endif
32
33#endif