Changeset 9da83e7 in rtems-libbsd for rtemsbsd/powerpc/include/linux/phy.h


Ignore:
Timestamp:
05/24/17 06:32:09 (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, 5-freebsd-12, 6-freebsd-12, master
Children:
03d1426
Parents:
66e83e0e
git-author:
Sebastian Huber <sebastian.huber@…> (05/24/17 06:32:09)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/23/17 07:24:06)
Message:

dpaa: Support c45 phys

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/powerpc/include/linux/phy.h

    r66e83e0e r9da83e7  
    8181#define SUPPORTED_Pause                 (1U << 9)
    8282
     83#define MII_ADDR_C45 (1 << 30)
     84
    8385struct mdio_bus {
    84         int (*read)(struct mdio_bus *bus, int phy, int reg);
    85         int (*write)(struct mdio_bus *bus, int phy, int reg, int val);
     86        int (*read)(struct mdio_bus *bus, int addr, int reg);
     87        int (*write)(struct mdio_bus *bus, int addr, int reg, int val);
    8688        SLIST_ENTRY(mdio_bus) next;
    8789        int node;
     
    9294                struct device dev;
    9395                int addr;
     96                int is_c45;
    9497                struct mdio_bus *bus;
    9598        } mdio;
    9699};
    97100
    98 static inline int
    99 phy_read(struct phy_device *phy_dev, int reg)
    100 {
    101         struct mdio_bus *mdio_dev;
     101int phy_read(struct phy_device *phy_dev, int reg);
    102102
    103         mdio_dev = phy_dev->mdio.bus;
    104         return ((*mdio_dev->read)(mdio_dev, phy_dev->mdio.addr, (int)reg));
    105 }
    106 
    107 static inline int
    108 phy_write(struct phy_device *phy_dev, int reg, int val)
    109 {
    110         struct mdio_bus *mdio_dev;
    111 
    112         mdio_dev = phy_dev->mdio.bus;
    113         return ((*mdio_dev->write)(mdio_dev, phy_dev->mdio.addr, reg, val));
    114 }
     103int phy_write(struct phy_device *phy_dev, int reg, int val);
    115104
    116105#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.