diff options
author | Dean Camera <[email protected]> | 2013-03-18 17:18:11 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2013-03-18 17:18:11 +0000 |
commit | be33d3a5156ea3fde221c9e174ad0405eb8d1f8d (patch) | |
tree | b027f4af999f39ed4554270c089a003479be7af7 /Bootloaders/MassStorage/Lib/SCSI.h | |
parent | f8a1dc7424cd83f2f3e87274010d379a661b76e4 (diff) | |
download | qmk_firmware-be33d3a5156ea3fde221c9e174ad0405eb8d1f8d.tar.gz qmk_firmware-be33d3a5156ea3fde221c9e174ad0405eb8d1f8d.zip |
Update Mass Storage bootloader so that it can support devices with only 4KB bootloader sections by creating a special AUX section before the real bootloader section to store part of the bootloader code.
Diffstat (limited to 'Bootloaders/MassStorage/Lib/SCSI.h')
-rw-r--r-- | Bootloaders/MassStorage/Lib/SCSI.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Bootloaders/MassStorage/Lib/SCSI.h b/Bootloaders/MassStorage/Lib/SCSI.h index 54914f5eb6..8eb817fa77 100644 --- a/Bootloaders/MassStorage/Lib/SCSI.h +++ b/Bootloaders/MassStorage/Lib/SCSI.h @@ -42,7 +42,6 @@ #include <LUFA/Drivers/USB/USB.h> - #include "../BootloaderMassStorage.h" #include "../Descriptors.h" #include "VirtualFAT.h" @@ -69,16 +68,15 @@ #define DEVICE_TYPE_BLOCK 0x00 /* Function Prototypes: */ - bool SCSI_DecodeSCSICommand(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo); + bool SCSI_DecodeSCSICommand(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo) AUX_BOOT_SECTION; #if defined(INCLUDE_FROM_SCSI_C) - static bool SCSI_Command_Inquiry(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo); - static bool SCSI_Command_Request_Sense(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo); - static bool SCSI_Command_Read_Capacity_10(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo); - static bool SCSI_Command_Send_Diagnostic(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo); + static bool SCSI_Command_Inquiry(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo) AUX_BOOT_SECTION; + static bool SCSI_Command_Request_Sense(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo) AUX_BOOT_SECTION; + static bool SCSI_Command_Read_Capacity_10(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo) AUX_BOOT_SECTION; static bool SCSI_Command_ReadWrite_10(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo, - const bool IsDataRead); - static bool SCSI_Command_ModeSense_6(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo); + const bool IsDataRead) AUX_BOOT_SECTION; + static bool SCSI_Command_ModeSense_6(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo) AUX_BOOT_SECTION; #endif #endif |