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.

70 lines
2.6 KiB

  1. /*++
  2. Copyright (c) 2000,2001 Microsoft Corporation
  3. Module Name:
  4. smblite.h
  5. Abstract: Contains SMBus Back Light IOCTL definitions.
  6. Environment:
  7. User/Kernel mode
  8. Author:
  9. Michael Tsang (MikeTs) 11-Jan-2001
  10. Revision History:
  11. --*/
  12. #ifndef _SMBLITE_H
  13. #define _SMBLITE_H
  14. //
  15. // Constants
  16. //
  17. #define BRIGHTNESS_MIN 0
  18. #define BRIGHTNESS_MAX 63
  19. #define SMBLITE_IOCTL_DEVNAME TEXT("\\\\.\\SMBusBackLight")
  20. #define IOCTL_SMBLITE_GETBRIGHTNESS CTL_CODE(FILE_DEVICE_UNKNOWN, \
  21. 0, \
  22. METHOD_NEITHER, \
  23. FILE_ANY_ACCESS)
  24. #define IOCTL_SMBLITE_SETBRIGHTNESS CTL_CODE(FILE_DEVICE_UNKNOWN, \
  25. 1, \
  26. METHOD_NEITHER, \
  27. FILE_ANY_ACCESS)
  28. typedef struct _SMBLITE_BRIGHTNESS
  29. {
  30. UCHAR bACValue; //Brightness value when on AC
  31. UCHAR bDCValue; //Brightness value when on DC
  32. } SMBLITE_BRIGHTNESS, *PSMBLITE_BRIGHTNESS;
  33. typedef struct _SMBLITE_SETBRIGHTNESS
  34. {
  35. SMBLITE_BRIGHTNESS Brightness;
  36. BOOLEAN fSaveSettings;
  37. } SMBLITE_SETBRIGHTNESS, *PSMBLITE_SETBRIGHTNESS;
  38. #ifdef SYSACC
  39. #define IOCTL_SYSACC_MEM_REQUEST CTL_CODE(FILE_DEVICE_UNKNOWN, \
  40. 1000, \
  41. METHOD_NEITHER, \
  42. FILE_ANY_ACCESS)
  43. #define IOCTL_SYSACC_IO_REQUEST CTL_CODE(FILE_DEVICE_UNKNOWN, \
  44. 1001, \
  45. METHOD_NEITHER, \
  46. FILE_ANY_ACCESS)
  47. #define IOCTL_SYSACC_PCICFG_REQUEST CTL_CODE(FILE_DEVICE_UNKNOWN, \
  48. 1002, \
  49. METHOD_NEITHER, \
  50. FILE_ANY_ACCESS)
  51. #define IOCTL_SYSACC_SMBUS_REQUEST CTL_CODE(FILE_DEVICE_UNKNOWN, \
  52. 1003, \
  53. METHOD_BUFFERED, \
  54. FILE_ANY_ACCESS)
  55. #endif
  56. #endif //ifndef _SMBLITE_H