From: Ingo Molnar <mingo@elte.hu>
To: "Pan, Jacob jun" <jacob.jun.pan@intel.com>
Cc: "mingo@redhat.com" <mingo@redhat.com>,
"hpa@zytor.com" <hpa@zytor.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"tglx@linutronix.de" <tglx@linutronix.de>,
"linux-tip-commits@vger.kernel.org"
<linux-tip-commits@vger.kernel.org>
Subject: Re: [tip:x86/mrst] x86, pic: Introduce legacy_pic abstraction
Date: Thu, 25 Feb 2010 12:33:48 +0100 [thread overview]
Message-ID: <20100225113348.GF10212@elte.hu> (raw)
In-Reply-To: <43F901BD926A4E43B106BF17856F0755A318D2CD@orsmsx508.amr.corp.intel.com>
* Pan, Jacob jun <jacob.jun.pan@intel.com> wrote:
> +static struct irq_chip dummy_pic_chip = {
> + .name = "dummy pic",
> + .mask = legacy_pic_uint_noop,
> + .unmask = legacy_pic_uint_noop,
> + .disable = legacy_pic_uint_noop,
> + .mask_ack = legacy_pic_uint_noop,
> +};
> +static int legacy_pic_irq_pending_noop(unsigned int irq)
> +{
> + return 0;
> +}
> +
> +struct legacy_pic null_legacy_pic = {
> + .nr_legacy_irqs = 0,
> + .chip = &dummy_pic_chip,
> + .mask_all = legacy_pic_noop,
> + .restore_mask = legacy_pic_noop,
> + .init = legacy_pic_int_noop,
> + .irq_pending = legacy_pic_irq_pending_noop,
> + .make_irq = legacy_pic_uint_noop,
> +};
> +
> +struct legacy_pic default_legacy_pic = {
> + .nr_legacy_irqs = NR_IRQS_LEGACY,
> + .chip = &i8259A_chip,
> + .mask_all = mask_8259A,
> + .restore_mask = unmask_8259A,
> + .init = init_8259A,
> + .irq_pending = i8259A_irq_pending,
> + .make_irq = make_8259A_irq,
> +};
Just a reminder: please use the vertical alignment style you can see with new
pic/irqchip drivers:
struct irq_chip i8259A_chip = {
.name = "XT-PIC",
.mask = disable_8259A_irq,
.disable = disable_8259A_irq,
.unmask = enable_8259A_irq,
.mask_ack = mask_and_ack_8259A,
};
Thanks,
Ingo
prev parent reply other threads:[~2010-02-25 11:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-13 1:40 [PATCH 7/9] x86/pic: introduce legacy_pic abstraction Pan, Jacob jun
2010-02-20 1:29 ` [tip:x86/mrst] x86, pic: Introduce " tip-bot for Jacob Pan
2010-02-23 6:28 ` Pan, Jacob jun
2010-02-25 11:33 ` Ingo Molnar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100225113348.GF10212@elte.hu \
--to=mingo@elte.hu \
--cc=hpa@zytor.com \
--cc=jacob.jun.pan@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox