Leaked source code of windows server 2003
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.

63 lines
1.5 KiB

  1. //==========================================================================;
  2. //
  3. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. // PURPOSE.
  7. //
  8. // Copyright (c) 1992 - 1997 Microsoft Corporation. All Rights Reserved.
  9. //
  10. //==========================================================================;
  11. #include "strmini.h"
  12. #include "ksmedia.h"
  13. #include "capmain.h"
  14. /*
  15. ** HwInterrupt()
  16. **
  17. ** Routine is called when an interrupt at the IRQ level specified by the
  18. ** ConfigInfo structure passed to the HwInitialize routine is received.
  19. **
  20. ** Note: IRQs may be shared, so the device should ensure the IRQ received
  21. ** was expected
  22. **
  23. ** Arguments:
  24. **
  25. ** pHwDevEx - the device extension for the hardware interrupt
  26. **
  27. ** Returns:
  28. **
  29. ** Side Effects: none
  30. */
  31. BOOLEAN
  32. HwInterrupt(
  33. IN PHW_DEVICE_EXTENSION pHwDevEx
  34. )
  35. {
  36. BOOLEAN fMyIRQ = FALSE;
  37. if (pHwDevEx->IRQExpected)
  38. {
  39. pHwDevEx->IRQExpected = FALSE;
  40. //
  41. // call the routine to handle the IRQ here
  42. //
  43. fMyIRQ = TRUE;
  44. }
  45. //
  46. // returning FALSE indicates that this was not an IRQ for this device, and
  47. // the IRQ dispatcher will pass the IRQ down the chain to the next handler
  48. // for this IRQ level
  49. //
  50. return(fMyIRQ);
  51. }
  52.