From 446445e9162d19ceeabf889e6aa916ec9ec58b5b Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Sun, 8 Aug 2010 10:49:32 +0000 Subject: 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 --- firmware/target/arm/usb-s3c6400x.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'firmware/target/arm/usb-s3c6400x.c') 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 @@ #include "config.h" #include "usb.h" +#include "usb-target.h" +#include "usb_drv.h" #define OTGBASE 0x38800000 #define PHYBASE 0x3C400000 @@ -55,7 +57,7 @@ int usb_drv_port_speed(void) return (DSTS & 2) == 0 ? 1 : 0; } -void reset_endpoints(int reinit) +static void reset_endpoints(int reinit) { unsigned int i; for (i = 0; i < sizeof(endpoints)/sizeof(struct ep_type); i++) @@ -268,7 +270,7 @@ void usb_drv_set_address(int address) into the USB core, which will then call this dummy function. */ } -void ep_send(int ep, void *ptr, int length) +static void ep_send(int ep, void *ptr, int length) { endpoints[ep].busy = true; endpoints[ep].size = length; @@ -289,7 +291,7 @@ void ep_send(int ep, void *ptr, int length) DIEPCTL(ep) |= 0x84000000; /* EPx OUT ENABLE CLEARNAK */ } -void ep_recv(int ep, void *ptr, int length) +static void ep_recv(int ep, void *ptr, int length) { endpoints[ep].busy = true; endpoints[ep].size = length; -- cgit v1.2.3