Date: Fri, 21 Apr 2006 22:13:10 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 95837 for review Message-ID: <200604212213.k3LMDAgc027355@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95837 Change 95837 by imp@imp_hammer on 2006/04/21 22:12:16 Fix interface. Affected files ... .. //depot/projects/arm/src/sys/boot/arm/at91/libat91/spi_flash.c#3 edit .. //depot/projects/arm/src/sys/boot/arm/at91/libat91/spi_flash.h#3 edit Differences ... ==== //depot/projects/arm/src/sys/boot/arm/at91/libat91/spi_flash.c#3 (text+ko) ==== @@ -117,7 +117,7 @@ */ static void ProgramBuffer(unsigned pageAddress, unsigned byteAddress, - unsigned src_addr, unsigned size) + char *src_addr, unsigned size) { p_memset(tx_commandBuffer, 0, 8); @@ -135,9 +135,9 @@ spi_command.tx_cmd_size = 4; spi_command.tx_data_size = size; - spi_command.tx_data = (char*)src_addr; + spi_command.tx_data = src_addr; spi_command.rx_data_size = size; - spi_command.rx_data = (char*)src_addr; + spi_command.rx_data = src_addr; SendCommand(&spi_command); @@ -156,7 +156,7 @@ * .KB_C_FN_DEFINITION_END */ void -SPI_ReadFlash(unsigned flash_addr, unsigned dest_addr, unsigned size) +SPI_ReadFlash(unsigned flash_addr, char *dest_addr, unsigned size) { unsigned pageAddress, byteAddress; @@ -180,9 +180,9 @@ spi_command.tx_cmd_size = 8; spi_command.tx_data_size = size; - spi_command.tx_data = (char*)dest_addr; + spi_command.tx_data = dest_addr; spi_command.rx_data_size = size; - spi_command.rx_data = (char*)dest_addr; + spi_command.rx_data = dest_addr; SendCommand(&spi_command); } @@ -197,7 +197,7 @@ * .KB_C_FN_DEFINITION_END */ void -SPI_WriteFlash(unsigned flash_addr, unsigned src_addr, unsigned size) +SPI_WriteFlash(unsigned flash_addr, char *src_addr, unsigned size) { unsigned pageAddress, byteAddress, this_size; ==== //depot/projects/arm/src/sys/boot/arm/at91/libat91/spi_flash.h#3 (text+ko) ==== @@ -32,8 +32,8 @@ unsigned rx_data_size; } spiCommand_t; -void SPI_ReadFlash(unsigned flash_addr, unsigned dest_addr, unsigned size); -void SPI_WriteFlash(unsigned flash_addr, unsigned dest_addr, unsigned size); +void SPI_ReadFlash(unsigned flash_addr, char *dest_addr, unsigned size); +void SPI_WriteFlash(unsigned flash_addr, char *dest_addr, unsigned size); void SPI_InitFlash(void); #define FLASH_PAGE_SIZE 1056
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604212213.k3LMDAgc027355>