^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef _LMC_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define _LMC_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #include "lmc_var.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) * prototypes for everyone
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) int lmc_probe(struct net_device * dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) unsigned lmc_mii_readreg(lmc_softc_t * const sc, unsigned
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) devaddr, unsigned regno);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) void lmc_mii_writereg(lmc_softc_t * const sc, unsigned devaddr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) unsigned regno, unsigned data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) void lmc_led_on(lmc_softc_t * const, u32);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) void lmc_led_off(lmc_softc_t * const, u32);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) unsigned lmc_mii_readreg(lmc_softc_t * const, unsigned, unsigned);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) void lmc_mii_writereg(lmc_softc_t * const, unsigned, unsigned, unsigned);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) void lmc_gpio_mkinput(lmc_softc_t * const sc, u32 bits);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) void lmc_gpio_mkoutput(lmc_softc_t * const sc, u32 bits);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) int lmc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) extern lmc_media_t lmc_ds3_media;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) extern lmc_media_t lmc_ssi_media;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) extern lmc_media_t lmc_t1_media;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) extern lmc_media_t lmc_hssi_media;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #ifdef _DBG_EVENTLOG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) static void lmcEventLog(u32 EventNum, u32 arg2, u32 arg3);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #endif