Coding style fixes (trivial).

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2577 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Uwe Hermann
2007-04-01 19:44:21 +00:00
parent 1a9c892d58
commit 195237f2e1
14 changed files with 111 additions and 122 deletions

View File

@ -21,7 +21,8 @@ extern __inline__ void toggle_ready_82802ab(volatile uint8_t *dst)
} }
} }
extern __inline__ void data_polling_82802ab(volatile uint8_t *dst, uint8_t data) extern __inline__ void data_polling_82802ab(volatile uint8_t *dst,
uint8_t data)
{ {
unsigned int i = 0; unsigned int i = 0;
uint8_t tmp; uint8_t tmp;

View File

@ -116,8 +116,8 @@ int erase_29f040b(struct flashchip *flash)
int write_29f040b(struct flashchip *flash, uint8_t *buf) int write_29f040b(struct flashchip *flash, uint8_t *buf)
{ {
int i; int i;
int total_size = flash->total_size * 1024, page_size = int total_size = flash->total_size * 1024;
flash->page_size; int page_size = flash->page_size;
volatile uint8_t *bios = flash->virt_addr; volatile uint8_t *bios = flash->virt_addr;
printf("Programming page "); printf("Programming page ");

View File

@ -21,7 +21,6 @@
* *
*/ */
#ifndef __FLASH_H__ #ifndef __FLASH_H__
#define __FLASH_H__ 1 #define __FLASH_H__ 1

View File

@ -9,8 +9,7 @@ extern int write_jedec(struct flashchip *flash, uint8_t *buf);
extern int erase_sector_jedec(volatile uint8_t *bios, unsigned int page); extern int erase_sector_jedec(volatile uint8_t *bios, unsigned int page);
extern int erase_block_jedec(volatile uint8_t *bios, unsigned int page); extern int erase_block_jedec(volatile uint8_t *bios, unsigned int page);
extern int write_sector_jedec(volatile uint8_t *bios, uint8_t *src, extern int write_sector_jedec(volatile uint8_t *bios, uint8_t *src,
volatile uint8_t *dst, volatile uint8_t *dst, unsigned int page_size);
unsigned int page_size);
extern __inline__ void toggle_ready_jedec(volatile uint8_t *dst) extern __inline__ void toggle_ready_jedec(volatile uint8_t *dst)
{ {

View File

@ -6,5 +6,4 @@ int read_romlayout(char *name);
int find_romentry(char *name); int find_romentry(char *name);
int handle_romentries(uint8_t *buffer, uint8_t *content); int handle_romentries(uint8_t *buffer, uint8_t *content);
#endif /* !__LAYOUT_H__ */ #endif /* !__LAYOUT_H__ */

View File

@ -19,13 +19,9 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#ifndef __MSYS_DOC_H__ #ifndef __MSYS_DOC_H__
#define __MSYS_DOC_H__ 1 #define __MSYS_DOC_H__ 1
/* idea from include/linux/mtd/doc2000.h */ /* idea from include/linux/mtd/doc2000.h */
/* registers with __ should not be read/written directly */ /* registers with __ should not be read/written directly */
#define MSYSTEMS_DOC_R__ChipID 0x1000 #define MSYSTEMS_DOC_R__ChipID 0x1000
@ -66,8 +62,6 @@
#define MSYSTEMS_DOC_R_CDSNIO_BASE 0x0800 #define MSYSTEMS_DOC_R_CDSNIO_BASE 0x0800
#define MSYSTEMS_DOC_W_CDSNIO_BASE 0x0800 #define MSYSTEMS_DOC_W_CDSNIO_BASE 0x0800
#define doc_read(base,reg) \ #define doc_read(base,reg) \
(*(volatile uint8_t *)(base + MSYSTEMS_DOC_R_##reg)) (*(volatile uint8_t *)(base + MSYSTEMS_DOC_R_##reg))
@ -98,13 +92,9 @@
#define doc_toggle(base) /* 0, 1, 0, 1, 0, 1, ... if a doc is present */ \ #define doc_toggle(base) /* 0, 1, 0, 1, 0, 1, ... if a doc is present */ \
( (doc_read(base, ECCConfiguration) & 0x04) >> 2 ) ( (doc_read(base, ECCConfiguration) & 0x04) >> 2 )
extern int probe_md2802(struct flashchip *flash); extern int probe_md2802(struct flashchip *flash);
extern int read_md2802(struct flashchip *flash, uint8_t *buf); extern int read_md2802(struct flashchip *flash, uint8_t *buf);
extern int erase_md2802(struct flashchip *flash); extern int erase_md2802(struct flashchip *flash);
extern int write_md2802(struct flashchip *flash, uint8_t *buf); extern int write_md2802(struct flashchip *flash, uint8_t *buf);
#endif /* !__MSYS_DOC_H__ */ #endif /* !__MSYS_DOC_H__ */

View File

@ -32,8 +32,8 @@ extern int exclude_start_page, exclude_end_page;
int write_49fl004(struct flashchip *flash, uint8_t *buf) int write_49fl004(struct flashchip *flash, uint8_t *buf)
{ {
int i; int i;
int total_size = flash->total_size * 1024, page_size = int total_size = flash->total_size * 1024;
flash->page_size; int page_size = flash->page_size;
volatile uint8_t *bios = flash->virt_addr; volatile uint8_t *bios = flash->virt_addr;
printf("Programming Page: "); printf("Programming Page: ");

View File

@ -20,7 +20,8 @@ extern __inline__ void toggle_ready_lhf00l04(volatile uint8_t *dst)
} }
} }
extern __inline__ void data_polling_lhf00l04(volatile uint8_t *dst, uint8_t data) extern __inline__ void data_polling_lhf00l04(volatile uint8_t *dst,
uint8_t data)
{ {
unsigned int i = 0; unsigned int i = 0;
uint8_t tmp; uint8_t tmp;

View File

@ -50,8 +50,8 @@ static __inline__ int erase_sector_39sf020(volatile uint8_t *bios,
int write_39sf020(struct flashchip *flash, uint8_t *buf) int write_39sf020(struct flashchip *flash, uint8_t *buf)
{ {
int i; int i;
int total_size = flash->total_size * 1024, page_size = int total_size = flash->total_size * 1024;
flash->page_size; int page_size = flash->page_size;
volatile uint8_t *bios = flash->virt_addr; volatile uint8_t *bios = flash->virt_addr;
erase_chip_jedec(flash); erase_chip_jedec(flash);

View File

@ -90,8 +90,8 @@ int erase_sst_fwhub(struct flashchip *flash)
int write_sst_fwhub(struct flashchip *flash, uint8_t *buf) int write_sst_fwhub(struct flashchip *flash, uint8_t *buf)
{ {
int i; int i;
int total_size = flash->total_size * 1024, page_size = int total_size = flash->total_size * 1024;
flash->page_size; int page_size = flash->page_size;
volatile uint8_t *bios = flash->virt_addr; volatile uint8_t *bios = flash->virt_addr;
// FIXME: We want block wide erase instead of ironing the whole chip // FIXME: We want block wide erase instead of ironing the whole chip

View File

@ -34,8 +34,8 @@
int write_49f002(struct flashchip *flash, uint8_t *buf) int write_49f002(struct flashchip *flash, uint8_t *buf)
{ {
int i; int i;
int total_size = flash->total_size * 1024, page_size = int total_size = flash->total_size * 1024;
flash->page_size; int page_size = flash->page_size;
volatile uint8_t *bios = flash->virt_addr; volatile uint8_t *bios = flash->virt_addr;
erase_chip_jedec(flash); erase_chip_jedec(flash);