diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-28 12:24:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-28 12:24:14 -0400 |
commit | e430426654c6a99fb1977bae71d4844e876c4a52 (patch) | |
tree | 65a22a59321b6bed5579c2e58371eeb373e1db61 /drivers/parisc | |
parent | e732ff707743e5ceba6ae2bfc7e799a0bac30ffa (diff) | |
parent | 650a35f868f809aade56ef960d8a465f57ac74e2 (diff) |
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/kyle/parisc-2.6
* 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/kyle/parisc-2.6:
parisc: add tty driver to PDC console
drivers/parisc/iosapic.c: Remove unnecessary kzalloc cast
parisc: remove homegrown L1_CACHE_ALIGN macro
arch/parisc: Removing undead ifdef CONFIG_PA20
parisc: unwind - optimise linked-list searches for modules
parisc: change to new flag variable
drivers/char/agp/parisc-agp.c: eliminate memory leak
parisc: kill __do_IRQ
parisc: convert eisa interrupts to flow handlers
parisc: convert gsc and dino pci interrupts to flow handlers
parisc: convert suckyio interrupts to flow handlers
parisc: convert iosapic interrupts to proper flow handlers
parisc: convert cpu interrupts to proper flow handlers
parisc: lay groundwork for killing __do_IRQ
parisc: add prlimit64 syscall
parisc: squelch warning when using dev_get_stats
Diffstat (limited to 'drivers/parisc')
-rw-r--r-- | drivers/parisc/dino.c | 29 | ||||
-rw-r--r-- | drivers/parisc/eisa.c | 29 | ||||
-rw-r--r-- | drivers/parisc/gsc.c | 36 | ||||
-rw-r--r-- | drivers/parisc/iosapic.c | 56 | ||||
-rw-r--r-- | drivers/parisc/led.c | 6 | ||||
-rw-r--r-- | drivers/parisc/superio.c | 25 |
6 files changed, 53 insertions, 128 deletions
diff --git a/drivers/parisc/dino.c b/drivers/parisc/dino.c index c542c7bb7454..d9f51485beee 100644 --- a/drivers/parisc/dino.c +++ b/drivers/parisc/dino.c | |||
@@ -296,10 +296,9 @@ static struct pci_port_ops dino_port_ops = { | |||
296 | .outl = dino_out32 | 296 | .outl = dino_out32 |
297 | }; | 297 | }; |
298 | 298 | ||
299 | static void dino_disable_irq(unsigned int irq) | 299 | static void dino_mask_irq(unsigned int irq) |
300 | { | 300 | { |
301 | struct irq_desc *desc = irq_to_desc(irq); | 301 | struct dino_device *dino_dev = get_irq_chip_data(irq); |
302 | struct dino_device *dino_dev = desc->chip_data; | ||
303 | int local_irq = gsc_find_local_irq(irq, dino_dev->global_irq, DINO_LOCAL_IRQS); | 302 | int local_irq = gsc_find_local_irq(irq, dino_dev->global_irq, DINO_LOCAL_IRQS); |
304 | 303 | ||
305 | DBG(KERN_WARNING "%s(0x%p, %d)\n", __func__, dino_dev, irq); | 304 | DBG(KERN_WARNING "%s(0x%p, %d)\n", __func__, dino_dev, irq); |
@@ -309,10 +308,9 @@ static void dino_disable_irq(unsigned int irq) | |||
309 | __raw_writel(dino_dev->imr, dino_dev->hba.base_addr+DINO_IMR); | 308 | __raw_writel(dino_dev->imr, dino_dev->hba.base_addr+DINO_IMR); |
310 | } | 309 | } |
311 | 310 | ||
312 | static void dino_enable_irq(unsigned int irq) | 311 | static void dino_unmask_irq(unsigned int irq) |
313 | { | 312 | { |
314 | struct irq_desc *desc = irq_to_desc(irq); | 313 | struct dino_device *dino_dev = get_irq_chip_data(irq); |
315 | struct dino_device *dino_dev = desc->chip_data; | ||
316 | int local_irq = gsc_find_local_irq(irq, dino_dev->global_irq, DINO_LOCAL_IRQS); | 314 | int local_irq = gsc_find_local_irq(irq, dino_dev->global_irq, DINO_LOCAL_IRQS); |
317 | u32 tmp; | 315 | u32 tmp; |
318 | 316 | ||
@@ -347,20 +345,11 @@ static void dino_enable_irq(unsigned int irq) | |||
347 | } | 345 | } |
348 | } | 346 | } |
349 | 347 | ||
350 | static unsigned int dino_startup_irq(unsigned int irq) | ||
351 | { | ||
352 | dino_enable_irq(irq); | ||
353 | return 0; | ||
354 | } | ||
355 | |||
356 | static struct irq_chip dino_interrupt_type = { | 348 | static struct irq_chip dino_interrupt_type = { |
357 | .name = "GSC-PCI", | 349 | .name = "GSC-PCI", |
358 | .startup = dino_startup_irq, | 350 | .unmask = dino_unmask_irq, |
359 | .shutdown = dino_disable_irq, | 351 | .mask = dino_mask_irq, |
360 | .enable = dino_enable_irq, | 352 | .ack = no_ack_irq, |
361 | .disable = dino_disable_irq, | ||
362 | .ack = no_ack_irq, | ||
363 | .end = no_end_irq, | ||
364 | }; | 353 | }; |
365 | 354 | ||
366 | 355 | ||
@@ -391,7 +380,7 @@ ilr_again: | |||
391 | int irq = dino_dev->global_irq[local_irq]; | 380 | int irq = dino_dev->global_irq[local_irq]; |
392 | DBG(KERN_DEBUG "%s(%d, %p) mask 0x%x\n", | 381 | DBG(KERN_DEBUG "%s(%d, %p) mask 0x%x\n", |
393 | __func__, irq, intr_dev, mask); | 382 | __func__, irq, intr_dev, mask); |
394 | __do_IRQ(irq); | 383 | generic_handle_irq(irq); |
395 | mask &= ~(1 << local_irq); | 384 | mask &= ~(1 << local_irq); |
396 | } while (mask); | 385 | } while (mask); |
397 | 386 | ||
diff --git a/drivers/parisc/eisa.c b/drivers/parisc/eisa.c index 46f503fb7fc5..1211974f55aa 100644 --- a/drivers/parisc/eisa.c +++ b/drivers/parisc/eisa.c | |||
@@ -144,7 +144,7 @@ static unsigned int eisa_irq_level __read_mostly; /* default to edge triggered * | |||
144 | 144 | ||
145 | 145 | ||
146 | /* called by free irq */ | 146 | /* called by free irq */ |
147 | static void eisa_disable_irq(unsigned int irq) | 147 | static void eisa_mask_irq(unsigned int irq) |
148 | { | 148 | { |
149 | unsigned long flags; | 149 | unsigned long flags; |
150 | 150 | ||
@@ -164,7 +164,7 @@ static void eisa_disable_irq(unsigned int irq) | |||
164 | } | 164 | } |
165 | 165 | ||
166 | /* called by request irq */ | 166 | /* called by request irq */ |
167 | static void eisa_enable_irq(unsigned int irq) | 167 | static void eisa_unmask_irq(unsigned int irq) |
168 | { | 168 | { |
169 | unsigned long flags; | 169 | unsigned long flags; |
170 | EISA_DBG("enable irq %d\n", irq); | 170 | EISA_DBG("enable irq %d\n", irq); |
@@ -182,20 +182,11 @@ static void eisa_enable_irq(unsigned int irq) | |||
182 | EISA_DBG("pic1 mask %02x\n", eisa_in8(0xa1)); | 182 | EISA_DBG("pic1 mask %02x\n", eisa_in8(0xa1)); |
183 | } | 183 | } |
184 | 184 | ||
185 | static unsigned int eisa_startup_irq(unsigned int irq) | ||
186 | { | ||
187 | eisa_enable_irq(irq); | ||
188 | return 0; | ||
189 | } | ||
190 | |||
191 | static struct irq_chip eisa_interrupt_type = { | 185 | static struct irq_chip eisa_interrupt_type = { |
192 | .name = "EISA", | 186 | .name = "EISA", |
193 | .startup = eisa_startup_irq, | 187 | .unmask = eisa_unmask_irq, |
194 | .shutdown = eisa_disable_irq, | 188 | .mask = eisa_mask_irq, |
195 | .enable = eisa_enable_irq, | 189 | .ack = no_ack_irq, |
196 | .disable = eisa_disable_irq, | ||
197 | .ack = no_ack_irq, | ||
198 | .end = no_end_irq, | ||
199 | }; | 190 | }; |
200 | 191 | ||
201 | static irqreturn_t eisa_irq(int wax_irq, void *intr_dev) | 192 | static irqreturn_t eisa_irq(int wax_irq, void *intr_dev) |
@@ -233,7 +224,7 @@ static irqreturn_t eisa_irq(int wax_irq, void *intr_dev) | |||
233 | } | 224 | } |
234 | spin_unlock_irqrestore(&eisa_irq_lock, flags); | 225 | spin_unlock_irqrestore(&eisa_irq_lock, flags); |
235 | 226 | ||
236 | __do_IRQ(irq); | 227 | generic_handle_irq(irq); |
237 | 228 | ||
238 | spin_lock_irqsave(&eisa_irq_lock, flags); | 229 | spin_lock_irqsave(&eisa_irq_lock, flags); |
239 | /* unmask */ | 230 | /* unmask */ |
@@ -346,10 +337,10 @@ static int __init eisa_probe(struct parisc_device *dev) | |||
346 | } | 337 | } |
347 | 338 | ||
348 | /* Reserve IRQ2 */ | 339 | /* Reserve IRQ2 */ |
349 | irq_to_desc(2)->action = &irq2_action; | 340 | setup_irq(2, &irq2_action); |
350 | |||
351 | for (i = 0; i < 16; i++) { | 341 | for (i = 0; i < 16; i++) { |
352 | irq_to_desc(i)->chip = &eisa_interrupt_type; | 342 | set_irq_chip_and_handler(i, &eisa_interrupt_type, |
343 | handle_level_irq); | ||
353 | } | 344 | } |
354 | 345 | ||
355 | EISA_bus = 1; | 346 | EISA_bus = 1; |
diff --git a/drivers/parisc/gsc.c b/drivers/parisc/gsc.c index 20a1bce1a031..e605298e3aee 100644 --- a/drivers/parisc/gsc.c +++ b/drivers/parisc/gsc.c | |||
@@ -86,7 +86,7 @@ irqreturn_t gsc_asic_intr(int gsc_asic_irq, void *dev) | |||
86 | do { | 86 | do { |
87 | int local_irq = __ffs(irr); | 87 | int local_irq = __ffs(irr); |
88 | unsigned int irq = gsc_asic->global_irq[local_irq]; | 88 | unsigned int irq = gsc_asic->global_irq[local_irq]; |
89 | __do_IRQ(irq); | 89 | generic_handle_irq(irq); |
90 | irr &= ~(1 << local_irq); | 90 | irr &= ~(1 << local_irq); |
91 | } while (irr); | 91 | } while (irr); |
92 | 92 | ||
@@ -105,10 +105,9 @@ int gsc_find_local_irq(unsigned int irq, int *global_irqs, int limit) | |||
105 | return NO_IRQ; | 105 | return NO_IRQ; |
106 | } | 106 | } |
107 | 107 | ||
108 | static void gsc_asic_disable_irq(unsigned int irq) | 108 | static void gsc_asic_mask_irq(unsigned int irq) |
109 | { | 109 | { |
110 | struct irq_desc *desc = irq_to_desc(irq); | 110 | struct gsc_asic *irq_dev = get_irq_chip_data(irq); |
111 | struct gsc_asic *irq_dev = desc->chip_data; | ||
112 | int local_irq = gsc_find_local_irq(irq, irq_dev->global_irq, 32); | 111 | int local_irq = gsc_find_local_irq(irq, irq_dev->global_irq, 32); |
113 | u32 imr; | 112 | u32 imr; |
114 | 113 | ||
@@ -121,10 +120,9 @@ static void gsc_asic_disable_irq(unsigned int irq) | |||
121 | gsc_writel(imr, irq_dev->hpa + OFFSET_IMR); | 120 | gsc_writel(imr, irq_dev->hpa + OFFSET_IMR); |
122 | } | 121 | } |
123 | 122 | ||
124 | static void gsc_asic_enable_irq(unsigned int irq) | 123 | static void gsc_asic_unmask_irq(unsigned int irq) |
125 | { | 124 | { |
126 | struct irq_desc *desc = irq_to_desc(irq); | 125 | struct gsc_asic *irq_dev = get_irq_chip_data(irq); |
127 | struct gsc_asic *irq_dev = desc->chip_data; | ||
128 | int local_irq = gsc_find_local_irq(irq, irq_dev->global_irq, 32); | 126 | int local_irq = gsc_find_local_irq(irq, irq_dev->global_irq, 32); |
129 | u32 imr; | 127 | u32 imr; |
130 | 128 | ||
@@ -141,33 +139,23 @@ static void gsc_asic_enable_irq(unsigned int irq) | |||
141 | */ | 139 | */ |
142 | } | 140 | } |
143 | 141 | ||
144 | static unsigned int gsc_asic_startup_irq(unsigned int irq) | ||
145 | { | ||
146 | gsc_asic_enable_irq(irq); | ||
147 | return 0; | ||
148 | } | ||
149 | |||
150 | static struct irq_chip gsc_asic_interrupt_type = { | 142 | static struct irq_chip gsc_asic_interrupt_type = { |
151 | .name = "GSC-ASIC", | 143 | .name = "GSC-ASIC", |
152 | .startup = gsc_asic_startup_irq, | 144 | .unmask = gsc_asic_unmask_irq, |
153 | .shutdown = gsc_asic_disable_irq, | 145 | .mask = gsc_asic_mask_irq, |
154 | .enable = gsc_asic_enable_irq, | 146 | .ack = no_ack_irq, |
155 | .disable = gsc_asic_disable_irq, | ||
156 | .ack = no_ack_irq, | ||
157 | .end = no_end_irq, | ||
158 | }; | 147 | }; |
159 | 148 | ||
160 | int gsc_assign_irq(struct irq_chip *type, void *data) | 149 | int gsc_assign_irq(struct irq_chip *type, void *data) |
161 | { | 150 | { |
162 | static int irq = GSC_IRQ_BASE; | 151 | static int irq = GSC_IRQ_BASE; |
163 | struct irq_desc *desc; | ||
164 | 152 | ||
165 | if (irq > GSC_IRQ_MAX) | 153 | if (irq > GSC_IRQ_MAX) |
166 | return NO_IRQ; | 154 | return NO_IRQ; |
167 | 155 | ||
168 | desc = irq_to_desc(irq); | 156 | set_irq_chip_and_handler(irq, type, handle_level_irq); |
169 | desc->chip = type; | 157 | set_irq_chip_data(irq, data); |
170 | desc->chip_data = data; | 158 | |
171 | return irq++; | 159 | return irq++; |
172 | } | 160 | } |
173 | 161 | ||
diff --git a/drivers/parisc/iosapic.c b/drivers/parisc/iosapic.c index c76836727cae..a3120a09c43d 100644 --- a/drivers/parisc/iosapic.c +++ b/drivers/parisc/iosapic.c | |||
@@ -615,17 +615,10 @@ iosapic_set_irt_data( struct vector_info *vi, u32 *dp0, u32 *dp1) | |||
615 | } | 615 | } |
616 | 616 | ||
617 | 617 | ||
618 | static struct vector_info *iosapic_get_vector(unsigned int irq) | 618 | static void iosapic_mask_irq(unsigned int irq) |
619 | { | ||
620 | struct irq_desc *desc = irq_to_desc(irq); | ||
621 | |||
622 | return desc->chip_data; | ||
623 | } | ||
624 | |||
625 | static void iosapic_disable_irq(unsigned int irq) | ||
626 | { | 619 | { |
627 | unsigned long flags; | 620 | unsigned long flags; |
628 | struct vector_info *vi = iosapic_get_vector(irq); | 621 | struct vector_info *vi = get_irq_chip_data(irq); |
629 | u32 d0, d1; | 622 | u32 d0, d1; |
630 | 623 | ||
631 | spin_lock_irqsave(&iosapic_lock, flags); | 624 | spin_lock_irqsave(&iosapic_lock, flags); |
@@ -635,9 +628,9 @@ static void iosapic_disable_irq(unsigned int irq) | |||
635 | spin_unlock_irqrestore(&iosapic_lock, flags); | 628 | spin_unlock_irqrestore(&iosapic_lock, flags); |
636 | } | 629 | } |
637 | 630 | ||
638 | static void iosapic_enable_irq(unsigned int irq) | 631 | static void iosapic_unmask_irq(unsigned int irq) |
639 | { | 632 | { |
640 | struct vector_info *vi = iosapic_get_vector(irq); | 633 | struct vector_info *vi = get_irq_chip_data(irq); |
641 | u32 d0, d1; | 634 | u32 d0, d1; |
642 | 635 | ||
643 | /* data is initialized by fixup_irq */ | 636 | /* data is initialized by fixup_irq */ |
@@ -676,36 +669,14 @@ printk("\n"); | |||
676 | DBG(KERN_DEBUG "enable_irq(%d): eoi(%p, 0x%x)\n", irq, | 669 | DBG(KERN_DEBUG "enable_irq(%d): eoi(%p, 0x%x)\n", irq, |
677 | vi->eoi_addr, vi->eoi_data); | 670 | vi->eoi_addr, vi->eoi_data); |
678 | iosapic_eoi(vi->eoi_addr, vi->eoi_data); | 671 | iosapic_eoi(vi->eoi_addr, vi->eoi_data); |
679 | } | 672 | cpu_eoi_irq(irq); |
680 | |||
681 | /* | ||
682 | * PARISC only supports PCI devices below I/O SAPIC. | ||
683 | * PCI only supports level triggered in order to share IRQ lines. | ||
684 | * ergo I/O SAPIC must always issue EOI on parisc. | ||
685 | * | ||
686 | * i386/ia64 support ISA devices and have to deal with | ||
687 | * edge-triggered interrupts too. | ||
688 | */ | ||
689 | static void iosapic_end_irq(unsigned int irq) | ||
690 | { | ||
691 | struct vector_info *vi = iosapic_get_vector(irq); | ||
692 | DBG(KERN_DEBUG "end_irq(%d): eoi(%p, 0x%x)\n", irq, | ||
693 | vi->eoi_addr, vi->eoi_data); | ||
694 | iosapic_eoi(vi->eoi_addr, vi->eoi_data); | ||
695 | cpu_end_irq(irq); | ||
696 | } | ||
697 | |||
698 | static unsigned int iosapic_startup_irq(unsigned int irq) | ||
699 | { | ||
700 | iosapic_enable_irq(irq); | ||
701 | return 0; | ||
702 | } | 673 | } |
703 | 674 | ||
704 | #ifdef CONFIG_SMP | 675 | #ifdef CONFIG_SMP |
705 | static int iosapic_set_affinity_irq(unsigned int irq, | 676 | static int iosapic_set_affinity_irq(unsigned int irq, |
706 | const struct cpumask *dest) | 677 | const struct cpumask *dest) |
707 | { | 678 | { |
708 | struct vector_info *vi = iosapic_get_vector(irq); | 679 | struct vector_info *vi = get_irq_chip_data(irq); |
709 | u32 d0, d1, dummy_d0; | 680 | u32 d0, d1, dummy_d0; |
710 | unsigned long flags; | 681 | unsigned long flags; |
711 | int dest_cpu; | 682 | int dest_cpu; |
@@ -730,13 +701,10 @@ static int iosapic_set_affinity_irq(unsigned int irq, | |||
730 | #endif | 701 | #endif |
731 | 702 | ||
732 | static struct irq_chip iosapic_interrupt_type = { | 703 | static struct irq_chip iosapic_interrupt_type = { |
733 | .name = "IO-SAPIC-level", | 704 | .name = "IO-SAPIC-level", |
734 | .startup = iosapic_startup_irq, | 705 | .unmask = iosapic_unmask_irq, |
735 | .shutdown = iosapic_disable_irq, | 706 | .mask = iosapic_mask_irq, |
736 | .enable = iosapic_enable_irq, | 707 | .ack = cpu_ack_irq, |
737 | .disable = iosapic_disable_irq, | ||
738 | .ack = cpu_ack_irq, | ||
739 | .end = iosapic_end_irq, | ||
740 | #ifdef CONFIG_SMP | 708 | #ifdef CONFIG_SMP |
741 | .set_affinity = iosapic_set_affinity_irq, | 709 | .set_affinity = iosapic_set_affinity_irq, |
742 | #endif | 710 | #endif |
@@ -891,8 +859,8 @@ void *iosapic_register(unsigned long hpa) | |||
891 | isi->isi_version = iosapic_rd_version(isi); | 859 | isi->isi_version = iosapic_rd_version(isi); |
892 | isi->isi_num_vectors = IOSAPIC_IRDT_MAX_ENTRY(isi->isi_version) + 1; | 860 | isi->isi_num_vectors = IOSAPIC_IRDT_MAX_ENTRY(isi->isi_version) + 1; |
893 | 861 | ||
894 | vip = isi->isi_vector = (struct vector_info *) | 862 | vip = isi->isi_vector = kcalloc(isi->isi_num_vectors, |
895 | kzalloc(sizeof(struct vector_info) * isi->isi_num_vectors, GFP_KERNEL); | 863 | sizeof(struct vector_info), GFP_KERNEL); |
896 | if (vip == NULL) { | 864 | if (vip == NULL) { |
897 | kfree(isi); | 865 | kfree(isi); |
898 | return NULL; | 866 | return NULL; |
diff --git a/drivers/parisc/led.c b/drivers/parisc/led.c index c5c14dd3734f..2350e8a86eef 100644 --- a/drivers/parisc/led.c +++ b/drivers/parisc/led.c | |||
@@ -346,8 +346,8 @@ static __inline__ int led_get_net_activity(void) | |||
346 | #ifndef CONFIG_NET | 346 | #ifndef CONFIG_NET |
347 | return 0; | 347 | return 0; |
348 | #else | 348 | #else |
349 | static unsigned long rx_total_last, tx_total_last; | 349 | static u64 rx_total_last, tx_total_last; |
350 | unsigned long rx_total, tx_total; | 350 | u64 rx_total, tx_total; |
351 | struct net_device *dev; | 351 | struct net_device *dev; |
352 | int retval; | 352 | int retval; |
353 | 353 | ||
@@ -356,7 +356,7 @@ static __inline__ int led_get_net_activity(void) | |||
356 | /* we are running as a workqueue task, so we can use an RCU lookup */ | 356 | /* we are running as a workqueue task, so we can use an RCU lookup */ |
357 | rcu_read_lock(); | 357 | rcu_read_lock(); |
358 | for_each_netdev_rcu(&init_net, dev) { | 358 | for_each_netdev_rcu(&init_net, dev) { |
359 | const struct net_device_stats *stats; | 359 | const struct rtnl_link_stats64 *stats; |
360 | struct rtnl_link_stats64 temp; | 360 | struct rtnl_link_stats64 temp; |
361 | struct in_device *in_dev = __in_dev_get_rcu(dev); | 361 | struct in_device *in_dev = __in_dev_get_rcu(dev); |
362 | if (!in_dev || !in_dev->ifa_list) | 362 | if (!in_dev || !in_dev->ifa_list) |
diff --git a/drivers/parisc/superio.c b/drivers/parisc/superio.c index f7806d81f1e0..0846dafdfff1 100644 --- a/drivers/parisc/superio.c +++ b/drivers/parisc/superio.c | |||
@@ -139,7 +139,7 @@ superio_interrupt(int parent_irq, void *devp) | |||
139 | } | 139 | } |
140 | 140 | ||
141 | /* Call the appropriate device's interrupt */ | 141 | /* Call the appropriate device's interrupt */ |
142 | __do_IRQ(local_irq); | 142 | generic_handle_irq(local_irq); |
143 | 143 | ||
144 | /* set EOI - forces a new interrupt if a lower priority device | 144 | /* set EOI - forces a new interrupt if a lower priority device |
145 | * still needs service. | 145 | * still needs service. |
@@ -286,7 +286,7 @@ superio_init(struct pci_dev *pcidev) | |||
286 | } | 286 | } |
287 | DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_87560_LIO, superio_init); | 287 | DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_87560_LIO, superio_init); |
288 | 288 | ||
289 | static void superio_disable_irq(unsigned int irq) | 289 | static void superio_mask_irq(unsigned int irq) |
290 | { | 290 | { |
291 | u8 r8; | 291 | u8 r8; |
292 | 292 | ||
@@ -303,7 +303,7 @@ static void superio_disable_irq(unsigned int irq) | |||
303 | outb (r8,IC_PIC1+1); | 303 | outb (r8,IC_PIC1+1); |
304 | } | 304 | } |
305 | 305 | ||
306 | static void superio_enable_irq(unsigned int irq) | 306 | static void superio_unmask_irq(unsigned int irq) |
307 | { | 307 | { |
308 | u8 r8; | 308 | u8 r8; |
309 | 309 | ||
@@ -319,20 +319,11 @@ static void superio_enable_irq(unsigned int irq) | |||
319 | outb (r8,IC_PIC1+1); | 319 | outb (r8,IC_PIC1+1); |
320 | } | 320 | } |
321 | 321 | ||
322 | static unsigned int superio_startup_irq(unsigned int irq) | ||
323 | { | ||
324 | superio_enable_irq(irq); | ||
325 | return 0; | ||
326 | } | ||
327 | |||
328 | static struct irq_chip superio_interrupt_type = { | 322 | static struct irq_chip superio_interrupt_type = { |
329 | .name = SUPERIO, | 323 | .name = SUPERIO, |
330 | .startup = superio_startup_irq, | 324 | .unmask = superio_unmask_irq, |
331 | .shutdown = superio_disable_irq, | 325 | .mask = superio_mask_irq, |
332 | .enable = superio_enable_irq, | ||
333 | .disable = superio_disable_irq, | ||
334 | .ack = no_ack_irq, | 326 | .ack = no_ack_irq, |
335 | .end = no_end_irq, | ||
336 | }; | 327 | }; |
337 | 328 | ||
338 | #ifdef DEBUG_SUPERIO_INIT | 329 | #ifdef DEBUG_SUPERIO_INIT |
@@ -363,9 +354,7 @@ int superio_fixup_irq(struct pci_dev *pcidev) | |||
363 | #endif | 354 | #endif |
364 | 355 | ||
365 | for (i = 0; i < 16; i++) { | 356 | for (i = 0; i < 16; i++) { |
366 | struct irq_desc *desc = irq_to_desc(i); | 357 | set_irq_chip_and_handler(i, &superio_interrupt_type, handle_level_irq); |
367 | |||
368 | desc->chip = &superio_interrupt_type; | ||
369 | } | 358 | } |
370 | 359 | ||
371 | /* | 360 | /* |