via: some PCI posting flushes
[safe/jmp/linux-2.6] / drivers / char / rio / host.h
index 79a5530..23d0681 100644 (file)
 #ifndef __rio_host_h__
 #define __rio_host_h__
 
-#ifdef SCCS_LABELS
-#ifndef lint
-static char *_host_h_sccs_ = "@(#)host.h       1.2";
-#endif
-#endif
-
 /*
 ** the host structure - one per host card in the system.
 */
@@ -50,20 +44,21 @@ static char *_host_h_sccs_ = "@(#)host.h    1.2";
 **    the host.
 */
 struct Host {
+       struct pci_dev *pdev;
        unsigned char Type;             /* RIO_EISA, RIO_MCA, ... */
        unsigned char Ivec;             /* POLLED or ivec number */
        unsigned char Mode;             /* Control stuff */
        unsigned char Slot;             /* Slot */
-       caddr_t Caddr;                  /* KV address of DPRAM */
-       struct DpRam *CardP;            /* KV address of DPRAM, with overlay */
-       paddr_t PaddrP;                 /* Phys. address of DPRAM */
+       void  __iomem *Caddr;           /* KV address of DPRAM */
+       struct DpRam __iomem *CardP;    /* KV address of DPRAM, with overlay */
+       unsigned long PaddrP;           /* Phys. address of DPRAM */
        char Name[MAX_NAME_LEN];        /* The name of the host */
        unsigned int UniqueNum;         /* host unique number */
        spinlock_t HostLock;    /* Lock structure for MPX */
        unsigned int WorkToBeDone;      /* set to true each interrupt */
        unsigned int InIntr;            /* Being serviced? */
        unsigned int IntSrvDone;        /* host's interrupt has been serviced */
-       void (*Copy) (void *, void *, int);     /* copy func */
+       void (*Copy) (void *, void __iomem *, int);     /* copy func */
        struct timer_list timer;
        /*
         **               I M P O R T A N T !
@@ -77,9 +72,6 @@ struct Host {
 #define RC_STARTUP            1
 #define RC_RUNNING            2
 #define RC_STUFFED            3
-#define RC_SOMETHING          4
-#define RC_SOMETHING_NEW      5
-#define RC_SOMETHING_ELSE     6
 #define RC_READY              7
 #define RUN_STATE             7
 /*
@@ -92,11 +84,11 @@ struct Host {
 
        struct Top Topology[LINKS_PER_UNIT];    /* one per link */
        struct Map Mapping[MAX_RUP];            /* Mappings for host */
-       struct PHB *PhbP;                       /* Pointer to the PHB array */
-       unsigned short *PhbNumP;                /* Ptr to Number of PHB's */
-       struct LPB *LinkStrP;                   /* Link Structure Array */
-       struct RUP *RupP;                       /* Sixteen real rups here */
-       struct PARM_MAP *ParmMapP;              /* points to the parmmap */
+       struct PHB __iomem *PhbP;               /* Pointer to the PHB array */
+       unsigned short __iomem *PhbNumP;        /* Ptr to Number of PHB's */
+       struct LPB __iomem *LinkStrP;           /* Link Structure Array */
+       struct RUP __iomem *RupP;               /* Sixteen real rups here */
+       struct PARM_MAP __iomem *ParmMapP;      /* points to the parmmap */
        unsigned int ExtraUnits[MAX_EXTRA_UNITS];       /* unknown things */
        unsigned int NumExtraBooted;            /* how many of the above */
        /*