diff options
Diffstat (limited to 'drivers/net/sky2.h')
-rw-r--r-- | drivers/net/sky2.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/net/sky2.h b/drivers/net/sky2.h index d1c71f50d8b9..9e40766150b4 100644 --- a/drivers/net/sky2.h +++ b/drivers/net/sky2.h | |||
@@ -1951,4 +1951,25 @@ static inline void gma_set_addr(struct sky2_hw *hw, unsigned port, unsigned reg, | |||
1951 | gma_write16(hw, port, reg+4,(u16) addr[2] | ((u16) addr[3] << 8)); | 1951 | gma_write16(hw, port, reg+4,(u16) addr[2] | ((u16) addr[3] << 8)); |
1952 | gma_write16(hw, port, reg+8,(u16) addr[4] | ((u16) addr[5] << 8)); | 1952 | gma_write16(hw, port, reg+8,(u16) addr[4] | ((u16) addr[5] << 8)); |
1953 | } | 1953 | } |
1954 | |||
1955 | /* PCI config space access */ | ||
1956 | static inline u32 sky2_pci_read32(const struct sky2_hw *hw, unsigned reg) | ||
1957 | { | ||
1958 | return sky2_read32(hw, Y2_CFG_SPC + reg); | ||
1959 | } | ||
1960 | |||
1961 | static inline u16 sky2_pci_read16(const struct sky2_hw *hw, unsigned reg) | ||
1962 | { | ||
1963 | return sky2_read16(hw, Y2_CFG_SPC + reg); | ||
1964 | } | ||
1965 | |||
1966 | static inline void sky2_pci_write32(struct sky2_hw *hw, unsigned reg, u32 val) | ||
1967 | { | ||
1968 | sky2_write32(hw, Y2_CFG_SPC + reg, val); | ||
1969 | } | ||
1970 | |||
1971 | static inline void sky2_pci_write16(struct sky2_hw *hw, unsigned reg, u16 val) | ||
1972 | { | ||
1973 | sky2_write16(hw, Y2_CFG_SPC + reg, val); | ||
1974 | } | ||
1954 | #endif | 1975 | #endif |