patch-2.3.13 linux/drivers/sbus/char/bpp.c

Next file: linux/drivers/sbus/char/sunkbd.c
Previous file: linux/drivers/sbus/audio/cs4231.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.12/linux/drivers/sbus/char/bpp.c linux/drivers/sbus/char/bpp.c
@@ -148,18 +148,18 @@
  */
 struct bpp_regs {
       /* DMA registers */
-      __u32 p_csr;		/* DMA Control/Status Register */
-      __u32 p_addr;		/* Address Register */
-      __u32 p_bcnt;		/* Byte Count Register */
-      __u32 p_tst_csr;		/* Test Control/Status (DMA2 only) */
+      __volatile__ __u32 p_csr;		/* DMA Control/Status Register */
+      __volatile__ __u32 p_addr;	/* Address Register */
+      __volatile__ __u32 p_bcnt;	/* Byte Count Register */
+      __volatile__ __u32 p_tst_csr;	/* Test Control/Status (DMA2 only) */
       /* Parallel Port registers */
-      __u16 p_hcr;		/* Hardware Configuration Register */
-      __u16 p_ocr;		/* Operation Configuration Register */
-      __u8 p_dr;		/* Parallel Data Register */
-      __u8 p_tcr;		/* Transfer Control Register */
-      __u8 p_or;		/* Output Register */
-      __u8 p_ir;		/* Input Register */
-      __u16 p_icr;		/* Interrupt Control Register */
+      __volatile__ __u16 p_hcr;		/* Hardware Configuration Register */
+      __volatile__ __u16 p_ocr;		/* Operation Configuration Register */
+      __volatile__ __u8 p_dr;		/* Parallel Data Register */
+      __volatile__ __u8 p_tcr;		/* Transfer Control Register */
+      __volatile__ __u8 p_or;		/* Output Register */
+      __volatile__ __u8 p_ir;		/* Input Register */
+      __volatile__ __u16 p_icr;		/* Interrupt Control Register */
 };
 
 /* P_CSR.  Bits of type RW1 are cleared with writting '1'. */

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