summaryrefslogtreecommitdiff
path: root/firmware/target/arm/usb-s3c6400x.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-08-08 10:49:32 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-08-08 10:49:32 +0000
commit446445e9162d19ceeabf889e6aa916ec9ec58b5b (patch)
tree8d79e04a090e70872ecd719880ddff250dcd0591 /firmware/target/arm/usb-s3c6400x.c
parent82a2cdb2adcb26a6c0c61c1f717d8749245a0e54 (diff)
downloadrockbox-446445e9162d19ceeabf889e6aa916ec9ec58b5b.tar.gz
rockbox-446445e9162d19ceeabf889e6aa916ec9ec58b5b.zip
ipod nano 2g: make functions/variables static where possible, add missing #includes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27752 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/usb-s3c6400x.c')
-rw-r--r--firmware/target/arm/usb-s3c6400x.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/target/arm/usb-s3c6400x.c b/firmware/target/arm/usb-s3c6400x.c
index 3f28e7f379..6fbf453cd1 100644
--- a/firmware/target/arm/usb-s3c6400x.c
+++ b/firmware/target/arm/usb-s3c6400x.c
@@ -21,6 +21,8 @@
21 21
22#include "config.h" 22#include "config.h"
23#include "usb.h" 23#include "usb.h"
24#include "usb-target.h"
25#include "usb_drv.h"
24 26
25#define OTGBASE 0x38800000 27#define OTGBASE 0x38800000
26#define PHYBASE 0x3C400000 28#define PHYBASE 0x3C400000
@@ -55,7 +57,7 @@ int usb_drv_port_speed(void)
55 return (DSTS & 2) == 0 ? 1 : 0; 57 return (DSTS & 2) == 0 ? 1 : 0;
56} 58}
57 59
58void reset_endpoints(int reinit) 60static void reset_endpoints(int reinit)
59{ 61{
60 unsigned int i; 62 unsigned int i;
61 for (i = 0; i < sizeof(endpoints)/sizeof(struct ep_type); i++) 63 for (i = 0; i < sizeof(endpoints)/sizeof(struct ep_type); i++)
@@ -268,7 +270,7 @@ void usb_drv_set_address(int address)
268 into the USB core, which will then call this dummy function. */ 270 into the USB core, which will then call this dummy function. */
269} 271}
270 272
271void ep_send(int ep, void *ptr, int length) 273static void ep_send(int ep, void *ptr, int length)
272{ 274{
273 endpoints[ep].busy = true; 275 endpoints[ep].busy = true;
274 endpoints[ep].size = length; 276 endpoints[ep].size = length;
@@ -289,7 +291,7 @@ void ep_send(int ep, void *ptr, int length)
289 DIEPCTL(ep) |= 0x84000000; /* EPx OUT ENABLE CLEARNAK */ 291 DIEPCTL(ep) |= 0x84000000; /* EPx OUT ENABLE CLEARNAK */
290} 292}
291 293
292void ep_recv(int ep, void *ptr, int length) 294static void ep_recv(int ep, void *ptr, int length)
293{ 295{
294 endpoints[ep].busy = true; 296 endpoints[ep].busy = true;
295 endpoints[ep].size = length; 297 endpoints[ep].size = length;