From: Bjorn Helgaas <bjorn.helgaas@hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [PATCH] PCI domain support for 2.4
Date: Wed, 30 Jul 2003 22:52:00 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105960572506775@msgid-missing> (raw)
On Wednesday 25 June 2003 3:06 pm, Matthew Wilcox wrote:
>
> 2.4 can support PCI domains with non-overlapping bus numbers. While this
> isn't terribly useful, it may help some machine designs. This is the
> minimum patch to support this for 2.4 -- a more invasive patch would
> replace PCI_SEGMENT with pci_controller_num throughout the ia64 code.
>
> === include/asm-ia64/pci.h 1.12 vs edited ==> --- 1.12/include/asm-ia64/pci.h Thu Mar 6 09:43:37 2003
> +++ edited/include/asm-ia64/pci.h Fri Jun 20 09:41:13 2003
> @@ -82,8 +82,8 @@
> #define pci_dac_dma_to_offset(dev,dma_addr) ((dma_addr) & ~PAGE_MASK)
> #define pci_dac_dma_sync_single(dev,dma_addr,len,dir) do { /* nothing */ } while (0)
>
> -/* Return the index of the PCI controller for device PDEV. */
> -#define pci_controller_num(PDEV) (0)
> +/* Return the PCI domain number */
> +#define pci_controller_num(pdev) (PCI_SEGMENT(pdev))
>
> #define sg_dma_address(sg) ((sg)->dma_address)
> #define sg_dma_len(sg) ((sg)->dma_length)
I applied this for 2.4. Thanks!
Bjorn
reply other threads:[~2003-07-30 22:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=marc-linux-ia64-105960572506775@msgid-missing \
--to=bjorn.helgaas@hp.com \
--cc=linux-ia64@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.