diff options
Diffstat (limited to 'include/linux/ssb/ssb_driver_gige.h')
-rw-r--r-- | include/linux/ssb/ssb_driver_gige.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/ssb/ssb_driver_gige.h b/include/linux/ssb/ssb_driver_gige.h index 86a12b0cb239..0688472500bb 100644 --- a/include/linux/ssb/ssb_driver_gige.h +++ b/include/linux/ssb/ssb_driver_gige.h | |||
@@ -108,6 +108,16 @@ static inline int ssb_gige_get_macaddr(struct pci_dev *pdev, u8 *macaddr) | |||
108 | return 0; | 108 | return 0; |
109 | } | 109 | } |
110 | 110 | ||
111 | /* Get the device phy address */ | ||
112 | static inline int ssb_gige_get_phyaddr(struct pci_dev *pdev) | ||
113 | { | ||
114 | struct ssb_gige *dev = pdev_to_ssb_gige(pdev); | ||
115 | if (!dev) | ||
116 | return -ENODEV; | ||
117 | |||
118 | return dev->dev->bus->sprom.et0phyaddr; | ||
119 | } | ||
120 | |||
111 | extern int ssb_gige_pcibios_plat_dev_init(struct ssb_device *sdev, | 121 | extern int ssb_gige_pcibios_plat_dev_init(struct ssb_device *sdev, |
112 | struct pci_dev *pdev); | 122 | struct pci_dev *pdev); |
113 | extern int ssb_gige_map_irq(struct ssb_device *sdev, | 123 | extern int ssb_gige_map_irq(struct ssb_device *sdev, |
@@ -174,6 +184,10 @@ static inline int ssb_gige_get_macaddr(struct pci_dev *pdev, u8 *macaddr) | |||
174 | { | 184 | { |
175 | return -ENODEV; | 185 | return -ENODEV; |
176 | } | 186 | } |
187 | static inline int ssb_gige_get_phyaddr(struct pci_dev *pdev) | ||
188 | { | ||
189 | return -ENODEV; | ||
190 | } | ||
177 | 191 | ||
178 | #endif /* CONFIG_SSB_DRIVER_GIGE */ | 192 | #endif /* CONFIG_SSB_DRIVER_GIGE */ |
179 | #endif /* LINUX_SSB_DRIVER_GIGE_H_ */ | 193 | #endif /* LINUX_SSB_DRIVER_GIGE_H_ */ |