Download Manual

Transcript
ERTFS User Guide
Section 27: Adding Your Own Device Drivers.............................................................................................................................. 57
Section 27.1: The Device block data transfer function......................................................................................................... 57
Section 27.2: The Device I/O control function...................................................................................................................... 57
Section 27.3: I/O Control op-code DEVCTL_WARMSTART................................................................................................ 57
Section 27.3.1: Passing parameters to the device driver .................................................................................................... 58
Section 29.3.2: State flags used by the device driver.......................................................................................................... 58
Section 27.4: I/O Control op-code DEVCTL_CHECKSTATUS............................................................................................ 59
Section 27.5: I/O Control op-code DEVCTL_REPORT_REMOVE...................................................................................... 59
Section 29.5.1: Example Card removal event handler ........................................................................................................ 59
Section 27.6: I/O Control processing for DEVCTL_POWER_LOSS.................................................................................... 60
Section 27.7: I/O Control op-code DEVCTL_REPORT_RESTORE.................................................................................... 60
Section 27.8: I/O Control op-code DEVCTL_GET_GEOMETRY......................................................................................... 60
Section 27.9: I/O Control op-code DEVCTL_FORMAT........................................................................................................ 60
Section 28: ERTFS Application Programmers Interface............................................................................................................... 61
pc_ertfs_init........................................................................................................................................................................... 63
pc_ertfs_config...................................................................................................................................................................... 64
pc_free_user......................................................................................................................................................................... 65
pc_set_cwd........................................................................................................................................................................... 66
pc_set_default_drive............................................................................................................................................................. 67
pc_pwd.................................................................................................................................................................................. 68
pc_gfirst................................................................................................................................................................................. 69
pc_gnext................................................................................................................................................................................ 70
pc_gdone.............................................................................................................................................................................. 71
pc_enumerate....................................................................................................................................................................... 72
get_errno............................................................................................................................................................................... 74
rtfs_set_driver_errno............................................................................................................................................................. 75
rtfs_get_driver_errno............................................................................................................................................................. 76
pc_free.................................................................................................................................................................................. 77
pc_get_attributes................................................................................................................................................................... 78
pc_isdir.................................................................................................................................................................................. 79
pc_isvol................................................................................................................................................................................. 80
pc_stat................................................................................................................................................................................... 81
pc_fstat.................................................................................................................................................................................. 83
pc_check_disk....................................................................................................................................................................... 85
pc_mkdir................................................................................................................................................................................ 86
pc_mv.................................................................................................................................................................................... 87
pc_rmdir................................................................................................................................................................................ 88
pc_deltree............................................................................................................................................................................. 89
pc_set_attributes................................................................................................................................................................... 90
pc_unlink............................................................................................................................................................................... 91
pc_diskflush()........................................................................................................................................................................ 92
po_open................................................................................................................................................................................ 93
po_close................................................................................................................................................................................ 94
po_flush................................................................................................................................................................................. 95
po_read................................................................................................................................................................................. 96
po_write................................................................................................................................................................................. 97
po_lseek................................................................................................................................................................................ 98
po_ulseek.............................................................................................................................................................................. 99
po_chsize............................................................................................................................................................................ 100
po_truncate......................................................................................................................................................................... 101
pc_get_media_parms()....................................................................................................................................................... 102
pc_partition_media.............................................................................................................................................................. 103
pc_format_media................................................................................................................................................................ 104
pc_format_volume............................................................................................................................................................... 105
pc_cluster_size................................................................................................................................................................... 108
pc_get_file_extents............................................................................................................................................................. 109
pc_get_free_list................................................................................................................................................................... 110
pc_raw_read........................................................................................................................................................................111
pc_raw_write()..................................................................................................................................................................... 112
po_extend_file().................................................................................................................................................................. 113
pc_regression_test.............................................................................................................................................................. 114
tst_shell............................................................................................................................................................................... 115
Table of Contents