mgh: fix for default HDD DMA mode, that wasn't correctly set
[open-ps2-loader.git] / modules / usb / usbhdfsd / usbhdfsd.c
blob2cd290420a60c3ee83bb621d16b4c0650c1ef53c
1 /*
2 * usb_mass.c - USB Mass storage driver for PS2 $Revision: 1530 $
3 */
5 #define MAJOR_VER 1
6 #define MINOR_VER 4
8 #include <loadcore.h>
9 #include <stdio.h>
11 extern int InitFAT();
12 extern int InitFS();
13 extern int InitUSB();
15 int _start( int argc, char **argv)
17 printf("USB HDD FileSystem Driver v%d.%d\n", MAJOR_VER, MINOR_VER);
19 FlushDcache();
21 // initialize the FAT driver
22 if(InitFAT() != 0)
24 printf("Error initializing FAT driver!\n");
25 return(1);
28 // initialize the USB driver
29 if(InitUSB() != 0)
31 printf("Error initializing USB driver!\n");
32 return(1);
35 // initialize the file system driver
36 if(InitFS() != 0)
38 printf("Error initializing FS driver!\n");
39 return(1);
42 // return resident
43 return(0);