diff options
Diffstat (limited to 'drivers/net/smc91x.h')
-rw-r--r-- | drivers/net/smc91x.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/smc91x.h b/drivers/net/smc91x.h index c4ccd121bc9c..ed9ae43523a1 100644 --- a/drivers/net/smc91x.h +++ b/drivers/net/smc91x.h | |||
@@ -1141,6 +1141,16 @@ static const char * chip_ids[ 16 ] = { | |||
1141 | 1141 | ||
1142 | #define SMC_GET_MII(lp) SMC_inw(ioaddr, MII_REG(lp)) | 1142 | #define SMC_GET_MII(lp) SMC_inw(ioaddr, MII_REG(lp)) |
1143 | 1143 | ||
1144 | #define SMC_GET_GP(lp) SMC_inw(ioaddr, GP_REG(lp)) | ||
1145 | |||
1146 | #define SMC_SET_GP(lp, x) \ | ||
1147 | do { \ | ||
1148 | if (SMC_MUST_ALIGN_WRITE(lp)) \ | ||
1149 | SMC_outl((x)<<16, ioaddr, SMC_REG(lp, 8, 1)); \ | ||
1150 | else \ | ||
1151 | SMC_outw(x, ioaddr, GP_REG(lp)); \ | ||
1152 | } while (0) | ||
1153 | |||
1144 | #define SMC_SET_MII(lp, x) SMC_outw(x, ioaddr, MII_REG(lp)) | 1154 | #define SMC_SET_MII(lp, x) SMC_outw(x, ioaddr, MII_REG(lp)) |
1145 | 1155 | ||
1146 | #define SMC_GET_MIR(lp) SMC_inw(ioaddr, MIR_REG(lp)) | 1156 | #define SMC_GET_MIR(lp) SMC_inw(ioaddr, MIR_REG(lp)) |