dmx3191d.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:2k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. /*
  2.     dmx3191d.h - defines for the Domex DMX3191D SCSI card.
  3.     Copyright (C) 2000 by Massimo Piccioni <dafastidio@libero.it>
  4.     This program is free software; you can redistribute it and/or modify
  5.     it under the terms of the GNU General Public License as published by
  6.     the Free Software Foundation; either version 2 of the License, or
  7.     (at your option) any later version.
  8. */
  9. #ifndef __DMX3191D_H
  10. #define __DMX3191D_H
  11. #define DMX3191D_DRIVER_NAME "dmx3191d"
  12. #define DMX3191D_REGION 8
  13. #ifndef PCI_VENDOR_ID_DOMEX
  14. #define PCI_VENDOR_ID_DOMEX 0x134a
  15. #define PCI_DEVICE_ID_DOMEX_DMX3191D 0x0001
  16. #endif
  17. #ifndef ASM
  18. int dmx3191d_abort(Scsi_Cmnd *);
  19. int dmx3191d_detect(Scsi_Host_Template *);
  20. const char* dmx3191d_info(struct Scsi_Host *);
  21. int dmx3191d_proc_info(char *, char **, off_t, int, int, int);
  22. int dmx3191d_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
  23. int dmx3191d_release_resources(struct Scsi_Host *);
  24. int dmx3191d_reset(Scsi_Cmnd *, unsigned int);
  25. #define DMX3191D {
  26. proc_info: dmx3191d_proc_info,
  27. name: "Domex DMX3191D",
  28. detect: dmx3191d_detect,
  29. release: dmx3191d_release_resources,
  30. info: dmx3191d_info,
  31. queuecommand: dmx3191d_queue_command,
  32. abort: dmx3191d_abort,
  33. reset: dmx3191d_reset, 
  34. bios_param: NULL,
  35. can_queue: 32,
  36.         this_id: 7,
  37.         sg_tablesize: SG_ALL,
  38. cmd_per_lun: 2,
  39.         use_clustering: DISABLE_CLUSTERING
  40. }
  41. #define NCR5380_read(reg) inb(port + reg)
  42. #define NCR5380_write(reg, value) outb(value, port + reg)
  43. #define NCR5380_implementation_fields unsigned int port
  44. #define NCR5380_local_declare() NCR5380_implementation_fields
  45. #define NCR5380_setup(instance) port = instance->io_port
  46. #define NCR5380_abort dmx3191d_abort
  47. #define do_NCR5380_intr dmx3191d_do_intr
  48. #define NCR5380_intr dmx3191d_intr
  49. #define NCR5380_proc_info dmx3191d_proc_info
  50. #define NCR5380_queue_command dmx3191d_queue_command
  51. #define NCR5380_reset dmx3191d_reset
  52. #endif /* ASM */
  53. #endif /* __DMX3191D_H */