added missing function xhdi_reaccess()

This commit is contained in:
Markus Fröschle
2013-05-01 11:00:27 +00:00
parent 5b4204a1d8
commit eeead8f74a
3 changed files with 20 additions and 1 deletions

View File

@@ -28,6 +28,7 @@
#define XHDI_MINT_INFO 16
#define XHDI_DOS_LIMITS 17
#define XHDI_LAST_ACCESS 18
#define XHDI_REACCESS 19
/* XHDI error codes */
@@ -93,5 +94,5 @@ extern uint32_t xhdi_medium_changed(UINT16_T major, UINT16_T minor); /* XHDI 15
extern uint32_t xhdi_mint_info(UINT16_T opcode, void *data); /* XHDI 16 */
extern uint32_t xhdi_dos_limits(UINT16_T which, uint32_t limit); /* XHDI 17 */
extern uint32_t xhdi_last_access(UINT16_T major, UINT16_T minor, uint32_t *ms); /* XHDI 18 */
extern uint32_t xhdi_reaccess(UINT16_T major, UINT16_T minor); /* XHDI 19 */
#endif /* _XHDI_SD_H_ */

View File

@@ -302,7 +302,20 @@ uint32_t xhdi_call(int xhdi_fun, ...)
}
break;
case XHDI_REACCESS:
{
uint16_t major;
uint16_t minor;
major = va_arg(arguments, unsigned int);
minor = va_arg(arguments, unsigned int);
return xhdi_reaccess(major, minor);
}
break;
default:
;
}
xprintf("unknown XHDI function %d\r\n");

View File

@@ -120,3 +120,8 @@ uint32_t xhdi_last_access(UINT16_T major, UINT16_T minor, uint32_t *ms)
{
return ERROR;
}
uint32_t xhdi_reaccess(UINT16_T major, UINT16_T minor)
{
return ERROR;
}