summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/ata_flash.c16
-rw-r--r--firmware/events.c2
-rw-r--r--firmware/ifp_usb_serial.c12
3 files changed, 15 insertions, 15 deletions
diff --git a/firmware/drivers/ata_flash.c b/firmware/drivers/ata_flash.c
index de2988b9be..96ea1cfa68 100644
--- a/firmware/drivers/ata_flash.c
+++ b/firmware/drivers/ata_flash.c
@@ -73,7 +73,7 @@ struct flash_disk
73 73
74static struct flash_disk flash_disk; 74static struct flash_disk flash_disk;
75 75
76void flash_select_chip(int no, int sel) 76static void flash_select_chip(int no, int sel)
77{ 77{
78#if CONFIG_FLASH == FLASH_IFP7XX 78#if CONFIG_FLASH == FLASH_IFP7XX
79 if (sel) 79 if (sel)
@@ -115,7 +115,7 @@ static void flash_wait_ready(void)
115 115
116static unsigned char model_n_sectors_order[] = {0, 19, 20}; 116static unsigned char model_n_sectors_order[] = {0, 19, 20};
117 117
118int flash_map_sector(int sector, int* chip, int* chip_sector) 118static int flash_map_sector(int sector, int* chip, int* chip_sector)
119{ 119{
120 int ord, c; 120 int ord, c;
121 if (flash_disk.model == FLASH_MODEL_NONE) 121 if (flash_disk.model == FLASH_MODEL_NONE)
@@ -132,7 +132,7 @@ int flash_map_sector(int sector, int* chip, int* chip_sector)
132 return 0; 132 return 0;
133} 133}
134 134
135int flash_read_id(int no) { 135static int flash_read_id(int no) {
136 int id; 136 int id;
137 137
138 flash_select_chip(no, 1); 138 flash_select_chip(no, 1);
@@ -146,7 +146,7 @@ int flash_read_id(int no) {
146 return id; 146 return id;
147} 147}
148 148
149int flash_read_sector(int sector, unsigned char* buf, 149static int flash_read_sector(int sector, unsigned char* buf,
150 unsigned char* oob) 150 unsigned char* oob)
151{ 151{
152 unsigned long *bufl = (unsigned long *)buf; 152 unsigned long *bufl = (unsigned long *)buf;
@@ -204,7 +204,7 @@ int flash_read_sector(int sector, unsigned char* buf,
204 return 0; 204 return 0;
205} 205}
206 206
207int flash_read_sector_oob(int sector, unsigned char* oob) 207static int flash_read_sector_oob(int sector, unsigned char* oob)
208{ 208{
209 int chip, chip_sector; 209 int chip, chip_sector;
210 int i; 210 int i;
@@ -294,7 +294,7 @@ static int flash_get_logical_block_no(unsigned char* oob)
294 return -1; 294 return -1;
295} 295}
296 296
297int flash_disk_scan(void) 297static int flash_disk_scan(void)
298{ 298{
299 int n_segments, n_phblocks; 299 int n_segments, n_phblocks;
300 unsigned char oob[16]; 300 unsigned char oob[16];
@@ -327,7 +327,7 @@ int flash_disk_scan(void)
327 return 0; 327 return 0;
328} 328}
329 329
330int flash_disk_find_block(int block) 330static int flash_disk_find_block(int block)
331{ 331{
332 int seg, bmod, phb; 332 int seg, bmod, phb;
333 unsigned char oob[16]; 333 unsigned char oob[16];
@@ -356,7 +356,7 @@ int flash_disk_find_block(int block)
356 return flash_disk.cur_phblock_start; 356 return flash_disk.cur_phblock_start;
357} 357}
358 358
359int flash_disk_read_sectors(unsigned long start, 359static int flash_disk_read_sectors(unsigned long start,
360 int count, 360 int count,
361 void* buf) 361 void* buf)
362{ 362{
diff --git a/firmware/events.c b/firmware/events.c
index 3386c02465..8015442cc2 100644
--- a/firmware/events.c
+++ b/firmware/events.c
@@ -81,7 +81,7 @@ bool add_event_ex(unsigned short id, bool oneshot, void (*handler)(unsigned shor
81 return do_add_event(id, oneshot, true, handler, user_data); 81 return do_add_event(id, oneshot, true, handler, user_data);
82} 82}
83 83
84void do_remove_event(unsigned short id, bool user_data_valid, 84static void do_remove_event(unsigned short id, bool user_data_valid,
85 void *handler, void *user_data) 85 void *handler, void *user_data)
86{ 86{
87 int i; 87 int i;
diff --git a/firmware/ifp_usb_serial.c b/firmware/ifp_usb_serial.c
index 5392de0d52..f7e3a51858 100644
--- a/firmware/ifp_usb_serial.c
+++ b/firmware/ifp_usb_serial.c
@@ -250,7 +250,7 @@ static inline void usb_select_setup_endpoint(void)
250 ISP1582_EPINDEX = 0x20; 250 ISP1582_EPINDEX = 0x20;
251} 251}
252 252
253void usb_setup_endpoint(int idx, int max_pkt_size, int type) 253static void usb_setup_endpoint(int idx, int max_pkt_size, int type)
254{ 254{
255 struct usb_endpoint *ep; 255 struct usb_endpoint *ep;
256 256
@@ -271,7 +271,7 @@ void usb_setup_endpoint(int idx, int max_pkt_size, int type)
271 ep->max_pkt_size[epidx_dir(idx)] = max_pkt_size; 271 ep->max_pkt_size[epidx_dir(idx)] = max_pkt_size;
272} 272}
273 273
274void usb_disable_endpoint(int idx) 274static void usb_disable_endpoint(int idx)
275{ 275{
276 usb_select_endpoint(idx); 276 usb_select_endpoint(idx);
277 ISP1582_EPTYPE &= 8; 277 ISP1582_EPTYPE &= 8;
@@ -288,12 +288,12 @@ void usb_reconnect(void)
288 ISP1582_MODE |= 1; /* SOFTCT on */ 288 ISP1582_MODE |= 1; /* SOFTCT on */
289} 289}
290 290
291void usb_cleanup(void) 291static void usb_cleanup(void)
292{ 292{
293 ISP1582_MODE &= ~1; /* SOFTCT off */ 293 ISP1582_MODE &= ~1; /* SOFTCT off */
294} 294}
295 295
296void usb_setup(int reset) 296static void usb_setup(int reset)
297{ 297{
298 int i; 298 int i;
299 299
@@ -840,7 +840,7 @@ static void usb_handle_int(int i)
840 840
841} 841}
842 842
843void usb_handle_interrupts(void) 843static void usb_handle_interrupts(void)
844{ 844{
845#ifdef LCD_DEBUG 845#ifdef LCD_DEBUG
846 char s[20]; 846 char s[20];
@@ -1002,7 +1002,7 @@ static void serial_free_out_fifo(int ep, unsigned char *buf, int len)
1002 serial_restart_output(ep); 1002 serial_restart_output(ep);
1003} 1003}
1004 1004
1005void usb_serial_handle(void) 1005static void usb_serial_handle(void)
1006{ 1006{
1007#ifdef BUTTONS 1007#ifdef BUTTONS
1008 static int t = 0; 1008 static int t = 0;