diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2008-03-03 22:19:38 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2008-03-03 22:19:38 +0000 |
commit | 81d3a02928083b54560709488ad81911494d3796 (patch) | |
tree | 3f254604447921846968d9fd058f48de01ba517c /firmware/usbstack | |
parent | ebb49434c69bb63763977b6a78def8c694d43e0a (diff) | |
download | rockbox-81d3a02928083b54560709488ad81911494d3796.tar.gz rockbox-81d3a02928083b54560709488ad81911494d3796.zip |
mark all drives as DEVICE_REMOVABLE to make mac osx (and some developers) happy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16502 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usbstack')
-rw-r--r-- | firmware/usbstack/usb_storage.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c index 746e275655..9fae7fc354 100644 --- a/firmware/usbstack/usb_storage.c +++ b/firmware/usbstack/usb_storage.c | |||
@@ -821,8 +821,10 @@ static void identify2inquiry(int lun) | |||
821 | (void)lun; | 821 | (void)lun; |
822 | memset(tb.inquiry, 0, sizeof(struct inquiry_data)); | 822 | memset(tb.inquiry, 0, sizeof(struct inquiry_data)); |
823 | 823 | ||
824 | #if 0 | ||
824 | if (identify[82] & 4) | 825 | if (identify[82] & 4) |
825 | tb.inquiry->DeviceTypeModifier = DEVICE_REMOVABLE; | 826 | tb.inquiry->DeviceTypeModifier = DEVICE_REMOVABLE; |
827 | #endif | ||
826 | 828 | ||
827 | /* ATA only has a 'model' field, so we copy the | 829 | /* ATA only has a 'model' field, so we copy the |
828 | first 8 bytes to 'vendor' and the rest to 'product' (they are | 830 | first 8 bytes to 'vendor' and the rest to 'product' (they are |
@@ -843,11 +845,14 @@ static void identify2inquiry(int lun) | |||
843 | tb.inquiry->Versions = 4; /* SPC-2 */ | 845 | tb.inquiry->Versions = 4; /* SPC-2 */ |
844 | tb.inquiry->Format = 2; /* SPC-2/3 inquiry format */ | 846 | tb.inquiry->Format = 2; /* SPC-2/3 inquiry format */ |
845 | 847 | ||
848 | #if 0 | ||
846 | #ifdef HAVE_HOTSWAP | 849 | #ifdef HAVE_HOTSWAP |
847 | if(lun>0) | 850 | if(lun>0) |
848 | tb.inquiry->DeviceTypeModifier = DEVICE_REMOVABLE; | 851 | tb.inquiry->DeviceTypeModifier = DEVICE_REMOVABLE; |
849 | #endif | 852 | #endif |
850 | 853 | #endif | |
854 | /* Mac OSX 10.5 doesn't like this driver if DEVICE_REMOVABLE is not set */ | ||
855 | tb.inquiry->DeviceTypeModifier = DEVICE_REMOVABLE; | ||
851 | } | 856 | } |
852 | 857 | ||
853 | #endif /* USB_STORAGE */ | 858 | #endif /* USB_STORAGE */ |