summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2011-12-31 18:43:41 +0000
committerRafaël Carré <rafael.carre@gmail.com>2011-12-31 18:43:41 +0000
commitbce42fdc31648d7087dcbaac0704a422b33ac147 (patch)
tree9655332f5994b45fb811d773b0d2bbcee731dd66
parent12a45549f6a6545cce25a11a5971bb8b730f671d (diff)
downloadrockbox-bce42fdc31648d7087dcbaac0704a422b33ac147.tar.gz
rockbox-bce42fdc31648d7087dcbaac0704a422b33ac147.zip
usb_init_device(): move prototype to usb.h
Get rid of some usb-target.h files git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31487 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/export/usb.h4
-rw-r--r--firmware/target/arm/as3525/usb-as3525.c4
-rw-r--r--firmware/target/arm/as3525/usb-target.h2
-rw-r--r--firmware/target/arm/imx233/usb-target.h1
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/usb-target.h1
-rw-r--r--firmware/target/arm/iriver/usb-target.h1
-rw-r--r--firmware/target/arm/pbell/vibe500/usb-target.h1
-rw-r--r--firmware/target/arm/pnx0101/usb-target.h29
-rw-r--r--firmware/target/arm/s3c2440/gigabeat-fx/usb-target.h26
-rw-r--r--firmware/target/arm/s5l8700/usb-target.h24
-rw-r--r--firmware/target/arm/tms320dm320/creative-zvm/usb-target.h1
-rw-r--r--firmware/target/arm/tms320dm320/sansa-connect/usb-target.h1
-rw-r--r--firmware/target/arm/usb-target.h1
-rw-r--r--firmware/target/coldfire/usb-target.h26
-rw-r--r--firmware/target/mips/ingenic_jz47xx/onda_vx747/usb-target.h1
-rw-r--r--firmware/target/mips/ingenic_jz47xx/onda_vx767/usb-target.h1
-rw-r--r--firmware/target/sh/usb-target.h26
17 files changed, 8 insertions, 142 deletions
diff --git a/firmware/export/usb.h b/firmware/export/usb.h
index ae6d59b497..4af5617b3e 100644
--- a/firmware/export/usb.h
+++ b/firmware/export/usb.h
@@ -151,4 +151,8 @@ void usb_set_hid(bool enable);
151void usb_set_skip_first_drive(bool skip); 151void usb_set_skip_first_drive(bool skip);
152#endif 152#endif
153 153
154#if !defined(SIMULATOR) && !defined(USB_NONE)
155void usb_init_device(void);
156#endif
157
154#endif 158#endif
diff --git a/firmware/target/arm/as3525/usb-as3525.c b/firmware/target/arm/as3525/usb-as3525.c
index ba4cbc4dda..288ee5b64b 100644
--- a/firmware/target/arm/as3525/usb-as3525.c
+++ b/firmware/target/arm/as3525/usb-as3525.c
@@ -79,3 +79,7 @@ int usb_detect(void)
79{ 79{
80 return usb_status; 80 return usb_status;
81} 81}
82
83void usb_init_device(void)
84{
85}
diff --git a/firmware/target/arm/as3525/usb-target.h b/firmware/target/arm/as3525/usb-target.h
index 3643cf84b6..9cafced050 100644
--- a/firmware/target/arm/as3525/usb-target.h
+++ b/firmware/target/arm/as3525/usb-target.h
@@ -21,8 +21,6 @@
21#ifndef USB_TARGET_H 21#ifndef USB_TARGET_H
22#define USB_TARGET_H 22#define USB_TARGET_H
23 23
24static inline void usb_init_device(void) { }
25
26int usb_detect(void); 24int usb_detect(void);
27void usb_insert_int(void); 25void usb_insert_int(void);
28void usb_remove_int(void); 26void usb_remove_int(void);
diff --git a/firmware/target/arm/imx233/usb-target.h b/firmware/target/arm/imx233/usb-target.h
index 8d6c0af372..00cef2c060 100644
--- a/firmware/target/arm/imx233/usb-target.h
+++ b/firmware/target/arm/imx233/usb-target.h
@@ -27,7 +27,6 @@
27#define USB_DRIVER_CLOSE 27#define USB_DRIVER_CLOSE
28#endif 28#endif
29 29
30void usb_init_device(void);
31int usb_detect(void); 30int usb_detect(void);
32void usb_insert_int(void); 31void usb_insert_int(void);
33void usb_remove_int(void); 32void usb_remove_int(void);
diff --git a/firmware/target/arm/imx31/gigabeat-s/usb-target.h b/firmware/target/arm/imx31/gigabeat-s/usb-target.h
index 7931058241..961b947e14 100644
--- a/firmware/target/arm/imx31/gigabeat-s/usb-target.h
+++ b/firmware/target/arm/imx31/gigabeat-s/usb-target.h
@@ -26,7 +26,6 @@
26#endif 26#endif
27 27
28void usb_connect_event(void); 28void usb_connect_event(void);
29void usb_init_device(void);
30/* Read the immediate state of the cable from the PMIC */ 29/* Read the immediate state of the cable from the PMIC */
31bool usb_plugged(void); 30bool usb_plugged(void);
32 31
diff --git a/firmware/target/arm/iriver/usb-target.h b/firmware/target/arm/iriver/usb-target.h
index 034b012bdd..a0905ebe51 100644
--- a/firmware/target/arm/iriver/usb-target.h
+++ b/firmware/target/arm/iriver/usb-target.h
@@ -28,7 +28,6 @@
28#define USB_DRIVER_CLOSE 28#define USB_DRIVER_CLOSE
29#endif 29#endif
30 30
31bool usb_init_device(void);
32void usb_pin_init(void); /* Init the GPIO input only */ 31void usb_pin_init(void); /* Init the GPIO input only */
33bool usb_plugged(void); /* Returns instantaneous state - always */ 32bool usb_plugged(void); /* Returns instantaneous state - always */
34 33
diff --git a/firmware/target/arm/pbell/vibe500/usb-target.h b/firmware/target/arm/pbell/vibe500/usb-target.h
index fb51b990c8..2cedf514c5 100644
--- a/firmware/target/arm/pbell/vibe500/usb-target.h
+++ b/firmware/target/arm/pbell/vibe500/usb-target.h
@@ -24,7 +24,6 @@
24#ifndef USB_TARGET_H 24#ifndef USB_TARGET_H
25#define USB_TARGET_H 25#define USB_TARGET_H
26 26
27bool usb_init_device(void);
28void usb_pin_init(void); /* Init the GPIO input only */ 27void usb_pin_init(void); /* Init the GPIO input only */
29 28
30#endif 29#endif
diff --git a/firmware/target/arm/pnx0101/usb-target.h b/firmware/target/arm/pnx0101/usb-target.h
index a01a9768e9..e69de29bb2 100644
--- a/firmware/target/arm/pnx0101/usb-target.h
+++ b/firmware/target/arm/pnx0101/usb-target.h
@@ -1,29 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id: usb-target.h 11494 2006-11-10 07:43:36Z tomal $
9 *
10 * Copyright (C) 2006 by Barry Wardelll
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22/* Based off x5 version */
23
24#ifndef USB_TARGET_H
25#define USB_TARGET_H
26
27bool usb_init_device(void);
28
29#endif
diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/usb-target.h b/firmware/target/arm/s3c2440/gigabeat-fx/usb-target.h
index aba5f55a46..e69de29bb2 100644
--- a/firmware/target/arm/s3c2440/gigabeat-fx/usb-target.h
+++ b/firmware/target/arm/s3c2440/gigabeat-fx/usb-target.h
@@ -1,26 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2006 by Linus Nielsen Feltzing
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21#ifndef USB_TARGET_H
22#define USB_TARGET_H
23
24void usb_init_device(void);
25
26#endif
diff --git a/firmware/target/arm/s5l8700/usb-target.h b/firmware/target/arm/s5l8700/usb-target.h
index 2c9f841773..e69de29bb2 100644
--- a/firmware/target/arm/s5l8700/usb-target.h
+++ b/firmware/target/arm/s5l8700/usb-target.h
@@ -1,24 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2010 by Bertrik Sikken
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22 void usb_init_device(void);
23
24
diff --git a/firmware/target/arm/tms320dm320/creative-zvm/usb-target.h b/firmware/target/arm/tms320dm320/creative-zvm/usb-target.h
index 6b56d8c5c0..9415480d88 100644
--- a/firmware/target/arm/tms320dm320/creative-zvm/usb-target.h
+++ b/firmware/target/arm/tms320dm320/creative-zvm/usb-target.h
@@ -75,7 +75,6 @@
75 75
76#include <stdbool.h> 76#include <stdbool.h>
77int usb_detect(void); 77int usb_detect(void);
78void usb_init_device(void);
79bool usb_drv_connected(void); 78bool usb_drv_connected(void);
80 79
81#endif 80#endif
diff --git a/firmware/target/arm/tms320dm320/sansa-connect/usb-target.h b/firmware/target/arm/tms320dm320/sansa-connect/usb-target.h
index 6142b09f0b..3e8aa14a15 100644
--- a/firmware/target/arm/tms320dm320/sansa-connect/usb-target.h
+++ b/firmware/target/arm/tms320dm320/sansa-connect/usb-target.h
@@ -26,7 +26,6 @@
26 26
27#include <stdbool.h> 27#include <stdbool.h>
28int usb_detect(void); 28int usb_detect(void);
29void usb_init_device(void);
30bool usb_drv_connected(void); 29bool usb_drv_connected(void);
31 30
32#endif 31#endif
diff --git a/firmware/target/arm/usb-target.h b/firmware/target/arm/usb-target.h
index 7342f2aafa..68418c9208 100644
--- a/firmware/target/arm/usb-target.h
+++ b/firmware/target/arm/usb-target.h
@@ -21,7 +21,6 @@
21#ifndef USB_TARGET_H 21#ifndef USB_TARGET_H
22#define USB_TARGET_H 22#define USB_TARGET_H
23 23
24void usb_init_device(void);
25void usb_insert_int(void); 24void usb_insert_int(void);
26void firewire_insert_int(void); 25void firewire_insert_int(void);
27void usb_pin_init(void); /* Init the GPIO input only */ 26void usb_pin_init(void); /* Init the GPIO input only */
diff --git a/firmware/target/coldfire/usb-target.h b/firmware/target/coldfire/usb-target.h
index aba5f55a46..e69de29bb2 100644
--- a/firmware/target/coldfire/usb-target.h
+++ b/firmware/target/coldfire/usb-target.h
@@ -1,26 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2006 by Linus Nielsen Feltzing
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21#ifndef USB_TARGET_H
22#define USB_TARGET_H
23
24void usb_init_device(void);
25
26#endif
diff --git a/firmware/target/mips/ingenic_jz47xx/onda_vx747/usb-target.h b/firmware/target/mips/ingenic_jz47xx/onda_vx747/usb-target.h
index 0b17bebfc2..a1acb6f912 100644
--- a/firmware/target/mips/ingenic_jz47xx/onda_vx747/usb-target.h
+++ b/firmware/target/mips/ingenic_jz47xx/onda_vx747/usb-target.h
@@ -40,7 +40,6 @@
40#define USB_STATUS_BY_EVENT 40#define USB_STATUS_BY_EVENT
41 41
42int usb_detect(void); 42int usb_detect(void);
43void usb_init_device(void);
44bool usb_drv_connected(void); 43bool usb_drv_connected(void);
45 44
46#endif 45#endif
diff --git a/firmware/target/mips/ingenic_jz47xx/onda_vx767/usb-target.h b/firmware/target/mips/ingenic_jz47xx/onda_vx767/usb-target.h
index 887d7415d0..aa51a76f4c 100644
--- a/firmware/target/mips/ingenic_jz47xx/onda_vx767/usb-target.h
+++ b/firmware/target/mips/ingenic_jz47xx/onda_vx767/usb-target.h
@@ -38,7 +38,6 @@
38#define USB_DRV_CONNECTED() (__gpio_get_pin(GPIO_UDC_DETE) == 1) 38#define USB_DRV_CONNECTED() (__gpio_get_pin(GPIO_UDC_DETE) == 1)
39 39
40int usb_detect(void); 40int usb_detect(void);
41void usb_init_device(void);
42bool usb_drv_connected(void); 41bool usb_drv_connected(void);
43 42
44#endif 43#endif
diff --git a/firmware/target/sh/usb-target.h b/firmware/target/sh/usb-target.h
index d460ed11a7..e69de29bb2 100644
--- a/firmware/target/sh/usb-target.h
+++ b/firmware/target/sh/usb-target.h
@@ -1,26 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2007 by Jens Arnold
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21#ifndef USB_TARGET_H
22#define USB_TARGET_H
23
24void usb_init_device(void);
25
26#endif