00001
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049 #ifndef _CONF_ACCESS_H_
00050 #define _CONF_ACCESS_H_
00051
00052 #include "compiler.h"
00053 #include "board.h"
00054
00055
00058
00059 #define LUN_0 DISABLE
00060 #define LUN_1 ENABLE
00061 #define LUN_2 DISABLE
00062 #define LUN_3 ENABLE
00063 #define LUN_4 DISABLE
00064 #define LUN_5 DISABLE
00065 #define LUN_6 DISABLE
00066 #define LUN_7 DISABLE
00067 #define LUN_USB DISABLE
00068
00069
00070
00072
00073 #define VIRTUAL_MEM LUN_0
00074 #define LUN_ID_VIRTUAL_MEM LUN_ID_0
00075 #define LUN_0_INCLUDE "virtual_mem.h"
00076 #define Lun_0_test_unit_ready virtual_test_unit_ready
00077 #define Lun_0_read_capacity virtual_read_capacity
00078 #define Lun_0_wr_protect virtual_wr_protect
00079 #define Lun_0_removal virtual_removal
00080 #define Lun_0_usb_read_10 virtual_usb_read_10
00081 #define Lun_0_usb_write_10 virtual_usb_write_10
00082 #define Lun_0_mem_2_ram virtual_mem_2_ram
00083 #define Lun_0_ram_2_mem virtual_ram_2_mem
00084 #define LUN_0_NAME "\"On-Chip Virtual Memory\""
00086
00087
00089
00090 #define AT45DBX_MEM LUN_1
00091 #define LUN_ID_AT45DBX_MEM LUN_ID_1
00092 #define LUN_1_INCLUDE "at45dbx_mem.h"
00093 #define Lun_1_test_unit_ready at45dbx_test_unit_ready
00094 #define Lun_1_read_capacity at45dbx_read_capacity
00095 #define Lun_1_wr_protect at45dbx_wr_protect
00096 #define Lun_1_removal at45dbx_removal
00097 #define Lun_1_usb_read_10 at45dbx_usb_read_10
00098 #define Lun_1_usb_write_10 at45dbx_usb_write_10
00099 #define Lun_1_mem_2_ram at45dbx_df_2_ram
00100 #define Lun_1_ram_2_mem at45dbx_ram_2_df
00101 #define LUN_1_NAME "\"AT45DBX Data Flash\""
00103
00104
00106
00107 #define SD_MMC_SPI_MEM LUN_2
00108 #define LUN_ID_SD_MMC_SPI_MEM LUN_ID_2
00109 #define LUN_2_INCLUDE "sd_mmc_spi_mem.h"
00110 #define Lun_2_test_unit_ready sd_mmc_spi_test_unit_ready
00111 #define Lun_2_read_capacity sd_mmc_spi_read_capacity
00112 #define Lun_2_wr_protect sd_mmc_spi_wr_protect
00113 #define Lun_2_removal sd_mmc_spi_removal
00114 #define Lun_2_usb_read_10 sd_mmc_spi_usb_read_10
00115 #define Lun_2_usb_write_10 sd_mmc_spi_usb_write_10
00116 #define Lun_2_mem_2_ram sd_mmc_spi_mem_2_ram
00117 #define Lun_2_ram_2_mem sd_mmc_spi_ram_2_mem
00118 #define LUN_2_NAME "\"SD/MMC Card over SPI\""
00120
00121
00123
00124 #define SD_MMC_MCI_0_MEM LUN_3
00125 #define LUN_ID_SD_MMC_MCI_0_MEM LUN_ID_3
00126 #define LUN_3_INCLUDE "sd_mmc_mci_mem.h"
00127 #define Lun_3_test_unit_ready sd_mmc_mci_test_unit_ready_0
00128 #define Lun_3_read_capacity sd_mmc_mci_read_capacity_0
00129 #define Lun_3_wr_protect sd_mmc_mci_wr_protect_0
00130 #define Lun_3_removal sd_mmc_mci_removal_0
00131 #define Lun_3_usb_read_10 sd_mmc_mci_usb_read_10_0
00132 #define Lun_3_usb_write_10 sd_mmc_mci_usb_write_10_0
00133 #define Lun_3_mem_2_ram sd_mmc_mci_mem_2_ram_0
00134 #define Lun_3_ram_2_mem sd_mmc_mci_ram_2_mem_0
00135 #define LUN_3_NAME "\"SD/MMC Card over MCI Slot 0\""
00137
00138
00140
00141 #define MEM_USB LUN_USB
00142 #define LUN_ID_MEM_USB LUN_ID_USB
00143 #define LUN_USB_INCLUDE "host_mem.h"
00144 #define Lun_usb_test_unit_ready(lun) host_test_unit_ready(lun)
00145 #define Lun_usb_read_capacity(lun, nb_sect) host_read_capacity(lun, nb_sect)
00146 #define Lun_usb_read_sector_size(lun) host_read_sector_size(lun)
00147 #define Lun_usb_wr_protect(lun) host_wr_protect(lun)
00148 #define Lun_usb_removal() host_removal()
00149 #define Lun_usb_mem_2_ram(addr, ram) host_read_10_ram(addr, ram)
00150 #define Lun_usb_ram_2_mem(addr, ram) host_write_10_ram(addr, ram)
00151 #define LUN_USB_NAME "\"Host Mass-Storage Memory\""
00153
00154
00160
00161 #define memory_start_read_action(nb_sectors) ms_cnt_read+=(nb_sectors)
00162 #define memory_stop_read_action()
00163 #define memory_start_write_action(nb_sectors) ms_cnt_write+=(nb_sectors)
00164 #define memory_stop_write_action()
00166
00167 extern volatile U32 ms_cnt_read;
00168 extern volatile U32 ms_cnt_write;
00169
00172
00173 #define ACCESS_USB ENABLED
00174 #define ACCESS_MEM_TO_RAM ENABLED
00175 #define ACCESS_STREAM ENABLED
00176 #define ACCESS_STREAM_RECORD DISABLED
00177 #define ACCESS_MEM_TO_MEM ENABLED
00178 #define ACCESS_CODEC DISABLED
00179
00180
00181
00183
00184 #define GLOBAL_WR_PROTECT DISABLED
00185
00186
00187
00188 #endif // _CONF_ACCESS_H_