From: "Zhang, Yanmin" <yanmin_zhang@linux.intel.com>
To: Greg KH <greg@kroah.com>, jbarnes@virtuousgeek.org
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH] merge the define of PCI_CFG_SPACE_SIZE
Date: Sat, 27 Sep 2008 11:08:53 +0800 [thread overview]
Message-ID: <1222484933.25574.35.camel@ymzhang> (raw)
Subject: pci: merge define of PCI_CFG_SPACE_SIZE
From: "Zhang, Yanmin" <yanmin_zhang@linux.intel.com>
3 files define PCI_CFG_SPACE_SIZE. Move the define to file
pci_regs.h.
Signed-off-by: Zhang Yanmin <yanmin_zhang@linux.intel.com>
---
diff -Nraup linux-2.6.27-rc7/drivers/pci/pcie/aer/aerdrv_core.c linux-2.6.27-rc7_cleanup/drivers/pci/pcie/aer/aerdrv_core.c
--- linux-2.6.27-rc7/drivers/pci/pcie/aer/aerdrv_core.c 2008-09-27 09:35:32.000000000 +0800
+++ linux-2.6.27-rc7_cleanup/drivers/pci/pcie/aer/aerdrv_core.c 2008-09-27 10:29:57.000000000 +0800
@@ -28,7 +28,6 @@
static int forceload;
module_param(forceload, bool, 0);
-#define PCI_CFG_SPACE_SIZE (0x100)
int pci_find_aer_capability(struct pci_dev *dev)
{
int pos;
diff -Nraup linux-2.6.27-rc7/drivers/pci/pcie/portdrv.h linux-2.6.27-rc7_cleanup/drivers/pci/pcie/portdrv.h
--- linux-2.6.27-rc7/drivers/pci/pcie/portdrv.h 2008-07-14 05:51:29.000000000 +0800
+++ linux-2.6.27-rc7_cleanup/drivers/pci/pcie/portdrv.h 2008-09-27 10:29:38.000000000 +0800
@@ -25,7 +25,6 @@
#define PCIE_CAPABILITIES_REG 0x2
#define PCIE_SLOT_CAPABILITIES_REG 0x14
#define PCIE_PORT_DEVICE_MAXSERVICES 4
-#define PCI_CFG_SPACE_SIZE 256
#define get_descriptor_id(type, service) (((type - 4) << 4) | service)
diff -Nraup linux-2.6.27-rc7/drivers/pci/probe.c linux-2.6.27-rc7_cleanup/drivers/pci/probe.c
--- linux-2.6.27-rc7/drivers/pci/probe.c 2008-09-27 09:35:32.000000000 +0800
+++ linux-2.6.27-rc7_cleanup/drivers/pci/probe.c 2008-09-27 10:42:30.000000000 +0800
@@ -14,8 +14,6 @@
#define CARDBUS_LATENCY_TIMER 176 /* secondary latency timer */
#define CARDBUS_RESERVE_BUSNR 3
-#define PCI_CFG_SPACE_SIZE 256
-#define PCI_CFG_SPACE_EXP_SIZE 4096
/* Ugh. Need to stop exporting this to modules. */
LIST_HEAD(pci_root_buses);
diff -Nraup linux-2.6.27-rc7/include/linux/pci_regs.h linux-2.6.27-rc7_cleanup/include/linux/pci_regs.h
--- linux-2.6.27-rc7/include/linux/pci_regs.h 2008-09-27 09:35:35.000000000 +0800
+++ linux-2.6.27-rc7_cleanup/include/linux/pci_regs.h 2008-09-27 10:37:34.000000000 +0800
@@ -421,6 +421,10 @@
#define PCI_EXP_RTSTA 32 /* Root Status */
/* Extended Capabilities (PCI-X 2.0 and Express) */
+/* pci space size & Ext cap start offset */
+#define PCI_CFG_SPACE_SIZE (256)
+#define PCI_CFG_SPACE_EXP_SIZE (4096) /* pci ext space size */
+
#define PCI_EXT_CAP_ID(header) (header & 0x0000ffff)
#define PCI_EXT_CAP_VER(header) ((header >> 16) & 0xf)
#define PCI_EXT_CAP_NEXT(header) ((header >> 20) & 0xffc)
next reply other threads:[~2008-09-27 3:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-27 3:08 Zhang, Yanmin [this message]
2008-10-01 16:33 ` Jesse Barnes
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=1222484933.25574.35.camel@ymzhang \
--to=yanmin_zhang@linux.intel.com \
--cc=greg@kroah.com \
--cc=jbarnes@virtuousgeek.org \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®