Ejemplo n.º 1
0
#if ACCESS_USB == true
  Ctrl_status (*usb_read_10)(U32, U16);
  Ctrl_status (*usb_write_10)(U32, U16);
#endif
#if ACCESS_MEM_TO_RAM == true
  Ctrl_status (*mem_2_ram)(U32, void *);
  Ctrl_status (*ram_2_mem)(U32, const void *);
#endif
  const char *name;
} lun_desc[MAX_LUN] =
{
#if LUN_0 == ENABLE
# ifndef Lun_0_unload
#  define Lun_0_unload NULL
# endif
  Lun_desc_entry(0),
#endif
#if LUN_1 == ENABLE
# ifndef Lun_1_unload
#  define Lun_1_unload NULL
# endif
  Lun_desc_entry(1),
#endif
#if LUN_2 == ENABLE
# ifndef Lun_2_unload
#  define Lun_2_unload NULL
# endif
  Lun_desc_entry(2),
#endif
#if LUN_3 == ENABLE
# ifndef Lun_3_unload
    Ctrl_status (*read_capacity) (U32 *);
    Bool (*wr_protect) (void);
    Bool (*removal) (void);
#if ACCESS_USB == ENABLED
    Ctrl_status (*usb_read_10) (U32, U16);
    Ctrl_status (*usb_write_10) (U32, U16);
#endif
#if ACCESS_MEM_TO_RAM == ENABLED
    Ctrl_status (*mem_2_ram) (U32, void* );
    Ctrl_status (*ram_2_mem) (U32, const void* );
#endif
    const char* name;
} lun_desc[MAX_LUN] =
{
#if LUN_0 == ENABLE
    Lun_desc_entry (0), // Uncrypted LUN
#endif
#if LUN_1 == ENABLE
        Lun_desc_entry (1),
#endif
#if LUN_2 == ENABLE
        Lun_desc_entry (2), // ram
#endif
#if LUN_3 == ENABLE
        Lun_desc_entry (3), // crypted lun
#endif
#if LUN_4 == ENABLE
        Lun_desc_entry (4),
#endif
#if LUN_5 == ENABLE
        Lun_desc_entry (5),