pci2220i.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /****************************************************************************
  2. * Perceptive Solutions, Inc. PCI-2220I device driver for Linux.
  3. *
  4. * pci2220i.h - Linux Host Driver for PCI-2220i EIDE Adapters
  5. *
  6. * Copyright (c) 1997-1999 Perceptive Solutions, Inc.
  7. * All Rights Reserved.
  8. *
  9. * Redistribution and use in source and binary forms, with or without
  10. * modification, are permitted provided that redistributions of source
  11. * code retain the above copyright notice and this comment without
  12. * modification.
  13. *
  14. * Technical updates and product information at:
  15. * http://www.psidisk.com
  16. *
  17. * Please send questions, comments, bug reports to:
  18. * tech@psidisk.com Technical Support
  19. *
  20. ****************************************************************************/
  21. #ifndef _PCI2220I_H
  22. #define _PCI2220I_H
  23. #ifndef LINUX_VERSION_CODE
  24. #include <linux/version.h>
  25. #endif
  26. #define LINUXVERSION(v,p,s) (((v)<<16) + ((p)<<8) + (s))
  27. // function prototypes
  28. int Pci2220i_Detect (Scsi_Host_Template *tpnt);
  29. int Pci2220i_Command (Scsi_Cmnd *SCpnt);
  30. int Pci2220i_QueueCommand (Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *));
  31. int Pci2220i_Abort (Scsi_Cmnd *SCpnt);
  32. int Pci2220i_Reset (Scsi_Cmnd *SCpnt, unsigned int flags);
  33. int Pci2220i_Release (struct Scsi_Host *pshost);
  34. int Pci2220i_BiosParam (struct scsi_device *sdev,
  35. struct block_device *dev,
  36. sector_t capacity, int geom[]);
  37. #endif