patch-2.4.19 linux-2.4.19/drivers/scsi/aacraid/aacraid.h

Next file: linux-2.4.19/drivers/scsi/aacraid/comminit.c
Previous file: linux-2.4.19/drivers/scsi/aacraid/aachba.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/drivers/scsi/aacraid/aacraid.h linux-2.4.19/drivers/scsi/aacraid/aacraid.h
@@ -682,7 +682,7 @@
 	unsigned long		fsrev;		/* Main driver's revision number */
 	
 	struct aac_init		*init;		/* Holds initialization info to communicate with adapter */
-	void *			init_pa; 	/* Holds physical address of the init struct */
+	dma_addr_t		init_pa; 	/* Holds physical address of the init struct */
 	
 	struct pci_dev		*pdev;		/* Our PCI interface */
 	void *			printfbuf;	/* pointer to buffer used for printf's from the adapter */
@@ -1168,7 +1168,17 @@
 	u32	options;
 	u32	OEM;
 };
-	
+
+static inline u32 fib2addr(struct hw_fib *hw)
+{
+	return (u32)hw;
+}
+
+static inline struct hw_fib *addr2fib(u32 addr)
+{
+	return (struct hw_fib *)addr;
+}
+
 const char *aac_driverinfo(struct Scsi_Host *);
 struct fib *fib_alloc(struct aac_dev *dev);
 int fib_setup(struct aac_dev *dev);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)