rktraps.h 7.77 KB
#ifndef __TV_rktraps_h_
#define __TV_rktraps_h_

#include "rkapi.h"

/* RiscKernel system call trap #'s */
#define __TV_TRAP_tvDestroyID			( 0 + __TV_TRAP_BASE)
#define __TV_TRAP_tvShare			( 1 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetNumCapabilities		( 2 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetCapabilities		( 3 + __TV_TRAP_BASE)

#define __TV_TRAP_tvSend			( 4 + __TV_TRAP_BASE)
#define __TV_TRAP_tvReceive			( 5 + __TV_TRAP_BASE)
#define __TV_TRAP_tvPoll			( 6 + __TV_TRAP_BASE)

#define __TV_TRAP_tvCreateSet			( 7 + __TV_TRAP_BASE)
#define __TV_TRAP_tvAddElement			( 8 + __TV_TRAP_BASE)
#define __TV_TRAP_tvRemoveElement		( 9 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetSetSize			(10 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetSetElements		(11 + __TV_TRAP_BASE)

#define __TV_TRAP_tvCreateQueue                 (12 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetQueueLimit		(13 + __TV_TRAP_BASE)
#define __TV_TRAP_tvSetQueueLimit		(14 + __TV_TRAP_BASE)

#define __TV_TRAP_tvCreateProcess		(15 + __TV_TRAP_BASE)
#define __TV_TRAP_tvKillProcess			(16 + __TV_TRAP_BASE)
#define __TV_TRAP_tvStartProcess		(17 + __TV_TRAP_BASE)
#define __TV_TRAP_tvStopProcess			(18 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetProcessID		(19 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetThreadSet		(20 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetRegionSet		(21 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetRegionVirtualAddress	(22 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetProcessName		(23 + __TV_TRAP_BASE)

#define __TV_TRAP_tvCreateThread		(24 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetThreadID			(25 + __TV_TRAP_BASE)
#define __TV_TRAP_tvStartThread			(26 + __TV_TRAP_BASE)
#define __TV_TRAP_tvStopThread			(27 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetThreadState		(28 + __TV_TRAP_BASE)
#define __TV_TRAP_tvSetPriority			(29 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetPriority			(30 + __TV_TRAP_BASE)
#define __TV_TRAP_tvSetHandler			(31 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetHandler			(32 + __TV_TRAP_BASE)
#define __TV_TRAP_tvYield			(33 + __TV_TRAP_BASE)

#define __TV_TRAP_tvCreateRegion		(34 + __TV_TRAP_BASE)
#define __TV_TRAP_tvMapRegion			(35 + __TV_TRAP_BASE)
#define __TV_TRAP_tvUnmapRegion			(36 + __TV_TRAP_BASE)
#define __TV_TRAP_tvChangeRegion		(37 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetRegionFlags		(38 + __TV_TRAP_BASE)
#define __TV_TRAP_tvResizeRegion		(39 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetRegionSize		(40 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetRegionPhysicalAddress	(41 + __TV_TRAP_BASE)

#define __TV_TRAP_tvCreateTimer			(42 + __TV_TRAP_BASE)
#define __TV_TRAP_tvStartTimer			(43 + __TV_TRAP_BASE)
#define __TV_TRAP_tvStopTimer			(44 + __TV_TRAP_BASE)
#define __TV_TRAP_tvChangeTimer			(45 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetTimerFlags		(46 + __TV_TRAP_BASE)
#define __TV_TRAP_tvSetDuration			(47 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetDuration			(48 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetCurrentTime		(49 + __TV_TRAP_BASE)
#define __TV_TRAP_tvSetCurrentTime		(50 + __TV_TRAP_BASE)

#define __TV_TRAP_tvCreateLock			(51 + __TV_TRAP_BASE)
#define __TV_TRAP_tvLock			(52 + __TV_TRAP_BASE)
#define __TV_TRAP_tvUnlock			(53 + __TV_TRAP_BASE)
#define __TV_TRAP_tvTryLock			(54 + __TV_TRAP_BASE)
#define __TV_TRAP_tvTestLock			(55 + __TV_TRAP_BASE)

#define __TV_TRAP_tvCreateBuffer		(56 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetBufferLength		(57 + __TV_TRAP_BASE)
#define __TV_TRAP_tvCopyBuffer			(58 + __TV_TRAP_BASE)

#define __TV_MAX_TRAP				59

/* Driver trap #'s */
#define	__TV_TRAP_tvProfile			( 0 + __TV_MAX_TRAP)
#define	__TV_TRAP_tvGetThreadUsage		( 1 + __TV_MAX_TRAP)

#define __TV_TRAP_tvOpenVideoInput		( 2 + __TV_MAX_TRAP)
#define __TV_TRAP_tvResetVideoInput		( 3 + __TV_MAX_TRAP)
#define __TV_TRAP_tvSetVideoInputFlags		( 4 + __TV_MAX_TRAP)
#define __TV_TRAP_tvGetVideoInputFlags		( 5 + __TV_MAX_TRAP)

#define __TV_TRAP_tvOpenControlPanel		( 6 + __TV_MAX_TRAP)
#define __TV_TRAP_tvPowerOff			( 7 + __TV_MAX_TRAP)

#define __TV_TRAP_tvSetRetraceHandler		( 8 + __TV_MAX_TRAP)
#define __TV_TRAP_tvSetTopscan			( 9 + __TV_MAX_TRAP)
#define __TV_TRAP_tvGraphicsDma			(10 + __TV_MAX_TRAP)

#define __TV_TRAP_tvOpenAudioPort		(11 + __TV_MAX_TRAP)
#define __TV_TRAP_tvStartAudio			(12 + __TV_MAX_TRAP)
#define __TV_TRAP_tvStopAudio			(13 + __TV_MAX_TRAP)
#define __TV_TRAP_tvWriteSamples		(14 + __TV_MAX_TRAP)
#define __TV_TRAP_tvReadSamples		        (15 + __TV_MAX_TRAP)
#define __TV_TRAP_tvSetAudioConfig              (16 + __TV_MAX_TRAP)
#define __TV_TRAP_tvGetAudioConfig              (17 + __TV_MAX_TRAP)
#define __TV_TRAP_tvSetAudioDevConfig           (18 + __TV_MAX_TRAP)
#define __TV_TRAP_tvGetAudioDevConfig           (19 + __TV_MAX_TRAP)

#define __TV_TRAP_tvOpenSerial                  (20 + __TV_MAX_TRAP)
#define __TV_TRAP_tvWriteSerial                 (21 + __TV_MAX_TRAP)
#define __TV_TRAP_tvSetSerialConfig             (22 + __TV_MAX_TRAP)
#define __TV_TRAP_tvGetSerialConfig             (23 + __TV_MAX_TRAP)

#define	__TV_TRAP_tvOpenAdec			(24 + __TV_MAX_TRAP)
#define	__TV_TRAP_tvWriteAdec			(25 + __TV_MAX_TRAP)
#define	__TV_TRAP_tvCtrlAdec			(26 + __TV_MAX_TRAP)

#define __TV_TRAP_tvOpenS35			(27 + __TV_MAX_TRAP)
#define __TV_TRAP_tvWriteVdec			(28 + __TV_MAX_TRAP)
#define	__TV_TRAP_tvCtrlVdec			(29 + __TV_MAX_TRAP)

#define __TV_TRAP_accept			(30 + __TV_MAX_TRAP)
#define __TV_TRAP_bind				(31 + __TV_MAX_TRAP)
#define __TV_TRAP_connect			(32 + __TV_MAX_TRAP)
#define __TV_TRAP_getsockname			(33 + __TV_MAX_TRAP)
#define __TV_TRAP_ioctl				(34 + __TV_MAX_TRAP)
#define __TV_TRAP_listen			(35 + __TV_MAX_TRAP)
#define __TV_TRAP_recv				(36 + __TV_MAX_TRAP)
#define __TV_TRAP_recvfrom			(37 + __TV_MAX_TRAP)
#define __TV_TRAP_send				(38 + __TV_MAX_TRAP)
#define __TV_TRAP_sendto			(39 + __TV_MAX_TRAP)
#define __TV_TRAP_socket			(40 + __TV_MAX_TRAP)

#define __TV_TRAP_getpeername			(41 + __TV_MAX_TRAP)
#define __TV_TRAP_getsockopt			(42 + __TV_MAX_TRAP)
#define __TV_TRAP_setsockopt			(43 + __TV_MAX_TRAP)
#define __TV_TRAP_recvmsg			(44 + __TV_MAX_TRAP)
#define __TV_TRAP_sendmsg			(45 + __TV_MAX_TRAP)
#define __TV_TRAP_shutdown			(46 + __TV_MAX_TRAP)

#define __TV_TRAP_tvOpenStats			(47 + __TV_MAX_TRAP)
#define __TV_TRAP_tvResetStats			(48 + __TV_MAX_TRAP)

#define __TV_TRAP_tvOpenCent			(49 + __TV_MAX_TRAP)
#define __TV_TRAP_tvWriteCent			(50 + __TV_MAX_TRAP)
#define __TV_TRAP_tvCtrlCent			(51 + __TV_MAX_TRAP)

#define __TV_TRAP_tvDrainSocket			(52 + __TV_MAX_TRAP)

#define __TV_TRAP_tvOpenAtm			(53 + __TV_MAX_TRAP)
#define __TV_TRAP_tvReadAtm			(54 + __TV_MAX_TRAP)
#define __TV_TRAP_tvWriteAtm			(55 + __TV_MAX_TRAP)
#define __TV_TRAP_tvSetAtm			(56 + __TV_MAX_TRAP)
#define __TV_TRAP_tvGetAtm			(57 + __TV_MAX_TRAP)
#define __TV_TRAP_tvDrainAtm			(58 + __TV_MAX_TRAP)

#define	__TV_TRAP_tvOpenSa			(59 + __TV_MAX_TRAP)
#define	__TV_TRAP_tvCtrlSa			(60 + __TV_MAX_TRAP)
#define	__TV_TRAP_tvStatSa			(61 + __TV_MAX_TRAP)
#define	__TV_TRAP_tvOpenAtv			(62 + __TV_MAX_TRAP)
#define	__TV_TRAP_tvCtrlAtv			(63 + __TV_MAX_TRAP)
#define	__TV_TRAP_tvOpenVcxo			(64 + __TV_MAX_TRAP)
#define	__TV_TRAP_tvSetVcxo			(65 + __TV_MAX_TRAP)
#define	__TV_TRAP_tvSetMpegCnt			(66 + __TV_MAX_TRAP)
#define	__TV_TRAP_tvGetMpegCnt			(67 + __TV_MAX_TRAP)

#define	__TV_TRAP_tvSetTLSAddr			(68 + __TV_MAX_TRAP)
#define	__TV_TRAP_tvGetTLSAddr			(69 + __TV_MAX_TRAP)

#define	__TV_TRAP_tvGetNv			(70 + __TV_MAX_TRAP)
#define	__TV_TRAP_tvSetNv			(71 + __TV_MAX_TRAP)

#define	__TV_TRAP___tvGetConfig			(72 + __TV_MAX_TRAP)
#define	__TV_TRAP_tvReadCrash			(73 + __TV_MAX_TRAP)

#define	__TV_TRAP_tvLogSetMask			(74 + __TV_MAX_TRAP)
#define	__TV_TRAP_tvLogClearMask		(75 + __TV_MAX_TRAP)

#define	__TV_TRAP___tvLogGetMaskPhyAddr		(76 + __TV_MAX_TRAP)
#define	__TV_TRAP_tvLogReadBuffer		(77 + __TV_MAX_TRAP)
#define	__TV_TRAP_tvLogControl			(78 + __TV_MAX_TRAP)

#define	__TV_TRAP_tvGenLock			(79 + __TV_MAX_TRAP)
#define	__TV_TRAP_tvProm			(80 + __TV_MAX_TRAP)

#define __TV_FSN_MAX_TRAP	(__TV_MAX_TRAP + 81)

#endif /* __TV_rktraps_h_ */