mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-15 16:05:10 +01:00
0e7d37b18b
*Fixed freeze in theme menu when its empty *Optimized the game list loading on fat/ntfs/ext. This should speed up the loading process. *Added cache of game titles. This will speed up the startup after the cache file is written (in other words on second start of this rev). A TitlesCache.bin will be created in the same path as the wiitdb.xml for this. This should especial speed up the startup of fat/ntfs/ext partitions by a lot if no sub folders with the game titles are used, like GAMEID.wbfs only. That must have been painfully slow before on a lot of games. Should be at about the same speed as with sub folders now. I would still recommend to use sub folders. *Removed wiilight (disc slot) blinking when switching USB port on Hermes cIOSes (thanks rodries) *Added the ehcmodule sources from rodries to the branches *Updated language files
49 lines
1023 B
C
49 lines
1023 B
C
#ifndef EHCI_TYPES_H
|
|
#define EHCI_TYPES_H
|
|
/* linux kernel types needed by our code */
|
|
#define __iomem
|
|
|
|
//typedef unsigned long uint32_t;
|
|
|
|
#include "types.h"
|
|
|
|
#define __u32 u32
|
|
#define __le32 u32
|
|
#define dma_addr_t u32
|
|
#define __GNUG__
|
|
#define size_t u32
|
|
typedef u32 spinlock_t;
|
|
typedef enum
|
|
{
|
|
GFP_KERNEL=1
|
|
}gfp_t;
|
|
struct timer_list
|
|
{
|
|
int time;
|
|
};
|
|
|
|
enum{
|
|
ENODEV =1,
|
|
ETIMEDOUT,
|
|
EINVAL,
|
|
ENOMEM,
|
|
EBADDATA,
|
|
ETRANSERR,
|
|
EPORTDOWN,
|
|
|
|
};
|
|
#define jiffies 0
|
|
#define likely(x) __builtin_expect(!!(x), 1)
|
|
#define unlikely(x) __builtin_expect(!!(x), 0)
|
|
#define container_of(ptr, type, member) ({ \
|
|
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
|
|
(type *)( (char *)__mptr - offsetof(type,member) );})
|
|
|
|
#undef offsetof
|
|
#ifdef __compiler_offsetof
|
|
#define offsetof(TYPE,MEMBER) __compiler_offsetof(TYPE,MEMBER)
|
|
#else
|
|
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
|
|
#endif
|
|
#endif
|