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.

83 lines
3.1 KiB

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