0.3.1
|
Data Structures | |
struct | cd_block_hardware_info |
Not yet documented. More... | |
struct | cd_block_status |
Not yet documented. More... | |
Typedefs | |
typedef uint32_t | fad_t |
Not yet documented. | |
typedef struct cd_block_hardware_info | cd_block_hardware_info_t |
Not yet documented. | |
typedef struct cd_block_status | cd_block_status_t |
Not yet documented. | |
Functions | |
int | cd_block_init (void) |
bool | cd_block_busy (void) |
Determine if CD-block is busy for commands. | |
int | cd_block_security_bypass (void) |
Bypass copy protection (by using JHL and CyberWarriorX exploit). | |
int | cd_block_transfer_data (uint16_t offset, uint16_t buffer_number, uint8_t *output_buffer, uint32_t buffer_length) |
Transfer data from CD-block buffer to memory. | |
int | cd_block_transfer_data_dmac (uint16_t offset, uint16_t buffer_number, uint8_t *output_buffer, uint32_t buffer_length, cpu_dmac_channel_t ch) |
Transfer data from CD-block buffer to memory using the Direct Memory Access Controller (DMAC). | |
int | cd_block_sector_read (fad_t fad, void *output_buffer) |
Read a sector to a memory location. | |
int | cd_block_sectors_read (fad_t fad, void *output_buffer, uint32_t length) |
Read multiple sectors to a memory location. | |
int | cd_block_cmd_status_get (cd_block_status_t *cd_status) |
Not yet documented. | |
int | cd_block_cmd_get_hw_info_get (cd_block_hardware_info_t *info) |
Not yet documented. | |
int | cd_block_cmd_toc_get (uint8_t *cd_status, uint16_t *toc_size) |
Not yet documented. | |
int | cd_block_cmd_session_info_get (uint8_t session_number, uint8_t *cd_status, uint8_t *num_sessions, uint32_t *session_lba) |
Not yet documented. | |
int | cd_block_cmd_cd_system_init (int16_t standby) |
Not yet documented. | |
int | cd_block_cmd_tray_open (int16_t standby) |
Not yet documented. | |
int | cd_block_cmd_data_transfer_end (void) |
Not yet documented. | |
int | cd_block_cmd_disk_play (int32_t mode, fad_t start_fad, int32_t num_sectors) |
Not yet documented. | |
int | cd_block_cmd_disk_seek (uint32_t start_play_pos) |
Not yet documented. | |
int | cd_block_cmd_disk_scan (uint8_t scan_direction, uint8_t *cd_status) |
Not yet documented. | |
int | cd_block_cmd_subcode_get (uint8_t type, uint8_t *cd_status, uint16_t *size_in_words, uint16_t *flags) |
Not yet documented. | |
int | cd_block_cmd_cd_dev_connection_set (uint8_t filter) |
Not yet documented. | |
int | cd_block_cmd_cd_dev_connection_get (uint8_t *cd_status, uint8_t *filter_number) |
Not yet documented. | |
int | cd_block_cmd_last_buffer_destination_get (uint8_t *cd_status, uint8_t *buffer_number) |
Not yet documented. | |
int | cd_block_cmd_filter_range_set (uint8_t filter, fad_t fad, uint32_t range) |
Not yet documented. | |
int | cd_block_cmd_filter_subheader_conditions_set (uint8_t channel, uint8_t submode_mask, uint8_t code_info_mask, uint8_t filter_number, uint8_t file_id, uint8_t sub_mode_val, uint8_t code_info_val) |
Not yet documented. | |
int | cd_block_cmd_filter_mode_set (uint8_t mode, uint16_t filter_number) |
Not yet documented. | |
int | cd_block_cmd_filter_connection_set (uint8_t conn_number, uint8_t true_conn, uint8_t false_conn, uint16_t filter_number) |
Not yet documented. | |
int | cd_block_cmd_selector_reset (uint8_t flags, uint8_t sel_number) |
Not yet documented. | |
int | cd_block_cmd_buffer_size_get (uint8_t *cd_status, uint16_t *block_free_space, uint8_t *max_selectors, uint16_t *max_blocks) |
Not yet documented. | |
int | cd_block_cmd_sector_number_get (uint8_t buffer_number) |
Not yet documented. | |
int | cd_block_cmd_sector_length_set (uint8_t size) |
Not yet documented. | |
int | cd_block_cmd_sector_data_get (uint16_t sector_offset, uint8_t buffer_number, uint16_t sector_number) |
Not yet documented. | |
int | cd_block_cmd_sector_data_delete (uint16_t sector_position, uint8_t buffer_number, uint16_t sector_number) |
Not yet documented. | |
int | cd_block_cmd_sector_data_get_delete (uint16_t offset, uint8_t buffer_number, uint16_t sector_number) |
Not yet documented. | |
int | cd_block_cmd_sector_data_put (uint8_t buffer_number, uint16_t sector_number) |
Not yet documented. | |
int | cd_block_cmd_sector_data_copy (uint8_t dst_filter, uint16_t sector_offset, uint8_t buffer_number, uint16_t sector_number) |
Not yet documented. | |
int | cd_block_cmd_sector_data_move (uint8_t dst_filter, uint16_t sector_offset, uint8_t buffer_number, uint16_t sector_number) |
Not yet documented. | |
int | cd_block_cmd_file_abort (void) |
Not yet documented. | |
int | cd_block_cmd_disk_auth (void) |
Not yet documented. | |
int | cd_block_cmd_auth_check (uint16_t *disk_type_auth) |
Not yet documented. | |
int | cd_block_cmd_execute (cd_block_ioregs_t *regs, cd_block_ioregs_t *status) |
Not yet documented. | |
struct cd_block_hardware_info |
struct cd_block_status |
int cd_block_init | ( | void | ) |
Initialize the CD-block.
bool cd_block_busy | ( | void | ) |
int cd_block_security_bypass | ( | void | ) |
Bypass copy protection (by using JHL and CyberWarriorX exploit).
int cd_block_transfer_data | ( | uint16_t | offset, |
uint16_t | buffer_number, | ||
uint8_t * | output_buffer, | ||
uint32_t | buffer_length | ||
) |
Transfer data from CD-block buffer to memory.
offset | Offset from current FAD. | |
buffer_number | Number of buffer to start reading. | |
[out] | output_buffer | Buffer where data will be recorded. |
buffer_length | Size of the buffer where data will be recorded. |
int cd_block_transfer_data_dmac | ( | uint16_t | offset, |
uint16_t | buffer_number, | ||
uint8_t * | output_buffer, | ||
uint32_t | buffer_length, | ||
cpu_dmac_channel_t | ch | ||
) |
Transfer data from CD-block buffer to memory using the Direct Memory Access Controller (DMAC).
offset | Offset from current FAD. |
buffer_number | Number of buffer to start reading. |
output_buffer | Buffer where data will be recorded. |
buffer_length | Size of the buffer where data will be recorded. |
ch | DMA channel to be used on the transfer. |
int cd_block_sector_read | ( | fad_t | fad, |
void * | output_buffer | ||
) |
Read a sector to a memory location.
This function initialize and spins the disk to retrieve data.
fad | FAD to start reading from. | |
[out] | output_buffer | Buffer where data will be recorded. |
Read multiple sectors to a memory location.
This function initialize and spins the disk to retrieve data.
fad | FAD to start reading from. | |
[out] | output_buffer | Buffer where data will be recorded. |
length | Length of buffer in bytes. |
int cd_block_cmd_status_get | ( | cd_block_status_t * | cd_status | ) |
Not yet documented.
cd_status |
int cd_block_cmd_get_hw_info_get | ( | cd_block_hardware_info_t * | info | ) |
Not yet documented.
info |
Not yet documented.
cd_status | |
toc_size |
int cd_block_cmd_session_info_get | ( | uint8_t | session_number, |
uint8_t * | cd_status, | ||
uint8_t * | num_sessions, | ||
uint32_t * | session_lba | ||
) |
Not yet documented.
session_number | |
cd_status | |
num_sessions | |
session_lba |
int cd_block_cmd_cd_system_init | ( | int16_t | standby | ) |
Not yet documented.
standby |
int cd_block_cmd_tray_open | ( | int16_t | standby | ) |
Not yet documented.
standby |
int cd_block_cmd_data_transfer_end | ( | void | ) |
Not yet documented.
Not yet documented.
mode | |
start_fad | |
num_sectors |
int cd_block_cmd_disk_seek | ( | uint32_t | start_play_pos | ) |
Not yet documented.
start_play_pos |
Not yet documented.
scan_direction | |
cd_status |
int cd_block_cmd_subcode_get | ( | uint8_t | type, |
uint8_t * | cd_status, | ||
uint16_t * | size_in_words, | ||
uint16_t * | flags | ||
) |
Not yet documented.
type | |
cd_status | |
size_in_words | |
flags |
int cd_block_cmd_cd_dev_connection_set | ( | uint8_t | filter | ) |
Not yet documented.
filter |
Not yet documented.
cd_status | |
filter_number |
Not yet documented.
cd_status | |
buffer_number |
Not yet documented.
filter | |
fad | |
range |
int cd_block_cmd_filter_subheader_conditions_set | ( | uint8_t | channel, |
uint8_t | submode_mask, | ||
uint8_t | code_info_mask, | ||
uint8_t | filter_number, | ||
uint8_t | file_id, | ||
uint8_t | sub_mode_val, | ||
uint8_t | code_info_val | ||
) |
Not yet documented.
channel | |
submode_mask | |
code_info_mask | |
filter_number | |
file_id | |
sub_mode_val | |
code_info_val |
Not yet documented.
mode | |
filter_number |
int cd_block_cmd_filter_connection_set | ( | uint8_t | conn_number, |
uint8_t | true_conn, | ||
uint8_t | false_conn, | ||
uint16_t | filter_number | ||
) |
Not yet documented.
conn_number | |
true_conn | |
false_conn | |
filter_number |
Not yet documented.
flags | |
sel_number |
int cd_block_cmd_buffer_size_get | ( | uint8_t * | cd_status, |
uint16_t * | block_free_space, | ||
uint8_t * | max_selectors, | ||
uint16_t * | max_blocks | ||
) |
Not yet documented.
[in] | cd_status | |
[in] | block_free_space | |
[in] | max_selectors | |
[in] | max_blocks |
int cd_block_cmd_sector_number_get | ( | uint8_t | buffer_number | ) |
Not yet documented.
buffer_number |
int cd_block_cmd_sector_length_set | ( | uint8_t | size | ) |
Not yet documented.
size |
int cd_block_cmd_sector_data_get | ( | uint16_t | sector_offset, |
uint8_t | buffer_number, | ||
uint16_t | sector_number | ||
) |
Not yet documented.
sector_offset | |
buffer_number | |
sector_number |
int cd_block_cmd_sector_data_delete | ( | uint16_t | sector_position, |
uint8_t | buffer_number, | ||
uint16_t | sector_number | ||
) |
Not yet documented.
sector_position | |
buffer_number | |
sector_number |
int cd_block_cmd_sector_data_get_delete | ( | uint16_t | offset, |
uint8_t | buffer_number, | ||
uint16_t | sector_number | ||
) |
Not yet documented.
offset | |
buffer_number | |
sector_number |
Not yet documented.
buffer_number | |
sector_number |
int cd_block_cmd_sector_data_copy | ( | uint8_t | dst_filter, |
uint16_t | sector_offset, | ||
uint8_t | buffer_number, | ||
uint16_t | sector_number | ||
) |
Not yet documented.
dst_filter | |
sector_offset | |
buffer_number | |
sector_number |
int cd_block_cmd_sector_data_move | ( | uint8_t | dst_filter, |
uint16_t | sector_offset, | ||
uint8_t | buffer_number, | ||
uint16_t | sector_number | ||
) |
Not yet documented.
dst_filter | |
sector_offset | |
buffer_number | |
sector_number |
int cd_block_cmd_file_abort | ( | void | ) |
Not yet documented.
int cd_block_cmd_disk_auth | ( | void | ) |
Not yet documented.
int cd_block_cmd_auth_check | ( | uint16_t * | disk_type_auth | ) |
Not yet documented.
disk_type_auth |
int cd_block_cmd_execute | ( | cd_block_ioregs_t * | regs, |
cd_block_ioregs_t * | status | ||
) |
Not yet documented.
[in] | regs | |
[out] | status |