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.

30 lines
1.0 KiB

  1. // admin.h
  2. // 6-17-97 - start using index field assigned to box to id rx-messages.
  3. int ioctl_device(int cmd,
  4. BYTE *buf,
  5. BYTE *pkt,
  6. ULONG offset, // or ioctl-subfunction if cmd=ioctl
  7. int size);
  8. int eth_device_data(int message_type,
  9. unsigned long offset,
  10. int num_bytes,
  11. unsigned char *data,
  12. unsigned char *pkt,
  13. int *pkt_size);
  14. int eth_device_reply(int message_type,
  15. unsigned long offset,
  16. int *num_bytes,
  17. unsigned char *data,
  18. unsigned char *pkt);
  19. #define IOCTL_COMMAND 0x5
  20. #define GET_COMMAND 0x7
  21. #define UPLOAD_COMMAND 0x8
  22. #define DOWNLOAD_COMMAND 0x9
  23. int admin_send_reset(Nic *nic, BYTE *dest_addr);
  24. int admin_send_query_id(Nic *nic, BYTE *dest_addr, int set_us_as_master,
  25. BYTE assigned_index);
  26. int admin_send(Nic *nic, BYTE *buf, int len, int admin_type, BYTE *mac_dest);