Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 May 2006 22:15:24 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 96622 for review
Message-ID:  <200605032215.k43MFOSG092406@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=96622

Change 96622 by imp@imp_hammer on 2006/05/03 22:15:14

	const poison...

Affected files ...

.. //depot/projects/arm/src/sys/boot/arm/at91/libat91/fpga.c#2 edit
.. //depot/projects/arm/src/sys/boot/arm/at91/libat91/fpga.h#2 edit

Differences ...

==== //depot/projects/arm/src/sys/boot/arm/at91/libat91/fpga.c#2 (text+ko) ====

@@ -29,7 +29,7 @@
 #include "lib.h"
 
 void
-fpga_init(struct fpga *fpga)
+fpga_init(const struct fpga *fpga)
 {
 	fpga->fpga_prog_n_pio->PIO_PER = fpga->fpga_prog_n_mask;
 	fpga->fpga_prog_n_pio->PIO_OER = fpga->fpga_prog_n_mask;
@@ -45,18 +45,18 @@
 }
 
 void
-fpga_clear(struct fpga *fpga)
+fpga_clear(const struct fpga *fpga)
 {
 	fpga->fpga_prog_n_pio->PIO_SODR = fpga->fpga_prog_n_mask;
 	Delay(1000);
 	fpga->fpga_prog_n_pio->PIO_CODR = fpga->fpga_prog_n_mask;
 	Delay(1);
 	fpga->fpga_prog_n_pio->PIO_SODR = fpga->fpga_prog_n_mask;
-	Delay(3000);
+	Delay(2000);
 }
 
 void
-fpga_write_bytes(struct fpga *fpga, const unsigned char *buf, int len)
+fpga_write_bytes(const struct fpga *fpga, const unsigned char *buf, int len)
 {
 	int i, j;
 	unsigned byte;
@@ -76,7 +76,7 @@
 }
 
 void
-fpga_done(struct fpga *fpga)
+fpga_done(const struct fpga *fpga)
 {
 	while (!(fpga->fpga_done_pio->PIO_PSR & fpga->fpga_done_mask))
 		continue;

==== //depot/projects/arm/src/sys/boot/arm/at91/libat91/fpga.h#2 (text+ko) ====

@@ -39,9 +39,9 @@
     unsigned	fpga_done_mask;
 };
 
-void	fpga_init(struct fpga *);
-void	fpga_clear(struct fpga *);
-void	fpga_write_bytes(struct fpga *, const unsigned char *, int);
-void	fpga_done(struct fpga *);
+void	fpga_init(const struct fpga *);
+void	fpga_clear(const struct fpga *);
+void	fpga_write_bytes(const struct fpga *, const unsigned char *, int);
+void	fpga_done(const struct fpga *);
 
 #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605032215.k43MFOSG092406>