*/
void miiphy_register(const char *name,
int (*read)(const char *devname, unsigned char addr,
- unsigned char reg, unsigned short *value),
+ unsigned short reg, unsigned short *value),
int (*write)(const char *devname, unsigned char addr,
- unsigned char reg, unsigned short value))
+ unsigned short reg, unsigned short value))
{
struct mii_dev *new_dev;
struct legacy_mii_dev *ldev;
* Returns:
* 0 on success
*/
-int miiphy_read(const char *devname, unsigned char addr, unsigned char reg,
+int miiphy_read(const char *devname, unsigned char addr, unsigned short reg,
unsigned short *value)
{
struct mii_dev *bus;
* Returns:
* 0 on success
*/
-int miiphy_write(const char *devname, unsigned char addr, unsigned char reg,
+int miiphy_write(const char *devname, unsigned char addr, unsigned short reg,
unsigned short value)
{
struct mii_dev *bus;
struct legacy_mii_dev {
int (*read)(const char *devname, unsigned char addr,
- unsigned char reg, unsigned short *value);
+ unsigned short reg, unsigned short *value);
int (*write)(const char *devname, unsigned char addr,
- unsigned char reg, unsigned short value);
+ unsigned short reg, unsigned short value);
};
-int miiphy_read(const char *devname, unsigned char addr, unsigned char reg,
+int miiphy_read(const char *devname, unsigned char addr, unsigned short reg,
unsigned short *value);
-int miiphy_write(const char *devname, unsigned char addr, unsigned char reg,
+int miiphy_write(const char *devname, unsigned char addr, unsigned short reg,
unsigned short value);
int miiphy_info(const char *devname, unsigned char addr, unsigned int *oui,
unsigned char *model, unsigned char *rev);
void miiphy_register(const char *devname,
int (*read)(const char *devname, unsigned char addr,
- unsigned char reg, unsigned short *value),
+ unsigned short reg, unsigned short *value),
int (*write)(const char *devname, unsigned char addr,
- unsigned char reg, unsigned short value));
+ unsigned short reg, unsigned short value));
int miiphy_set_current_dev(const char *devname);
const char *miiphy_get_current_dev(void);