1
0
Fork 0
forked from len0rd/rockbox

replace USB_IPODSTYLE by USB_HANDLED_BY_OF as that's what it actually means. Fix various configs to use it correctly.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20078 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Frank Gevaerts 2009-02-21 17:56:31 +00:00
parent 3e7715d2f5
commit 9698c3bb5c
22 changed files with 13 additions and 38 deletions

View file

@ -85,7 +85,7 @@
#include "playback.h" #include "playback.h"
#ifdef BOOTFILE #ifdef BOOTFILE
#if !defined(USB_NONE) && !defined(USB_IPODSTYLE) #if !defined(USB_NONE) && !defined(USB_HANDLED_BY_OF)
#include "rolo.h" #include "rolo.h"
#include "yesno.h" #include "yesno.h"
#endif #endif
@ -569,13 +569,13 @@ long default_event_handler_ex(long event, void (*callback)(void *), void *parame
{ {
system_flush(); system_flush();
#ifdef BOOTFILE #ifdef BOOTFILE
#if !defined(USB_NONE) && !defined(USB_IPODSTYLE) #if !defined(USB_NONE) && !defined(USB_HANDLED_BY_OF)
check_bootfile(false); /* gets initial size */ check_bootfile(false); /* gets initial size */
#endif #endif
#endif #endif
usb_screen(); usb_screen();
#ifdef BOOTFILE #ifdef BOOTFILE
#if !defined(USB_NONE) && !defined(USB_IPODSTYLE) #if !defined(USB_NONE) && !defined(USB_HANDLED_BY_OF)
check_bootfile(true); check_bootfile(true);
#endif #endif
#endif #endif
@ -691,7 +691,7 @@ int get_replaygain_mode(bool have_track_gain, bool have_album_gain)
#endif #endif
#ifdef BOOTFILE #ifdef BOOTFILE
#if !defined(USB_NONE) && !defined(USB_IPODSTYLE) #if !defined(USB_NONE) && !defined(USB_HANDLED_BY_OF)
/* /*
memorize/compare details about the BOOTFILE memorize/compare details about the BOOTFILE
we don't use dircache because it may not be up to date after we don't use dircache because it may not be up to date after

View file

@ -73,7 +73,7 @@ int get_replaygain_mode(bool have_track_gain, bool have_album_gain);
int open_utf8(const char* pathname, int flags); int open_utf8(const char* pathname, int flags);
#ifdef BOOTFILE #ifdef BOOTFILE
#if !defined(USB_NONE) && !defined(USB_IPODSTYLE) #if !defined(USB_NONE) && !defined(USB_HANDLED_BY_OF)
void check_bootfile(bool do_rolo); void check_bootfile(bool do_rolo);
#endif #endif
#endif #endif

View file

@ -170,8 +170,6 @@
#define FIRMWARE_OFFSET_FILE_CRC 0x0 #define FIRMWARE_OFFSET_FILE_CRC 0x0
#define FIRMWARE_OFFSET_FILE_DATA 0x8 #define FIRMWARE_OFFSET_FILE_DATA 0x8
/* #define USB_IPODSTYLE */
#ifndef BOOTLOADER #ifndef BOOTLOADER
#define HAVE_MULTIVOLUME #define HAVE_MULTIVOLUME
#define HAVE_HOTSWAP #define HAVE_HOTSWAP

View file

@ -160,7 +160,7 @@
#define FIRMWARE_OFFSET_FILE_CRC 0x0 #define FIRMWARE_OFFSET_FILE_CRC 0x0
#define FIRMWARE_OFFSET_FILE_DATA 0x8 #define FIRMWARE_OFFSET_FILE_DATA 0x8
/* #define USB_IPODSTYLE */ #define USB_HANDLED_BY_OF
#ifndef BOOTLOADER #ifndef BOOTLOADER
#define HAVE_MULTIVOLUME #define HAVE_MULTIVOLUME

View file

@ -170,6 +170,8 @@
#ifndef BOOTLOADER #ifndef BOOTLOADER
#define USB_HANDLED_BY_OF
#if 0 /* disabled since there is no USB driver */ #if 0 /* disabled since there is no USB driver */
/* USB On-the-go */ /* USB On-the-go */
@ -183,6 +185,7 @@
#endif #endif
/* Virtual LED (icon) */ /* Virtual LED (icon) */
#define CONFIG_LED LED_VIRTUAL #define CONFIG_LED LED_VIRTUAL

View file

@ -167,8 +167,6 @@
#define HAVE_HOTSWAP #define HAVE_HOTSWAP
#endif #endif
/* #define USB_IPODSTYLE */
/* USB On-the-go */ /* USB On-the-go */
#define CONFIG_USBOTG USBOTG_ARC #define CONFIG_USBOTG USBOTG_ARC

View file

@ -171,7 +171,7 @@
#define HAVE_HOTSWAP #define HAVE_HOTSWAP
#endif #endif
/* #define USB_IPODSTYLE */ #define USB_HANDLED_BY_OF
/* USB On-the-go */ /* USB On-the-go */
#define CONFIG_USBOTG USBOTG_AS3525 #define CONFIG_USBOTG USBOTG_AS3525

View file

@ -171,7 +171,7 @@
#define HAVE_HOTSWAP #define HAVE_HOTSWAP
#endif #endif
/* #define USB_IPODSTYLE */ #define USB_HANDLED_BY_OF
/* USB On-the-go */ /* USB On-the-go */
#define CONFIG_USBOTG USBOTG_AS3525 #define CONFIG_USBOTG USBOTG_AS3525

View file

@ -159,8 +159,6 @@
#define FIRMWARE_OFFSET_FILE_CRC 0x0 #define FIRMWARE_OFFSET_FILE_CRC 0x0
#define FIRMWARE_OFFSET_FILE_DATA 0x8 #define FIRMWARE_OFFSET_FILE_DATA 0x8
/* #define USB_IPODSTYLE */
/* USB On-the-go */ /* USB On-the-go */
#define CONFIG_USBOTG USBOTG_ARC #define CONFIG_USBOTG USBOTG_ARC

View file

@ -139,8 +139,6 @@
#define FIRMWARE_OFFSET_FILE_CRC 0x0 #define FIRMWARE_OFFSET_FILE_CRC 0x0
#define FIRMWARE_OFFSET_FILE_DATA 0x8 #define FIRMWARE_OFFSET_FILE_DATA 0x8
/* #define USB_IPODSTYLE */
/* USB On-the-go */ /* USB On-the-go */
#define CONFIG_USBOTG USBOTG_ARC #define CONFIG_USBOTG USBOTG_ARC

View file

@ -173,8 +173,6 @@
#define FIRMWARE_OFFSET_FILE_CRC 0x0 #define FIRMWARE_OFFSET_FILE_CRC 0x0
#define FIRMWARE_OFFSET_FILE_DATA 0x8 #define FIRMWARE_OFFSET_FILE_DATA 0x8
/* #define USB_IPODSTYLE */
/* USB On-the-go */ /* USB On-the-go */
#define CONFIG_USBOTG USBOTG_ARC #define CONFIG_USBOTG USBOTG_ARC

View file

@ -146,7 +146,7 @@
/* Offset ( in the firmware file's header ) to the real data */ /* Offset ( in the firmware file's header ) to the real data */
#define FIRMWARE_OFFSET_FILE_DATA 8 #define FIRMWARE_OFFSET_FILE_DATA 8
#define USB_IPODSTYLE #define USB_HANDLED_BY_OF
/* actually firewire only, but handled like USB */ /* actually firewire only, but handled like USB */
/* Virtual LED (icon) */ /* Virtual LED (icon) */

View file

@ -150,7 +150,7 @@
/* Offset ( in the firmware file's header ) to the real data */ /* Offset ( in the firmware file's header ) to the real data */
#define FIRMWARE_OFFSET_FILE_DATA 8 #define FIRMWARE_OFFSET_FILE_DATA 8
#define USB_IPODSTYLE #define USB_HANDLED_BY_OF
/* actually both firewire and USB, USB isn't handled yet */ /* actually both firewire and USB, USB isn't handled yet */
/* Virtual LED (icon) */ /* Virtual LED (icon) */

View file

@ -167,8 +167,6 @@
/* Offset ( in the firmware file's header ) to the real data */ /* Offset ( in the firmware file's header ) to the real data */
#define FIRMWARE_OFFSET_FILE_DATA 8 #define FIRMWARE_OFFSET_FILE_DATA 8
#define USB_IPODSTYLE
/* USB On-the-go */ /* USB On-the-go */
#define CONFIG_USBOTG USBOTG_ARC #define CONFIG_USBOTG USBOTG_ARC

View file

@ -144,8 +144,6 @@
/* Offset ( in the firmware file's header ) to the real data */ /* Offset ( in the firmware file's header ) to the real data */
#define FIRMWARE_OFFSET_FILE_DATA 8 #define FIRMWARE_OFFSET_FILE_DATA 8
#define USB_IPODSTYLE
/* USB On-the-go */ /* USB On-the-go */
#define CONFIG_USBOTG USBOTG_ARC #define CONFIG_USBOTG USBOTG_ARC

View file

@ -163,8 +163,6 @@
/* Offset ( in the firmware file's header ) to the real data */ /* Offset ( in the firmware file's header ) to the real data */
#define FIRMWARE_OFFSET_FILE_DATA 8 #define FIRMWARE_OFFSET_FILE_DATA 8
#define USB_IPODSTYLE
/* USB On-the-go */ /* USB On-the-go */
#define CONFIG_USBOTG USBOTG_ARC #define CONFIG_USBOTG USBOTG_ARC

View file

@ -170,8 +170,6 @@
/* Offset ( in the firmware file's header ) to the real data */ /* Offset ( in the firmware file's header ) to the real data */
#define FIRMWARE_OFFSET_FILE_DATA 8 #define FIRMWARE_OFFSET_FILE_DATA 8
#define USB_IPODSTYLE
/* USB On-the-go */ /* USB On-the-go */
#define CONFIG_USBOTG USBOTG_ARC #define CONFIG_USBOTG USBOTG_ARC

View file

@ -154,8 +154,6 @@
/* Offset ( in the firmware file's header ) to the real data */ /* Offset ( in the firmware file's header ) to the real data */
#define FIRMWARE_OFFSET_FILE_DATA 8 #define FIRMWARE_OFFSET_FILE_DATA 8
#define USB_IPODSTYLE
/* USB On-the-go */ /* USB On-the-go */
#define CONFIG_USBOTG USBOTG_ARC #define CONFIG_USBOTG USBOTG_ARC

View file

@ -168,8 +168,6 @@
/* Offset ( in the firmware file's header ) to the real data */ /* Offset ( in the firmware file's header ) to the real data */
#define FIRMWARE_OFFSET_FILE_DATA 8 #define FIRMWARE_OFFSET_FILE_DATA 8
#define USB_IPODSTYLE
/* USB On-the-go */ /* USB On-the-go */
#define CONFIG_USBOTG USBOTG_ARC #define CONFIG_USBOTG USBOTG_ARC

View file

@ -144,8 +144,6 @@
/* We're able to shut off power to the HDD */ /* We're able to shut off power to the HDD */
#define HAVE_ATA_POWER_OFF #define HAVE_ATA_POWER_OFF
/* #define USB_IPODSTYLE */
/* USB On-the-go */ /* USB On-the-go */
#define CONFIG_USBOTG USBOTG_ARC #define CONFIG_USBOTG USBOTG_ARC

View file

@ -133,8 +133,6 @@
/* Type of LCD TODO: hopefully the same as the x5 but check this*/ /* Type of LCD TODO: hopefully the same as the x5 but check this*/
#define CONFIG_LCD LCD_SA9200 #define CONFIG_LCD LCD_SA9200
/* #define USB_IPODSTYLE */
/* USB On-the-go */ /* USB On-the-go */
#define CONFIG_USBOTG USBOTG_ARC #define CONFIG_USBOTG USBOTG_ARC

View file

@ -121,8 +121,6 @@
/* Offset ( in the firmware file's header ) to the real data */ /* Offset ( in the firmware file's header ) to the real data */
#define FIRMWARE_OFFSET_FILE_DATA 8 #define FIRMWARE_OFFSET_FILE_DATA 8
/* #define USB_IPODSTYLE */
/* USB On-the-go */ /* USB On-the-go */
#define CONFIG_USBOTG USBOTG_ARC #define CONFIG_USBOTG USBOTG_ARC