1/*
2 * OpenBOR - http://www.LavaLit.com
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in OpenBOR root for details.
5 *
6 * Copyright (c) 2004 - 2011 OpenBOR Team
7 */
8
9  .globl  _bios_gdGdcReqCmd, _bios_gdGdcGetCmdStat, _bios_gdGdcExecServer
10  .globl  _bios_gdGdcInitSystem, _bios_gdGdcGetDrvStat, _bios_gdGdcG1DmaEnd
11  .globl  _bios_gdGdcReqDmaTrans, _bios_gdGdcCheckDmaTrans, _bios_gdGdcReadAbort
12  .globl  _bios_gdGdcReset, _bios_gdGdcChangeDataType
13
14  .text
15
16_bios_gdGdcReqCmd:
17  bra do_syscall
18  mov #0,r7
19
20_bios_gdGdcGetCmdStat:
21  bra do_syscall
22  mov #1,r7
23
24_bios_gdGdcExecServer:
25  bra do_syscall
26  mov #2,r7
27
28_bios_gdGdcInitSystem:
29  bra do_syscall
30  mov #3,r7
31
32_bios_gdGdcGetDrvStat:
33  bra do_syscall
34  mov #4,r7
35
36_bios_gdGdcG1DmaEnd:
37  bra do_syscall
38  mov #5,r7
39
40_bios_gdGdcReqDmaTrans:
41  bra do_syscall
42  mov #6,r7
43
44_bios_gdGdcCheckDmaTrans:
45  bra do_syscall
46  mov #7,r7
47
48_bios_gdGdcReadAbort:
49  bra do_syscall
50  mov #8,r7
51
52_bios_gdGdcReset:
53  bra do_syscall
54  mov #9,r7
55
56_bios_gdGdcChangeDataType:
57  mov #10,r7
58
59do_syscall:
60  mov.l sysvec_bc,r0
61  mov #0,r6
62  mov.l @r0,r0
63  jmp @r0
64  nop
65
66  .align 2,0
67sysvec_bc:
68  .long 0x8C0000BC
69
70  .end
71