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.

77 lines
2.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../linux26/initio-export-id-table.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. # Copyright (C) 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. Minimal updates to export the device table in the module, the driver should
  18. be updated further.
  19. - Rene Rebe <rene@exactcode.de>
  20. --- linux-2.6.18/drivers/scsi/initio.c.orig 2006-09-20 05:42:06.000000000 +0200
  21. +++ linux-2.6.18/drivers/scsi/initio.c 2006-09-20 17:33:56.000000000 +0200
  22. @@ -155,11 +155,6 @@
  23. #define TUL_RDWORD(x,y) (short)(inl((int)((ULONG)((ULONG)x+(UCHAR)y)) ))
  24. -typedef struct PCI_ID_Struc {
  25. - unsigned short vendor_id;
  26. - unsigned short device_id;
  27. -} PCI_ID;
  28. -
  29. static int tul_num_ch = 4; /* Maximum 4 adapters */
  30. static int tul_num_scb;
  31. static int tul_tag_enable = 1;
  32. @@ -171,12 +166,13 @@
  33. static void i91uSCBPost(BYTE * pHcb, BYTE * pScb);
  34. -static const PCI_ID i91u_pci_devices[] = {
  35. - { INI_VENDOR_ID, I950_DEVICE_ID },
  36. - { INI_VENDOR_ID, I940_DEVICE_ID },
  37. - { INI_VENDOR_ID, I935_DEVICE_ID },
  38. - { INI_VENDOR_ID, I920_DEVICE_ID },
  39. - { DMX_VENDOR_ID, I920_DEVICE_ID },
  40. +static struct pci_device_id i91u_pci_tbl[] = {
  41. + { INI_VENDOR_ID, I950_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
  42. + { INI_VENDOR_ID, I940_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
  43. + { INI_VENDOR_ID, I935_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
  44. + { INI_VENDOR_ID, I920_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
  45. + { DMX_VENDOR_ID, I920_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
  46. + { 0 }
  47. };
  48. #define DEBUG_INTERRUPT 0
  49. @@ -2769,9 +2765,9 @@
  50. init_i91uAdapter_table();
  51. - for (i = 0; i < ARRAY_SIZE(i91u_pci_devices); i++)
  52. + for (i = 0; i < ARRAY_SIZE(i91u_pci_tbl); i++)
  53. {
  54. - while ((pDev = pci_find_device(i91u_pci_devices[i].vendor_id, i91u_pci_devices[i].device_id, pDev)) != NULL) {
  55. + while ((pDev = pci_find_device(i91u_pci_tbl[i].vendor, i91u_pci_tbl[i].device, pDev)) != NULL) {
  56. if (pci_enable_device(pDev))
  57. continue;
  58. pci_read_config_dword(pDev, 0x44, (u32 *) & dRegValue);
  59. @@ -3154,6 +3150,8 @@
  60. }
  61. MODULE_LICENSE("Dual BSD/GPL");
  62. +MODULE_DEVICE_TABLE(pci, i91u_pci_tbl);
  63. +
  64. static struct scsi_host_template driver_template = {
  65. .proc_name = "INI9100U",
  66. .name = i91u_REVID,