1/* MII, MDIO and EEPROM interface of SiS 900
2 *
3 * Copyright 2001-2005 pinc Software. All Rights Reserved.
4 * Distributed under the terms of the MIT license.
5 */
6#ifndef INTERFACE_H
7#define INTERFACE_H
8
9
10#include "sis900.h"
11
12
13extern uint16 eeprom_read(struct sis_info *info, int address);
14
15extern uint16 mdio_read(struct sis_info *info, uint16 reg);
16extern uint16 mdio_readFromPHY(struct sis_info *info, uint16 phy, uint16 reg);
17extern void mdio_write(struct sis_info *info, uint16 reg, uint16 value);
18extern void mdio_writeToPHY(struct sis_info *info, uint16 phy, uint16 reg, uint16 value);
19
20extern uint16 mdio_statusFromPHY(struct sis_info *info, uint16 phy);
21extern uint16 mdio_status(struct sis_info *info);
22
23#endif  /* INTERFACE_H */
24