OpenSDE Packages Database (without history before r20070)
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.

82 lines
3.0 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../linux26mm/unbreak-advansys-scsi.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. Aside from tons of compiler warning, I have not found out via google, why the
  17. AdvanSys driver is marked broken.
  18. It compiles and if it will not work with the ABP940-U I have lying around I'll
  19. have to fix it up ...
  20. - Rene Rebe <rene@exactcode.de>
  21. --- linux-2.6.16/drivers/scsi/Kconfig.orig 2006-05-03 19:50:59.113854500 +0200
  22. +++ linux-2.6.16/drivers/scsi/Kconfig 2006-05-03 19:54:52.256425000 +0200
  23. @@ -458,7 +458,7 @@
  24. tristate "AdvanSys SCSI support"
  25. depends on SCSI
  26. depends on ISA || EISA || PCI
  27. - depends on BROKEN || X86_32
  28. + depends on X86_32
  29. help
  30. This is a driver for all SCSI host adapters manufactured by
  31. AdvanSys. It is documented in the kernel source in
  32. --- linux-2.6.11/drivers/scsi/advansys.c 2005-03-02 08:37:52.000000000 +0100
  33. +++ linux-2.6.11-fixed/drivers/scsi/advansys.c 2005-05-23 11:09:06.000000000 +0200
  34. @@ -2056,11 +2056,11 @@
  35. /*
  36. * Define Adv Library required memory access macros.
  37. */
  38. -#define ADV_MEM_READB(addr) readb(addr)
  39. -#define ADV_MEM_READW(addr) readw(addr)
  40. -#define ADV_MEM_WRITEB(addr, byte) writeb(byte, addr)
  41. -#define ADV_MEM_WRITEW(addr, word) writew(word, addr)
  42. -#define ADV_MEM_WRITEDW(addr, dword) writel(dword, addr)
  43. +#define ADV_MEM_READB(addr) readb((void*)addr)
  44. +#define ADV_MEM_READW(addr) readw((void*)addr)
  45. +#define ADV_MEM_WRITEB(addr, byte) writeb(byte, (void*)addr)
  46. +#define ADV_MEM_WRITEW(addr, word) writew(word, (void*)addr)
  47. +#define ADV_MEM_WRITEDW(addr, dword) writel(dword, (void*)addr)
  48. #define ADV_CARRIER_COUNT (ASC_DEF_MAX_HOST_QNG + 15)
  49. @@ -4295,6 +4295,27 @@
  50. }
  51. #endif /* CONFIG_PROC_FS */
  52. +/* this is just preleminary, so we can auto detect the PCI cards - the driver
  53. + should be converted to the new module API ... -ReneR */
  54. +
  55. +static struct pci_device_id advansys_id_table[] __devinitdata = {
  56. + { ASC_PCI_VENDORID, ASC_PCI_DEVICE_ID_1100,
  57. + PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL },
  58. + { ASC_PCI_VENDORID, ASC_PCI_DEVICE_ID_1200,
  59. + PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL },
  60. + { ASC_PCI_VENDORID, ASC_PCI_DEVICE_ID_1300,
  61. + PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL },
  62. + { ASC_PCI_VENDORID, ASC_PCI_DEVICE_ID_2300,
  63. + PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL },
  64. + { ASC_PCI_VENDORID, ASC_PCI_DEVICE_ID_2500,
  65. + PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL },
  66. + { ASC_PCI_VENDORID, ASC_PCI_DEVICE_ID_2700,
  67. + PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL },
  68. + { 0, }
  69. +};
  70. +
  71. +MODULE_DEVICE_TABLE(pci, advansys_id_table);
  72. +
  73. /*
  74. * advansys_detect()
  75. *