#ifndef __GBPHY_H
#define __GBPHY_H
struct gbphy_device { … };
#define to_gbphy_dev(d) …
static inline void *gb_gbphy_get_data(struct gbphy_device *gdev)
{ … }
static inline void gb_gbphy_set_data(struct gbphy_device *gdev, void *data)
{ … }
struct gbphy_device_id { … };
#define GBPHY_PROTOCOL(p) …
struct gbphy_driver { … };
#define to_gbphy_driver(d) …
int gb_gbphy_register_driver(struct gbphy_driver *driver,
struct module *owner, const char *mod_name);
void gb_gbphy_deregister_driver(struct gbphy_driver *driver);
#define gb_gbphy_register(driver) …
#define gb_gbphy_deregister(driver) …
#define module_gbphy_driver(__gbphy_driver) …
#ifdef CONFIG_PM
static inline int gbphy_runtime_get_sync(struct gbphy_device *gbphy_dev)
{ … }
static inline void gbphy_runtime_put_autosuspend(struct gbphy_device *gbphy_dev)
{ … }
static inline void gbphy_runtime_get_noresume(struct gbphy_device *gbphy_dev)
{ … }
static inline void gbphy_runtime_put_noidle(struct gbphy_device *gbphy_dev)
{ … }
#else
static inline int gbphy_runtime_get_sync(struct gbphy_device *gbphy_dev) { return 0; }
static inline void gbphy_runtime_put_autosuspend(struct gbphy_device *gbphy_dev) {}
static inline void gbphy_runtime_get_noresume(struct gbphy_device *gbphy_dev) {}
static inline void gbphy_runtime_put_noidle(struct gbphy_device *gbphy_dev) {}
#endif
#endif