diff options
| author | Legolas <Legolas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2019-06-12 16:35:25 +0000 |
|---|---|---|
| committer | Legolas <Legolas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2019-06-12 16:35:25 +0000 |
| commit | 1afd2ebd0a8eeebe2f29e9430010bc5b6faa726d (patch) | |
| tree | cab1daa4e0faebdc12e8d2dd23e98513634db337 /packages/libogcfpc/src/sdcard | |
| parent | 60a46b2058d52570d02f36c6fa6cbb16a791fceb (diff) | |
| download | fpc-1afd2ebd0a8eeebe2f29e9430010bc5b6faa726d.tar.gz | |
* Updated Wii port to libogc 1.8.22
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@42216 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/libogcfpc/src/sdcard')
| -rw-r--r-- | packages/libogcfpc/src/sdcard/card_io.inc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/libogcfpc/src/sdcard/card_io.inc b/packages/libogcfpc/src/sdcard/card_io.inc index eff81375d5..6f081fdc91 100644 --- a/packages/libogcfpc/src/sdcard/card_io.inc +++ b/packages/libogcfpc/src/sdcard/card_io.inc @@ -17,6 +17,11 @@ const {$define C_SIZE(drv_no) := (cuint16(((g_CSD[drv_no][6] and $03) shl 10) or (g_CSD[drv_no][7] shl 2) or ((g_CSD[drv_no][8] shr 6) and $03)))} {$define C_SIZE_MULT(drv_no) := (cuint8((g_CSD[drv_no][9] and $03) shl 1) or ((g_CSD[drv_no][10] shr 7) and $01))} +type + card_addressing_type_t = cuint32; +const + CARD_IO_SECTOR_ADDRESSING: card_addressing_type_t = 0; + CARD_IO_BYTE_ADDRESSING: card_addressing_type_t = 1; var g_CSD : array [0..15] of cuint8; external; @@ -40,6 +45,15 @@ function sdgecko_writeSectors(drv_no: cint32; sector_no, num_sectors: cuint32; function sdgecko_doUnmount(drv_no: cint32): cint32; cdecl; external; procedure sdgecko_insertedCB(drv_no: cint32); cdecl; external; procedure sdgecko_ejectedCB(drv_no: cint32); cdecl; external; + +procedure sdgecko_setSpeed(freq: cuint32); cdecl; external; + +function sdgecko_getPageSize(drv_no: cint32): cuint32; cdecl; external; +function sdgecko_setPageSize(drv_no: cint32; size: cint): cuint32; cdecl; external; + +function sdgecko_getAddressingType(drv_no: cint32): card_addressing_type_t; cdecl; external; + + {$ENDIF} |
