279 280typedef struct tag_TAU32_Controller TAU32_Controller; 281typedef struct tag_TAU32_UserRequest TAU32_UserRequest; 282typedef struct tag_TAU32_UserContext TAU32_UserContext; 283typedef union tag_TAU32_tsc TAU32_tsc; 284typedef struct tag_TAU32_FlatIoContext TAU32_FlatIoContext; 285typedef void(TAU32_CALLBACK_TYPE *TAU32_RequestCallback)(TAU32_UserContext *pContext, TAU32_UserRequest *pUserRequest); 286typedef void(TAU32_CALLBACK_TYPE *TAU32_NotifyCallback)(TAU32_UserContext *pContext, int Item, unsigned NotifyBits); 287typedef void(TAU32_CALLBACK_TYPE *TAU32_FifoTrigger)(TAU32_UserContext *pContext, int Interface, unsigned FifoId, unsigned Level); 288typedef void(TAU32_CALLBACK_TYPE *TAU32_FlatIoCallback)(TAU32_UserContext *pContext, TAU32_FlatIoContext *pFlatIoContext); 289 290union tag_TAU32_tsc 291{ 292 unsigned __int32 osc, sync; 293}; 294 295struct tag_TAU32_FlatIoContext 296{ 297 void *pInternal; 298 PCI_PHYSICAL_ADDRESS PhysicalBufferAddress; 299 unsigned Channel, ItemsCount, EachItemBufferSize; 300 unsigned Received, ActualOffset, Errors; 301#if defined(_NTDDK_) 302 KDPC CallbackDpc; 303 void SetupCallback(PKDEFERRED_ROUTINE DeferredCallbackRoutine, void* pContext) 304 { 305 CallbackDpc.DeferredRoutine = DeferredCallbackRoutine; 306 CallbackDpc.DeferredContext = pContext; 307 } 308 void SetupCallback(TAU32_FlatIoCallback pCallback) 309 { 310 CallbackDpc.DeferredRoutine = (PKDEFERRED_ROUTINE) pCallback; 311 CallbackDpc.DeferredContext = 0; 312 } 313#else 314 TAU32_FlatIoCallback pCallback; 315#endif 316}; 317 318/* TAU32_FIFO_ID */ 319#define TAU32_FifoId_CasRx 0u 320#define TAU32_FifoId_CasTx 1u 321#define TAU32_FifoId_FasRx 2u 322#define TAU32_FifoId_FasTx 3u 323#define TAU32_FifoId_Max 4u 324 325typedef struct tag_TAU32_E1_State 326{ 327 unsigned __int32 TickCounter; 328 unsigned __int32 RxViolations; 329 unsigned __int32 Crc4Errors; 330 unsigned __int32 FarEndBlockErrors; 331 unsigned __int32 FasErrors; 332 unsigned __int32 TransmitSlips; 333 unsigned __int32 ReceiveSlips; 334 unsigned __int32 Status; 335 unsigned __int32 FifoSlip[TAU32_FifoId_Max]; 336} TAU32_E1_State; 337 338struct tag_TAU32_UserContext 339{ 340 /* fields provided by user for for TAU32_Initiaize() */ 341 TAU32_Controller *pControllerObject; 342 PCI_PHYSICAL_ADDRESS ControllerObjectPhysicalAddress; 343 void *PciBar1VirtualAddress; 344 TAU32_NotifyCallback pErrorNotifyCallback; 345 TAU32_NotifyCallback pStatusNotifyCallback; 346#if defined(_NTDDK_) 347 PKINTERRUPT InterruptObject; 348#endif 349 /* TODO: remove from release */ 350 #define TAU32_CUSTOM_FIRMWARE 351 #ifdef TAU32_CUSTOM_FIRMWARE 352 void *pCustomFirmware; 353 unsigned CustomFirmwareSize; 354 #endif 355 /* fields filled by TAU32_Initiaize() */ 356 int Model; 357 int Interfaces; 358 unsigned InitErrors; 359 unsigned __int32 DeadBits; 360 361 /* fields managed by DDK */ 362 unsigned AdapterStatus; 363 unsigned CasIoLofCount; 364 unsigned E1IntLostCount; 365 unsigned CableTypeJumpers; 366 TAU32_E1_State InterfacesInfo[TAU32_MAX_INTERFACES]; 367 368 /* fields which are't used by DDK, but nice for user */ 369#ifdef TAU32_UserContext_Add 370 TAU32_UserContext_Add 371#endif 372}; 373 374struct tag_TAU32_UserRequest 375{ 376 /* required fields */ 377 void *pInternal; /* internal */ 378 unsigned Command; /* in */ 379#if defined(_NTDDK_) 380 KDPC CallbackDpc; 381 void SetupCallback(PKDEFERRED_ROUTINE DeferredCallbackRoutine, void* pContext) 382 { 383 CallbackDpc.DeferredRoutine = DeferredCallbackRoutine; 384 CallbackDpc.DeferredContext = pContext; 385 } 386 void SetupCallback(TAU32_RequestCallback pCallback) 387 { 388 CallbackDpc.DeferredRoutine = (PKDEFERRED_ROUTINE) pCallback; 389 CallbackDpc.DeferredContext = 0; 390 } 391#else 392 TAU32_RequestCallback pCallback; /* in */ 393#endif 394 unsigned __int32 ErrorCode; /* out */ 395 396 union 397 { 398 unsigned ChannelNumber; /* just common field */ 399 400 struct 401 { 402 unsigned Channel; /* in */ 403 unsigned __int32 Config; /* in */ 404 unsigned __int32 AssignedTsMask; /* build channel from timeslots which is selected by mask */ 405 } ChannelConfig; 406 407 struct 408 { 409 int Interface; 410 unsigned __int32 Config; /* in */ 411 unsigned __int32 UnframedTsMask; 412 } InterfaceConfig; 413 414 struct 415 { 416 unsigned Channel; /* in */ 417 PCI_PHYSICAL_ADDRESS PhysicalDataAddress; /* in */ 418 unsigned DataLength; /* in */ 419 unsigned Transmitted; /* out */ 420 } Tx; 421 422 struct 423 { 424 unsigned Channel; /* in */ 425 PCI_PHYSICAL_ADDRESS PhysicalDataAddress; /* in */ 426 unsigned BufferLength; /* in */ 427 unsigned Received; /* out */ 428 BOOLEAN FrameEnd; /* out */ 429 } Rx; 430 431 BOOLEAN DigitalLoop; /* in, loop by PEB */ 432 433 union 434 { 435 TAU32_TimeslotAssignment Complete[TAU32_TIMESLOTS]; 436 unsigned __int32 Map[TAU32_CHANNELS]; 437 } TimeslotsAssignment; 438 } Io; 439 440 /* fields which are't used by DDK, but nice for user */ 441#ifdef TAU32_UserRequest_Add 442 TAU32_UserRequest_Add 443#endif 444}; 445 446#define TAU32_IS_REQUEST_RUNNING(pUserRequest) ((pUserRequest)->pInternal != NULL) 447#define TAU32_IS_REQUEST_NOT_RUNNING(pUserRequest) ((pUserRequest)->pInternal == NULL) 448 449#ifndef TAU32_DDK_DLL 450# if defined(_NTDDK_) 451# ifdef TAU32_DDK_IMP 452# define TAU32_DDK_DLL __declspec(dllexport) 453# else 454# define TAU32_DDK_DLL __declspec(dllimport) 455# endif 456# else 457# define TAU32_DDK_DLL 458# endif 459#endif 460 461#ifdef __cplusplus 462extern "C" 463{ 464#endif 465 void TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_BeforeReset(TAU32_UserContext *pUserContext); 466 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_Initialize(TAU32_UserContext *pUserContext, BOOLEAN CronyxDiag); 467 void TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_DestructiveHalt(TAU32_Controller *pControllerObject, BOOLEAN CancelRequests); 468 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_IsInterruptPending(TAU32_Controller *pControllerObject); 469 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_HandleInterrupt(TAU32_Controller *pControllerObject); 470 extern unsigned const TAU32_ControllerObjectSize; 471 472 /* LY: ��� ������� ����, ����� �������������� ���������� �� callback-�� */ 473 void TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_EnableInterrupts(TAU32_Controller *pControllerObject); 474 void TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_DisableInterrupts(TAU32_Controller *pControllerObject); 475 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_SubmitRequest(TAU32_Controller *pControllerObject, TAU32_UserRequest *pRequest); 476 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_CancelRequest(TAU32_Controller *pControllerObject, TAU32_UserRequest *pRequest, BOOLEAN BreakIfRunning); 477 void TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_LedBlink(TAU32_Controller *pControllerObject); 478 void TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_LedSet(TAU32_Controller *pControllerObject, BOOLEAN On); 479 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_SetCasIo(TAU32_Controller *pControllerObject, BOOLEAN Enabled); 480 unsigned __int64 TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_ProbeGeneratorFrequency(unsigned __int64 Frequency); 481 unsigned __int64 TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_SetGeneratorFrequency(TAU32_Controller *pControllerObject, unsigned __int64 Frequency); 482 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_SetSyncMode(TAU32_Controller *pControllerObject, unsigned Mode); 483 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_SetCrossMatrix(TAU32_Controller *pControllerObject, unsigned __int8 *pCrossMatrix, unsigned __int32 ReverseMask); 484 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_SetIdleCodes(TAU32_Controller *pControllerObject, unsigned __int8 *pIdleCodes); 485 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_UpdateIdleCodes(TAU32_Controller *pControllerObject, int Interface, unsigned __int32 TimeslotMask, unsigned __int8 IdleCode); 486 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_SetSaCross(TAU32_Controller *pControllerObject, TAU32_SaCross SaCross); 487 int TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_FifoPutCasAppend(TAU32_Controller *pControllerObject, int Interface, unsigned __int8 *pBuffer, unsigned Length); 488 int TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_FifoPutCasAhead(TAU32_Controller *pControllerObject, int Interface, unsigned __int8 *pBuffer, unsigned Length); 489 int TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_FifoGetCas(TAU32_Controller *pControllerObject, int Interface, unsigned __int8 *pBuffer, unsigned Length); 490 int TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_FifoPutFasAppend(TAU32_Controller *pControllerObject, int Interface, unsigned __int8 *pBuffer, unsigned Length); 491 int TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_FifoPutFasAhead(TAU32_Controller *pControllerObject, int Interface, unsigned __int8 *pBuffer, unsigned Length); 492 int TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_FifoGetFas(TAU32_Controller *pControllerObject, int Interface, unsigned __int8 *pBuffer, unsigned Length); 493 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_SetFifoTrigger(TAU32_Controller *pControllerObject, int Interface, unsigned FifoId, unsigned Level, TAU32_FifoTrigger Trigger); 494 void TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_ReadTsc(TAU32_Controller *pControllerObject, TAU32_tsc *pResult); 495 496 /* for Cronyx Engineering use only !!! */ 497 #define TAU32_CRONYX_P 0 498 #define TAU32_CRONYX_PS 1 499 #define TAU32_CRONYX_PA 2 500 #define TAU32_CRONYX_PB 3 501 #define TAU32_CRONYX_I 4 502 #define TAU32_CRONYX_O 5 503 #define TAU32_CRONYX_U 6 504 #define TAU32_CRONYX_R 7 505 #define TAU32_CRONYX_W 8 506 #define TAU32_CRONYX_RW 9 507 #define TAU32_CRONYX_WR 10 508 #define TAU32_CRONYX_S 11 509 #define TAU32_CRONYX_G 12 510 unsigned __int32 TAU32_CALL_TYPE TAU32_Diag(TAU32_Controller *pControllerObject, unsigned Operation, unsigned __int32 Data); 511 512#ifdef __cplusplus 513} 514#endif
| 281 282typedef struct tag_TAU32_Controller TAU32_Controller; 283typedef struct tag_TAU32_UserRequest TAU32_UserRequest; 284typedef struct tag_TAU32_UserContext TAU32_UserContext; 285typedef union tag_TAU32_tsc TAU32_tsc; 286typedef struct tag_TAU32_FlatIoContext TAU32_FlatIoContext; 287typedef void(TAU32_CALLBACK_TYPE *TAU32_RequestCallback)(TAU32_UserContext *pContext, TAU32_UserRequest *pUserRequest); 288typedef void(TAU32_CALLBACK_TYPE *TAU32_NotifyCallback)(TAU32_UserContext *pContext, int Item, unsigned NotifyBits); 289typedef void(TAU32_CALLBACK_TYPE *TAU32_FifoTrigger)(TAU32_UserContext *pContext, int Interface, unsigned FifoId, unsigned Level); 290typedef void(TAU32_CALLBACK_TYPE *TAU32_FlatIoCallback)(TAU32_UserContext *pContext, TAU32_FlatIoContext *pFlatIoContext); 291 292union tag_TAU32_tsc 293{ 294 unsigned __int32 osc, sync; 295}; 296 297struct tag_TAU32_FlatIoContext 298{ 299 void *pInternal; 300 PCI_PHYSICAL_ADDRESS PhysicalBufferAddress; 301 unsigned Channel, ItemsCount, EachItemBufferSize; 302 unsigned Received, ActualOffset, Errors; 303#if defined(_NTDDK_) 304 KDPC CallbackDpc; 305 void SetupCallback(PKDEFERRED_ROUTINE DeferredCallbackRoutine, void* pContext) 306 { 307 CallbackDpc.DeferredRoutine = DeferredCallbackRoutine; 308 CallbackDpc.DeferredContext = pContext; 309 } 310 void SetupCallback(TAU32_FlatIoCallback pCallback) 311 { 312 CallbackDpc.DeferredRoutine = (PKDEFERRED_ROUTINE) pCallback; 313 CallbackDpc.DeferredContext = 0; 314 } 315#else 316 TAU32_FlatIoCallback pCallback; 317#endif 318}; 319 320/* TAU32_FIFO_ID */ 321#define TAU32_FifoId_CasRx 0u 322#define TAU32_FifoId_CasTx 1u 323#define TAU32_FifoId_FasRx 2u 324#define TAU32_FifoId_FasTx 3u 325#define TAU32_FifoId_Max 4u 326 327typedef struct tag_TAU32_E1_State 328{ 329 unsigned __int32 TickCounter; 330 unsigned __int32 RxViolations; 331 unsigned __int32 Crc4Errors; 332 unsigned __int32 FarEndBlockErrors; 333 unsigned __int32 FasErrors; 334 unsigned __int32 TransmitSlips; 335 unsigned __int32 ReceiveSlips; 336 unsigned __int32 Status; 337 unsigned __int32 FifoSlip[TAU32_FifoId_Max]; 338} TAU32_E1_State; 339 340struct tag_TAU32_UserContext 341{ 342 /* fields provided by user for for TAU32_Initiaize() */ 343 TAU32_Controller *pControllerObject; 344 PCI_PHYSICAL_ADDRESS ControllerObjectPhysicalAddress; 345 void *PciBar1VirtualAddress; 346 TAU32_NotifyCallback pErrorNotifyCallback; 347 TAU32_NotifyCallback pStatusNotifyCallback; 348#if defined(_NTDDK_) 349 PKINTERRUPT InterruptObject; 350#endif 351 /* TODO: remove from release */ 352 #define TAU32_CUSTOM_FIRMWARE 353 #ifdef TAU32_CUSTOM_FIRMWARE 354 void *pCustomFirmware; 355 unsigned CustomFirmwareSize; 356 #endif 357 /* fields filled by TAU32_Initiaize() */ 358 int Model; 359 int Interfaces; 360 unsigned InitErrors; 361 unsigned __int32 DeadBits; 362 363 /* fields managed by DDK */ 364 unsigned AdapterStatus; 365 unsigned CasIoLofCount; 366 unsigned E1IntLostCount; 367 unsigned CableTypeJumpers; 368 TAU32_E1_State InterfacesInfo[TAU32_MAX_INTERFACES]; 369 370 /* fields which are't used by DDK, but nice for user */ 371#ifdef TAU32_UserContext_Add 372 TAU32_UserContext_Add 373#endif 374}; 375 376struct tag_TAU32_UserRequest 377{ 378 /* required fields */ 379 void *pInternal; /* internal */ 380 unsigned Command; /* in */ 381#if defined(_NTDDK_) 382 KDPC CallbackDpc; 383 void SetupCallback(PKDEFERRED_ROUTINE DeferredCallbackRoutine, void* pContext) 384 { 385 CallbackDpc.DeferredRoutine = DeferredCallbackRoutine; 386 CallbackDpc.DeferredContext = pContext; 387 } 388 void SetupCallback(TAU32_RequestCallback pCallback) 389 { 390 CallbackDpc.DeferredRoutine = (PKDEFERRED_ROUTINE) pCallback; 391 CallbackDpc.DeferredContext = 0; 392 } 393#else 394 TAU32_RequestCallback pCallback; /* in */ 395#endif 396 unsigned __int32 ErrorCode; /* out */ 397 398 union 399 { 400 unsigned ChannelNumber; /* just common field */ 401 402 struct 403 { 404 unsigned Channel; /* in */ 405 unsigned __int32 Config; /* in */ 406 unsigned __int32 AssignedTsMask; /* build channel from timeslots which is selected by mask */ 407 } ChannelConfig; 408 409 struct 410 { 411 int Interface; 412 unsigned __int32 Config; /* in */ 413 unsigned __int32 UnframedTsMask; 414 } InterfaceConfig; 415 416 struct 417 { 418 unsigned Channel; /* in */ 419 PCI_PHYSICAL_ADDRESS PhysicalDataAddress; /* in */ 420 unsigned DataLength; /* in */ 421 unsigned Transmitted; /* out */ 422 } Tx; 423 424 struct 425 { 426 unsigned Channel; /* in */ 427 PCI_PHYSICAL_ADDRESS PhysicalDataAddress; /* in */ 428 unsigned BufferLength; /* in */ 429 unsigned Received; /* out */ 430 BOOLEAN FrameEnd; /* out */ 431 } Rx; 432 433 BOOLEAN DigitalLoop; /* in, loop by PEB */ 434 435 union 436 { 437 TAU32_TimeslotAssignment Complete[TAU32_TIMESLOTS]; 438 unsigned __int32 Map[TAU32_CHANNELS]; 439 } TimeslotsAssignment; 440 } Io; 441 442 /* fields which are't used by DDK, but nice for user */ 443#ifdef TAU32_UserRequest_Add 444 TAU32_UserRequest_Add 445#endif 446}; 447 448#define TAU32_IS_REQUEST_RUNNING(pUserRequest) ((pUserRequest)->pInternal != NULL) 449#define TAU32_IS_REQUEST_NOT_RUNNING(pUserRequest) ((pUserRequest)->pInternal == NULL) 450 451#ifndef TAU32_DDK_DLL 452# if defined(_NTDDK_) 453# ifdef TAU32_DDK_IMP 454# define TAU32_DDK_DLL __declspec(dllexport) 455# else 456# define TAU32_DDK_DLL __declspec(dllimport) 457# endif 458# else 459# define TAU32_DDK_DLL 460# endif 461#endif 462 463#ifdef __cplusplus 464extern "C" 465{ 466#endif 467 void TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_BeforeReset(TAU32_UserContext *pUserContext); 468 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_Initialize(TAU32_UserContext *pUserContext, BOOLEAN CronyxDiag); 469 void TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_DestructiveHalt(TAU32_Controller *pControllerObject, BOOLEAN CancelRequests); 470 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_IsInterruptPending(TAU32_Controller *pControllerObject); 471 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_HandleInterrupt(TAU32_Controller *pControllerObject); 472 extern unsigned const TAU32_ControllerObjectSize; 473 474 /* LY: ��� ������� ����, ����� �������������� ���������� �� callback-�� */ 475 void TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_EnableInterrupts(TAU32_Controller *pControllerObject); 476 void TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_DisableInterrupts(TAU32_Controller *pControllerObject); 477 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_SubmitRequest(TAU32_Controller *pControllerObject, TAU32_UserRequest *pRequest); 478 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_CancelRequest(TAU32_Controller *pControllerObject, TAU32_UserRequest *pRequest, BOOLEAN BreakIfRunning); 479 void TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_LedBlink(TAU32_Controller *pControllerObject); 480 void TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_LedSet(TAU32_Controller *pControllerObject, BOOLEAN On); 481 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_SetCasIo(TAU32_Controller *pControllerObject, BOOLEAN Enabled); 482 unsigned __int64 TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_ProbeGeneratorFrequency(unsigned __int64 Frequency); 483 unsigned __int64 TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_SetGeneratorFrequency(TAU32_Controller *pControllerObject, unsigned __int64 Frequency); 484 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_SetSyncMode(TAU32_Controller *pControllerObject, unsigned Mode); 485 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_SetCrossMatrix(TAU32_Controller *pControllerObject, unsigned __int8 *pCrossMatrix, unsigned __int32 ReverseMask); 486 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_SetIdleCodes(TAU32_Controller *pControllerObject, unsigned __int8 *pIdleCodes); 487 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_UpdateIdleCodes(TAU32_Controller *pControllerObject, int Interface, unsigned __int32 TimeslotMask, unsigned __int8 IdleCode); 488 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_SetSaCross(TAU32_Controller *pControllerObject, TAU32_SaCross SaCross); 489 int TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_FifoPutCasAppend(TAU32_Controller *pControllerObject, int Interface, unsigned __int8 *pBuffer, unsigned Length); 490 int TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_FifoPutCasAhead(TAU32_Controller *pControllerObject, int Interface, unsigned __int8 *pBuffer, unsigned Length); 491 int TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_FifoGetCas(TAU32_Controller *pControllerObject, int Interface, unsigned __int8 *pBuffer, unsigned Length); 492 int TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_FifoPutFasAppend(TAU32_Controller *pControllerObject, int Interface, unsigned __int8 *pBuffer, unsigned Length); 493 int TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_FifoPutFasAhead(TAU32_Controller *pControllerObject, int Interface, unsigned __int8 *pBuffer, unsigned Length); 494 int TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_FifoGetFas(TAU32_Controller *pControllerObject, int Interface, unsigned __int8 *pBuffer, unsigned Length); 495 BOOLEAN TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_SetFifoTrigger(TAU32_Controller *pControllerObject, int Interface, unsigned FifoId, unsigned Level, TAU32_FifoTrigger Trigger); 496 void TAU32_DDK_DLL TAU32_CALL_TYPE TAU32_ReadTsc(TAU32_Controller *pControllerObject, TAU32_tsc *pResult); 497 498 /* for Cronyx Engineering use only !!! */ 499 #define TAU32_CRONYX_P 0 500 #define TAU32_CRONYX_PS 1 501 #define TAU32_CRONYX_PA 2 502 #define TAU32_CRONYX_PB 3 503 #define TAU32_CRONYX_I 4 504 #define TAU32_CRONYX_O 5 505 #define TAU32_CRONYX_U 6 506 #define TAU32_CRONYX_R 7 507 #define TAU32_CRONYX_W 8 508 #define TAU32_CRONYX_RW 9 509 #define TAU32_CRONYX_WR 10 510 #define TAU32_CRONYX_S 11 511 #define TAU32_CRONYX_G 12 512 unsigned __int32 TAU32_CALL_TYPE TAU32_Diag(TAU32_Controller *pControllerObject, unsigned Operation, unsigned __int32 Data); 513 514#ifdef __cplusplus 515} 516#endif
|