Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
2.2 KiB

  1. /******************************************************************************\
  2. * *
  3. * ADAPTER.H - Adapter control related code header file. *
  4. * *
  5. * Copyright (c) C-Cube Microsystems 1996 *
  6. * All Rights Reserved. *
  7. * *
  8. * Use of C-Cube Microsystems code is governed by terms and conditions *
  9. * stated in the accompanying licensing statement. *
  10. * *
  11. \******************************************************************************/
  12. #ifndef _ADAPTER_H_
  13. #define _ADAPTER_H_
  14. NTSTATUS DriverEntry( IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath );
  15. VOID STREAMAPI AdapterReceivePacket( IN PHW_STREAM_REQUEST_BLOCK pSrb );
  16. VOID STREAMAPI AdapterCancelPacket( PHW_STREAM_REQUEST_BLOCK pSrb );
  17. VOID STREAMAPI AdapterTimeoutPacket( PHW_STREAM_REQUEST_BLOCK pSrb );
  18. VOID STREAMAPI AdapterSendData( IN PHW_DEVICE_EXTENSION pHwDevEx );
  19. BOOLEAN STREAMAPI HwInterrupt ( IN PHW_DEVICE_EXTENSION pHwDevEx );
  20. VOID STREAMAPI AdapterReleaseRequest( PHW_STREAM_REQUEST_BLOCK pSrb );
  21. BOOL STREAMAPI AdapterCanAuthenticateNow( IN PHW_DEVICE_EXTENSION pHwDevExt );
  22. VOID STREAMAPI AdapterClearAuthenticationStatus( IN PHW_DEVICE_EXTENSION pHwDevExt );
  23. VOID STREAMAPI adapterUpdateNextSrbOrderNumberOnDiscardSrb( PHW_STREAM_REQUEST_BLOCK pSrb );
  24. // These functions are used to set or get adapter property. They mostly
  25. // set or get analog chip properties
  26. VOID AdapterGetProperty( PHW_STREAM_REQUEST_BLOCK pSrb );
  27. VOID AdapterSetProperty( PHW_STREAM_REQUEST_BLOCK pSrb );
  28. BOOL AdapterSetState( PHW_STREAM_REQUEST_BLOCK pSrb );
  29. void IssuePendingCommands(PHW_DEVICE_EXTENSION pHwDevExt);
  30. VOID STREAMAPI AdapterReleaseCurrentSrb( PHW_STREAM_REQUEST_BLOCK pSrb );
  31. BOOL CheckAndReleaseIfCtrlPkt(PHW_STREAM_REQUEST_BLOCK pSrb);
  32. #endif // _ADAPTER_H_