]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
[PATCH] ppc64 iSeries: iSeries_pci.h cleanups
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 22 Jun 2005 00:15:46 +0000 (17:15 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 01:46:29 +0000 (18:46 -0700)
Remove no longer used things from iSeries_pci.h.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/iSeries_pci.c
include/asm-ppc64/iSeries/iSeries_pci.h

index 1bff515bd298b9e4dae5a188513424088ce4a4fc..1313a7a2f005da9d0b04fd487f16726de329db83 100644 (file)
@@ -497,7 +497,6 @@ static int scan_bridge_slot(HvBusNumber Bus,
 
                        ++DeviceCount;
                        node = build_device_node(Bus, SubBus, EADsIdSel, Function);
-                       node->Vendor = VendorId;
                        node->Irq = Irq;
                        node->LogicalSlot = BridgeInfo->logicalSlotNumber;
 
index 4313a66840234406c47a8c67c57b5a5c961fa71d..5d127cf29bf5d8d56785b2c0e1ba8471b38418bb 100644 (file)
@@ -44,8 +44,7 @@ struct iSeries_Device_Node;
 #define ISERIES_SUBBUS(DevPtr) DevPtr->DsaAddr.Dsa.subBusNumber
 #define ISERIES_DEVICE(DevPtr) DevPtr->DsaAddr.Dsa.deviceId
 #define ISERIES_DSA(DevPtr)    DevPtr->DsaAddr.DsaAddr
-#define ISERIES_DEVFUN(DevPtr) DevPtr->DevFn
-#define ISERIES_DEVNODE(PciDev)        ((struct iSeries_Device_Node*)PciDev->sysdata)
+#define ISERIES_DEVNODE(PciDev)        ((struct iSeries_Device_Node *)PciDev->sysdata)
 
 #define EADsMaxAgents 7
 
@@ -62,17 +61,6 @@ struct iSeries_Device_Node;
 #define ISERIES_GET_DEVICE_FROM_SUBBUS(subbus)         ((subbus >> 5) & 0x7)
 #define ISERIES_GET_FUNCTION_FROM_SUBBUS(subbus)       ((subbus >> 2) & 0x7)
 
-/*
- * N.B. the ISERIES_DECODE_* macros are not used anywhere, and I think
- * the 0x71 (at least) must be wrong - 0x78 maybe?  -- paulus.
- */
-#define ISERIES_DECODE_DEVFN(linuxdevfn)       \
-       (((linuxdevfn & 0x71) << 1) | (linuxdevfn & 0x07))
-#define ISERIES_DECODE_DEVICE(linuxdevfn)      \
-       (((linuxdevfn & 0x38) >> 3) | (((linuxdevfn & 0x40) >> 2) + 0x10))
-#define ISERIES_DECODE_FUNCTION(linuxdevfn)    \
-       (linuxdevfn & 0x07)
-
 /*
  * Converts Virtual Address to Real Address for Hypervisor calls
  */
@@ -90,15 +78,12 @@ struct iSeries_Device_Node {
                                        /* deviceId, barNumber */
        HvAgentId       AgentId;        /* Hypervisor DevFn */
        int             DevFn;          /* Linux devfn */
-       int             BarOffset;
        int             Irq;            /* Assigned IRQ */
        int             IoRetry;        /* Current Retry Count */
        int             Flags;          /* Possible flags(disable/bist)*/
-       u16             Vendor;         /* Vendor ID */
        u8              LogicalSlot;    /* Hv Slot Index for Tces */
        struct iommu_table *iommu_table;/* Device TCE Table */
        u8              PhbId;          /* Phb Card is on. */
-       u16             Board;          /* Board Number */
        u8              FrameId;        /* iSeries spcn Frame Id */
        char            CardLocation[4];/* Char format of planar vpd */
        char            Location[20];   /* Frame        1, Card C10 */