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.

56 lines
2.3 KiB

  1. // initc.h
  2. VOID SerialUnload (IN PDRIVER_OBJECT DriverObject);
  3. NTSTATUS CreateDriverDevice(IN PDRIVER_OBJECT DriverObject,
  4. OUT PSERIAL_DEVICE_EXTENSION *DeviceExtension);
  5. NTSTATUS CreateBoardDevice(IN PDRIVER_OBJECT DriverObject,
  6. OUT PSERIAL_DEVICE_EXTENSION *DeviceExtension);
  7. NTSTATUS CreatePortDevices(IN PDRIVER_OBJECT DriverObject);
  8. NTSTATUS CreateReconfigPortDevices(IN PSERIAL_DEVICE_EXTENSION board_ext,
  9. int new_num_ports);
  10. NTSTATUS StartPortHardware(IN PSERIAL_DEVICE_EXTENSION port_ext,
  11. int chan_num);
  12. NTSTATUS CreatePortDevice(
  13. IN PDRIVER_OBJECT DriverObject,
  14. IN PSERIAL_DEVICE_EXTENSION ParentExtension,
  15. OUT PSERIAL_DEVICE_EXTENSION *DeviceExtension,
  16. IN int chan_num,
  17. IN int is_fdo);
  18. VOID RcktDeleteDriverObj(IN PSERIAL_DEVICE_EXTENSION extension);
  19. VOID RcktDeleteDevices(IN PDRIVER_OBJECT DriverObject);
  20. VOID RcktDeleteBoard(IN PSERIAL_DEVICE_EXTENSION extension);
  21. VOID RcktDeletePort(IN PSERIAL_DEVICE_EXTENSION extension);
  22. VOID SerialCleanupDevice (IN PSERIAL_DEVICE_EXTENSION Extension);
  23. PVOID SerialGetMappedAddress(
  24. IN INTERFACE_TYPE BusType,
  25. IN ULONG BusNumber,
  26. PHYSICAL_ADDRESS IoAddress,
  27. ULONG NumberOfBytes,
  28. ULONG AddressSpace,
  29. PBOOLEAN MappedAddress,
  30. BOOLEAN DoTranslation);
  31. VOID SerialSetupExternalNaming (IN PSERIAL_DEVICE_EXTENSION Extension);
  32. VOID SerialCleanupExternalNaming(IN PSERIAL_DEVICE_EXTENSION Extension);
  33. VOID SerialLogError(
  34. IN PDRIVER_OBJECT DriverObject,
  35. IN PDEVICE_OBJECT DeviceObject OPTIONAL,
  36. IN ULONG SequenceNumber,
  37. IN UCHAR MajorFunctionCode,
  38. IN UCHAR RetryCount,
  39. IN ULONG UniqueErrorValue,
  40. IN NTSTATUS FinalStatus,
  41. IN NTSTATUS SpecificIOStatus,
  42. IN ULONG LengthOfInsert1,
  43. IN PWCHAR Insert1);
  44. VOID EventLog(
  45. IN PDRIVER_OBJECT DriverObject,
  46. IN NTSTATUS FinalStatus,
  47. IN NTSTATUS SpecificIOStatus,
  48. IN ULONG LengthOfInsert1,
  49. IN PWCHAR Insert1);
  50. VOID InitPortsSettings(IN PSERIAL_DEVICE_EXTENSION extension);
  51. NTSTATUS RcktInitPollTimer(void);
  52. void InitSocketModems(PSERIAL_DEVICE_EXTENSION ext);
  53. int DeterminePortName(void);
  54. int clear_com_db(char *szComport);