~ubuntu-branches/ubuntu/trusty/linux-linaro-omap/trusty

« back to all changes in this revision

Viewing changes to arch/powerpc/sysdev/mpc8xx_pic.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-57i0gl3v99b3lkfg
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
static void mpc8xx_unmask_irq(struct irq_data *d)
29
29
{
30
30
        int     bit, word;
31
 
        unsigned int irq_nr = (unsigned int)irq_map[d->irq].hwirq;
 
31
        unsigned int irq_nr = (unsigned int)irqd_to_hwirq(d);
32
32
 
33
33
        bit = irq_nr & 0x1f;
34
34
        word = irq_nr >> 5;
40
40
static void mpc8xx_mask_irq(struct irq_data *d)
41
41
{
42
42
        int     bit, word;
43
 
        unsigned int irq_nr = (unsigned int)irq_map[d->irq].hwirq;
 
43
        unsigned int irq_nr = (unsigned int)irqd_to_hwirq(d);
44
44
 
45
45
        bit = irq_nr & 0x1f;
46
46
        word = irq_nr >> 5;
52
52
static void mpc8xx_ack(struct irq_data *d)
53
53
{
54
54
        int     bit;
55
 
        unsigned int irq_nr = (unsigned int)irq_map[d->irq].hwirq;
 
55
        unsigned int irq_nr = (unsigned int)irqd_to_hwirq(d);
56
56
 
57
57
        bit = irq_nr & 0x1f;
58
58
        out_be32(&siu_reg->sc_sipend, 1 << (31-bit));
61
61
static void mpc8xx_end_irq(struct irq_data *d)
62
62
{
63
63
        int bit, word;
64
 
        unsigned int irq_nr = (unsigned int)irq_map[d->irq].hwirq;
 
64
        unsigned int irq_nr = (unsigned int)irqd_to_hwirq(d);
65
65
 
66
66
        bit = irq_nr & 0x1f;
67
67
        word = irq_nr >> 5;
73
73
static int mpc8xx_set_irq_type(struct irq_data *d, unsigned int flow_type)
74
74
{
75
75
        if (flow_type & IRQ_TYPE_EDGE_FALLING) {
76
 
                irq_hw_number_t hw = (unsigned int)irq_map[d->irq].hwirq;
 
76
                irq_hw_number_t hw = (unsigned int)irqd_to_hwirq(d);
77
77
                unsigned int siel = in_be32(&siu_reg->sc_siel);
78
78
 
79
79
                /* only external IRQ senses are programmable */