aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/atm/zatm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/atm/zatm.c')
-rw-r--r--drivers/atm/zatm.c31
1 files changed, 15 insertions, 16 deletions
diff --git a/drivers/atm/zatm.c b/drivers/atm/zatm.c
index abe4e20b0766..969c3c29000c 100644
--- a/drivers/atm/zatm.c
+++ b/drivers/atm/zatm.c
@@ -1094,8 +1094,8 @@ static irqreturn_t zatm_int(int irq,void *dev_id)
1094/*----------------------------- (E)EPROM access -----------------------------*/ 1094/*----------------------------- (E)EPROM access -----------------------------*/
1095 1095
1096 1096
1097static void __devinit eprom_set(struct zatm_dev *zatm_dev,unsigned long value, 1097static void eprom_set(struct zatm_dev *zatm_dev, unsigned long value,
1098 unsigned short cmd) 1098 unsigned short cmd)
1099{ 1099{
1100 int error; 1100 int error;
1101 1101
@@ -1105,8 +1105,7 @@ static void __devinit eprom_set(struct zatm_dev *zatm_dev,unsigned long value,
1105} 1105}
1106 1106
1107 1107
1108static unsigned long __devinit eprom_get(struct zatm_dev *zatm_dev, 1108static unsigned long eprom_get(struct zatm_dev *zatm_dev, unsigned short cmd)
1109 unsigned short cmd)
1110{ 1109{
1111 unsigned int value; 1110 unsigned int value;
1112 int error; 1111 int error;
@@ -1118,8 +1117,8 @@ static unsigned long __devinit eprom_get(struct zatm_dev *zatm_dev,
1118} 1117}
1119 1118
1120 1119
1121static void __devinit eprom_put_bits(struct zatm_dev *zatm_dev, 1120static void eprom_put_bits(struct zatm_dev *zatm_dev, unsigned long data,
1122 unsigned long data,int bits,unsigned short cmd) 1121 int bits, unsigned short cmd)
1123{ 1122{
1124 unsigned long value; 1123 unsigned long value;
1125 int i; 1124 int i;
@@ -1133,8 +1132,8 @@ static void __devinit eprom_put_bits(struct zatm_dev *zatm_dev,
1133} 1132}
1134 1133
1135 1134
1136static void __devinit eprom_get_byte(struct zatm_dev *zatm_dev, 1135static void eprom_get_byte(struct zatm_dev *zatm_dev, unsigned char *byte,
1137 unsigned char *byte,unsigned short cmd) 1136 unsigned short cmd)
1138{ 1137{
1139 int i; 1138 int i;
1140 1139
@@ -1149,8 +1148,8 @@ static void __devinit eprom_get_byte(struct zatm_dev *zatm_dev,
1149} 1148}
1150 1149
1151 1150
1152static unsigned char __devinit eprom_try_esi(struct atm_dev *dev, 1151static unsigned char eprom_try_esi(struct atm_dev *dev, unsigned short cmd,
1153 unsigned short cmd,int offset,int swap) 1152 int offset, int swap)
1154{ 1153{
1155 unsigned char buf[ZEPROM_SIZE]; 1154 unsigned char buf[ZEPROM_SIZE];
1156 struct zatm_dev *zatm_dev; 1155 struct zatm_dev *zatm_dev;
@@ -1170,7 +1169,7 @@ static unsigned char __devinit eprom_try_esi(struct atm_dev *dev,
1170} 1169}
1171 1170
1172 1171
1173static void __devinit eprom_get_esi(struct atm_dev *dev) 1172static void eprom_get_esi(struct atm_dev *dev)
1174{ 1173{
1175 if (eprom_try_esi(dev,ZEPROM_V1_REG,ZEPROM_V1_ESI_OFF,1)) return; 1174 if (eprom_try_esi(dev,ZEPROM_V1_REG,ZEPROM_V1_ESI_OFF,1)) return;
1176 (void) eprom_try_esi(dev,ZEPROM_V2_REG,ZEPROM_V2_ESI_OFF,0); 1175 (void) eprom_try_esi(dev,ZEPROM_V2_REG,ZEPROM_V2_ESI_OFF,0);
@@ -1180,7 +1179,7 @@ static void __devinit eprom_get_esi(struct atm_dev *dev)
1180/*--------------------------------- entries ---------------------------------*/ 1179/*--------------------------------- entries ---------------------------------*/
1181 1180
1182 1181
1183static int __devinit zatm_init(struct atm_dev *dev) 1182static int zatm_init(struct atm_dev *dev)
1184{ 1183{
1185 struct zatm_dev *zatm_dev; 1184 struct zatm_dev *zatm_dev;
1186 struct pci_dev *pci_dev; 1185 struct pci_dev *pci_dev;
@@ -1257,7 +1256,7 @@ static int __devinit zatm_init(struct atm_dev *dev)
1257} 1256}
1258 1257
1259 1258
1260static int __devinit zatm_start(struct atm_dev *dev) 1259static int zatm_start(struct atm_dev *dev)
1261{ 1260{
1262 struct zatm_dev *zatm_dev = ZATM_DEV(dev); 1261 struct zatm_dev *zatm_dev = ZATM_DEV(dev);
1263 struct pci_dev *pdev = zatm_dev->pci_dev; 1262 struct pci_dev *pdev = zatm_dev->pci_dev;
@@ -1584,8 +1583,8 @@ static const struct atmdev_ops ops = {
1584 .change_qos = zatm_change_qos, 1583 .change_qos = zatm_change_qos,
1585}; 1584};
1586 1585
1587static int __devinit zatm_init_one(struct pci_dev *pci_dev, 1586static int zatm_init_one(struct pci_dev *pci_dev,
1588 const struct pci_device_id *ent) 1587 const struct pci_device_id *ent)
1589{ 1588{
1590 struct atm_dev *dev; 1589 struct atm_dev *dev;
1591 struct zatm_dev *zatm_dev; 1590 struct zatm_dev *zatm_dev;
@@ -1636,7 +1635,7 @@ out_free:
1636 1635
1637MODULE_LICENSE("GPL"); 1636MODULE_LICENSE("GPL");
1638 1637
1639static struct pci_device_id zatm_pci_tbl[] __devinitdata = { 1638static struct pci_device_id zatm_pci_tbl[] = {
1640 { PCI_VDEVICE(ZEITNET, PCI_DEVICE_ID_ZEITNET_1221), ZATM_COPPER }, 1639 { PCI_VDEVICE(ZEITNET, PCI_DEVICE_ID_ZEITNET_1221), ZATM_COPPER },
1641 { PCI_VDEVICE(ZEITNET, PCI_DEVICE_ID_ZEITNET_1225), 0 }, 1640 { PCI_VDEVICE(ZEITNET, PCI_DEVICE_ID_ZEITNET_1225), 0 },
1642 { 0, } 1641 { 0, }