serverworks.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536
  1. /*
  2. * linux/drivers/ide/pci/serverworks.c Version 0.20 Jun 3 2007
  3. *
  4. * Copyright (C) 1998-2000 Michel Aubry
  5. * Copyright (C) 1998-2000 Andrzej Krzysztofowicz
  6. * Copyright (C) 1998-2000 Andre Hedrick <andre@linux-ide.org>
  7. * Copyright (C) 2007 Bartlomiej Zolnierkiewicz
  8. * Portions copyright (c) 2001 Sun Microsystems
  9. *
  10. *
  11. * RCC/ServerWorks IDE driver for Linux
  12. *
  13. * OSB4: `Open South Bridge' IDE Interface (fn 1)
  14. * supports UDMA mode 2 (33 MB/s)
  15. *
  16. * CSB5: `Champion South Bridge' IDE Interface (fn 1)
  17. * all revisions support UDMA mode 4 (66 MB/s)
  18. * revision A2.0 and up support UDMA mode 5 (100 MB/s)
  19. *
  20. * *** The CSB5 does not provide ANY register ***
  21. * *** to detect 80-conductor cable presence. ***
  22. *
  23. * CSB6: `Champion South Bridge' IDE Interface (optional: third channel)
  24. *
  25. * HT1000: AKA BCM5785 - Hypertransport Southbridge for Opteron systems. IDE
  26. * controller same as the CSB6. Single channel ATA100 only.
  27. *
  28. * Documentation:
  29. * Available under NDA only. Errata info very hard to get.
  30. *
  31. */
  32. #include <linux/types.h>
  33. #include <linux/module.h>
  34. #include <linux/kernel.h>
  35. #include <linux/ioport.h>
  36. #include <linux/pci.h>
  37. #include <linux/hdreg.h>
  38. #include <linux/ide.h>
  39. #include <linux/init.h>
  40. #include <linux/delay.h>
  41. #include <asm/io.h>
  42. #define SVWKS_CSB5_REVISION_NEW 0x92 /* min PCI_REVISION_ID for UDMA5 (A2.0) */
  43. #define SVWKS_CSB6_REVISION 0xa0 /* min PCI_REVISION_ID for UDMA4 (A1.0) */
  44. /* Seagate Barracuda ATA IV Family drives in UDMA mode 5
  45. * can overrun their FIFOs when used with the CSB5 */
  46. static const char *svwks_bad_ata100[] = {
  47. "ST320011A",
  48. "ST340016A",
  49. "ST360021A",
  50. "ST380021A",
  51. NULL
  52. };
  53. static struct pci_dev *isa_dev;
  54. static int check_in_drive_lists (ide_drive_t *drive, const char **list)
  55. {
  56. while (*list)
  57. if (!strcmp(*list++, drive->id->model))
  58. return 1;
  59. return 0;
  60. }
  61. static u8 svwks_udma_filter(ide_drive_t *drive)
  62. {
  63. struct pci_dev *dev = HWIF(drive)->pci_dev;
  64. u8 mask = 0;
  65. if (dev->device == PCI_DEVICE_ID_SERVERWORKS_HT1000IDE)
  66. return 0x1f;
  67. if (dev->device == PCI_DEVICE_ID_SERVERWORKS_OSB4IDE) {
  68. u32 reg = 0;
  69. if (isa_dev)
  70. pci_read_config_dword(isa_dev, 0x64, &reg);
  71. /*
  72. * Don't enable UDMA on disk devices for the moment
  73. */
  74. if(drive->media == ide_disk)
  75. return 0;
  76. /* Check the OSB4 DMA33 enable bit */
  77. return ((reg & 0x00004000) == 0x00004000) ? 0x07 : 0;
  78. } else if (dev->revision < SVWKS_CSB5_REVISION_NEW) {
  79. return 0x07;
  80. } else if (dev->revision >= SVWKS_CSB5_REVISION_NEW) {
  81. u8 btr = 0, mode;
  82. pci_read_config_byte(dev, 0x5A, &btr);
  83. mode = btr & 0x3;
  84. /* If someone decides to do UDMA133 on CSB5 the same
  85. issue will bite so be inclusive */
  86. if (mode > 2 && check_in_drive_lists(drive, svwks_bad_ata100))
  87. mode = 2;
  88. switch(mode) {
  89. case 2: mask = 0x1f; break;
  90. case 1: mask = 0x07; break;
  91. default: mask = 0x00; break;
  92. }
  93. }
  94. if (((dev->device == PCI_DEVICE_ID_SERVERWORKS_CSB6IDE) ||
  95. (dev->device == PCI_DEVICE_ID_SERVERWORKS_CSB6IDE2)) &&
  96. (!(PCI_FUNC(dev->devfn) & 1)))
  97. mask = 0x1f;
  98. return mask;
  99. }
  100. static u8 svwks_csb_check (struct pci_dev *dev)
  101. {
  102. switch (dev->device) {
  103. case PCI_DEVICE_ID_SERVERWORKS_CSB5IDE:
  104. case PCI_DEVICE_ID_SERVERWORKS_CSB6IDE:
  105. case PCI_DEVICE_ID_SERVERWORKS_CSB6IDE2:
  106. case PCI_DEVICE_ID_SERVERWORKS_HT1000IDE:
  107. return 1;
  108. default:
  109. break;
  110. }
  111. return 0;
  112. }
  113. static int svwks_tune_chipset (ide_drive_t *drive, u8 xferspeed)
  114. {
  115. static const u8 udma_modes[] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05 };
  116. static const u8 dma_modes[] = { 0x77, 0x21, 0x20 };
  117. static const u8 pio_modes[] = { 0x5d, 0x47, 0x34, 0x22, 0x20 };
  118. static const u8 drive_pci[] = { 0x41, 0x40, 0x43, 0x42 };
  119. static const u8 drive_pci2[] = { 0x45, 0x44, 0x47, 0x46 };
  120. ide_hwif_t *hwif = HWIF(drive);
  121. struct pci_dev *dev = hwif->pci_dev;
  122. u8 speed = ide_rate_filter(drive, xferspeed);
  123. u8 pio = ide_get_best_pio_mode(drive, 255, 4, NULL);
  124. u8 unit = (drive->select.b.unit & 0x01);
  125. u8 csb5 = svwks_csb_check(dev);
  126. u8 ultra_enable = 0, ultra_timing = 0;
  127. u8 dma_timing = 0, pio_timing = 0;
  128. u16 csb5_pio = 0;
  129. /* If we are about to put a disk into UDMA mode we screwed up.
  130. Our code assumes we never _ever_ do this on an OSB4 */
  131. if(dev->device == PCI_DEVICE_ID_SERVERWORKS_OSB4 &&
  132. drive->media == ide_disk && speed >= XFER_UDMA_0)
  133. BUG();
  134. pci_read_config_byte(dev, (0x56|hwif->channel), &ultra_timing);
  135. pci_read_config_word(dev, 0x4A, &csb5_pio);
  136. pci_read_config_byte(dev, 0x54, &ultra_enable);
  137. ultra_timing &= ~(0x0F << (4*unit));
  138. ultra_enable &= ~(0x01 << drive->dn);
  139. csb5_pio &= ~(0x0F << (4*drive->dn));
  140. switch(speed) {
  141. case XFER_PIO_4:
  142. case XFER_PIO_3:
  143. case XFER_PIO_2:
  144. case XFER_PIO_1:
  145. case XFER_PIO_0:
  146. pio_timing |= pio_modes[speed - XFER_PIO_0];
  147. csb5_pio |= ((speed - XFER_PIO_0) << (4*drive->dn));
  148. break;
  149. case XFER_MW_DMA_2:
  150. case XFER_MW_DMA_1:
  151. case XFER_MW_DMA_0:
  152. /*
  153. * TODO: always setup PIO mode so this won't be needed
  154. */
  155. pio_timing |= pio_modes[pio];
  156. csb5_pio |= (pio << (4*drive->dn));
  157. dma_timing |= dma_modes[speed - XFER_MW_DMA_0];
  158. break;
  159. case XFER_UDMA_5:
  160. case XFER_UDMA_4:
  161. case XFER_UDMA_3:
  162. case XFER_UDMA_2:
  163. case XFER_UDMA_1:
  164. case XFER_UDMA_0:
  165. /*
  166. * TODO: always setup PIO mode so this won't be needed
  167. */
  168. pio_timing |= pio_modes[pio];
  169. csb5_pio |= (pio << (4*drive->dn));
  170. dma_timing |= dma_modes[2];
  171. ultra_timing |= ((udma_modes[speed - XFER_UDMA_0]) << (4*unit));
  172. ultra_enable |= (0x01 << drive->dn);
  173. default:
  174. break;
  175. }
  176. pci_write_config_byte(dev, drive_pci[drive->dn], pio_timing);
  177. if (csb5)
  178. pci_write_config_word(dev, 0x4A, csb5_pio);
  179. pci_write_config_byte(dev, drive_pci2[drive->dn], dma_timing);
  180. pci_write_config_byte(dev, (0x56|hwif->channel), ultra_timing);
  181. pci_write_config_byte(dev, 0x54, ultra_enable);
  182. return (ide_config_drive_speed(drive, speed));
  183. }
  184. static void svwks_tune_drive (ide_drive_t *drive, u8 pio)
  185. {
  186. pio = ide_get_best_pio_mode(drive, pio, 4, NULL);
  187. (void)svwks_tune_chipset(drive, XFER_PIO_0 + pio);
  188. }
  189. static int svwks_config_drive_xfer_rate (ide_drive_t *drive)
  190. {
  191. drive->init_speed = 0;
  192. if (ide_tune_dma(drive))
  193. return 0;
  194. if (ide_use_fast_pio(drive))
  195. svwks_tune_drive(drive, 255);
  196. return -1;
  197. }
  198. static unsigned int __devinit init_chipset_svwks (struct pci_dev *dev, const char *name)
  199. {
  200. unsigned int reg;
  201. u8 btr;
  202. /* force Master Latency Timer value to 64 PCICLKs */
  203. pci_write_config_byte(dev, PCI_LATENCY_TIMER, 0x40);
  204. /* OSB4 : South Bridge and IDE */
  205. if (dev->device == PCI_DEVICE_ID_SERVERWORKS_OSB4IDE) {
  206. isa_dev = pci_get_device(PCI_VENDOR_ID_SERVERWORKS,
  207. PCI_DEVICE_ID_SERVERWORKS_OSB4, NULL);
  208. if (isa_dev) {
  209. pci_read_config_dword(isa_dev, 0x64, &reg);
  210. reg &= ~0x00002000; /* disable 600ns interrupt mask */
  211. if(!(reg & 0x00004000))
  212. printk(KERN_DEBUG "%s: UDMA not BIOS enabled.\n", name);
  213. reg |= 0x00004000; /* enable UDMA/33 support */
  214. pci_write_config_dword(isa_dev, 0x64, reg);
  215. }
  216. }
  217. /* setup CSB5/CSB6 : South Bridge and IDE option RAID */
  218. else if ((dev->device == PCI_DEVICE_ID_SERVERWORKS_CSB5IDE) ||
  219. (dev->device == PCI_DEVICE_ID_SERVERWORKS_CSB6IDE) ||
  220. (dev->device == PCI_DEVICE_ID_SERVERWORKS_CSB6IDE2)) {
  221. /* Third Channel Test */
  222. if (!(PCI_FUNC(dev->devfn) & 1)) {
  223. struct pci_dev * findev = NULL;
  224. u32 reg4c = 0;
  225. findev = pci_get_device(PCI_VENDOR_ID_SERVERWORKS,
  226. PCI_DEVICE_ID_SERVERWORKS_CSB5, NULL);
  227. if (findev) {
  228. pci_read_config_dword(findev, 0x4C, &reg4c);
  229. reg4c &= ~0x000007FF;
  230. reg4c |= 0x00000040;
  231. reg4c |= 0x00000020;
  232. pci_write_config_dword(findev, 0x4C, reg4c);
  233. pci_dev_put(findev);
  234. }
  235. outb_p(0x06, 0x0c00);
  236. dev->irq = inb_p(0x0c01);
  237. } else {
  238. struct pci_dev * findev = NULL;
  239. u8 reg41 = 0;
  240. findev = pci_get_device(PCI_VENDOR_ID_SERVERWORKS,
  241. PCI_DEVICE_ID_SERVERWORKS_CSB6, NULL);
  242. if (findev) {
  243. pci_read_config_byte(findev, 0x41, &reg41);
  244. reg41 &= ~0x40;
  245. pci_write_config_byte(findev, 0x41, reg41);
  246. pci_dev_put(findev);
  247. }
  248. /*
  249. * This is a device pin issue on CSB6.
  250. * Since there will be a future raid mode,
  251. * early versions of the chipset require the
  252. * interrupt pin to be set, and it is a compatibility
  253. * mode issue.
  254. */
  255. if ((dev->class >> 8) == PCI_CLASS_STORAGE_IDE)
  256. dev->irq = 0;
  257. }
  258. // pci_read_config_dword(dev, 0x40, &pioreg)
  259. // pci_write_config_dword(dev, 0x40, 0x99999999);
  260. // pci_read_config_dword(dev, 0x44, &dmareg);
  261. // pci_write_config_dword(dev, 0x44, 0xFFFFFFFF);
  262. /* setup the UDMA Control register
  263. *
  264. * 1. clear bit 6 to enable DMA
  265. * 2. enable DMA modes with bits 0-1
  266. * 00 : legacy
  267. * 01 : udma2
  268. * 10 : udma2/udma4
  269. * 11 : udma2/udma4/udma5
  270. */
  271. pci_read_config_byte(dev, 0x5A, &btr);
  272. btr &= ~0x40;
  273. if (!(PCI_FUNC(dev->devfn) & 1))
  274. btr |= 0x2;
  275. else
  276. btr |= (dev->revision >= SVWKS_CSB5_REVISION_NEW) ? 0x3 : 0x2;
  277. pci_write_config_byte(dev, 0x5A, btr);
  278. }
  279. /* Setup HT1000 SouthBridge Controller - Single Channel Only */
  280. else if (dev->device == PCI_DEVICE_ID_SERVERWORKS_HT1000IDE) {
  281. pci_read_config_byte(dev, 0x5A, &btr);
  282. btr &= ~0x40;
  283. btr |= 0x3;
  284. pci_write_config_byte(dev, 0x5A, btr);
  285. }
  286. return dev->irq;
  287. }
  288. static u8 __devinit ata66_svwks_svwks(ide_hwif_t *hwif)
  289. {
  290. return ATA_CBL_PATA80;
  291. }
  292. /* On Dell PowerEdge servers with a CSB5/CSB6, the top two bits
  293. * of the subsystem device ID indicate presence of an 80-pin cable.
  294. * Bit 15 clear = secondary IDE channel does not have 80-pin cable.
  295. * Bit 15 set = secondary IDE channel has 80-pin cable.
  296. * Bit 14 clear = primary IDE channel does not have 80-pin cable.
  297. * Bit 14 set = primary IDE channel has 80-pin cable.
  298. */
  299. static u8 __devinit ata66_svwks_dell(ide_hwif_t *hwif)
  300. {
  301. struct pci_dev *dev = hwif->pci_dev;
  302. if (dev->subsystem_vendor == PCI_VENDOR_ID_DELL &&
  303. dev->vendor == PCI_VENDOR_ID_SERVERWORKS &&
  304. (dev->device == PCI_DEVICE_ID_SERVERWORKS_CSB5IDE ||
  305. dev->device == PCI_DEVICE_ID_SERVERWORKS_CSB6IDE))
  306. return ((1 << (hwif->channel + 14)) &
  307. dev->subsystem_device) ? ATA_CBL_PATA80 : ATA_CBL_PATA40;
  308. return ATA_CBL_PATA40;
  309. }
  310. /* Sun Cobalt Alpine hardware avoids the 80-pin cable
  311. * detect issue by attaching the drives directly to the board.
  312. * This check follows the Dell precedent (how scary is that?!)
  313. *
  314. * WARNING: this only works on Alpine hardware!
  315. */
  316. static u8 __devinit ata66_svwks_cobalt(ide_hwif_t *hwif)
  317. {
  318. struct pci_dev *dev = hwif->pci_dev;
  319. if (dev->subsystem_vendor == PCI_VENDOR_ID_SUN &&
  320. dev->vendor == PCI_VENDOR_ID_SERVERWORKS &&
  321. dev->device == PCI_DEVICE_ID_SERVERWORKS_CSB5IDE)
  322. return ((1 << (hwif->channel + 14)) &
  323. dev->subsystem_device) ? ATA_CBL_PATA80 : ATA_CBL_PATA40;
  324. return ATA_CBL_PATA40;
  325. }
  326. static u8 __devinit ata66_svwks(ide_hwif_t *hwif)
  327. {
  328. struct pci_dev *dev = hwif->pci_dev;
  329. /* Server Works */
  330. if (dev->subsystem_vendor == PCI_VENDOR_ID_SERVERWORKS)
  331. return ata66_svwks_svwks (hwif);
  332. /* Dell PowerEdge */
  333. if (dev->subsystem_vendor == PCI_VENDOR_ID_DELL)
  334. return ata66_svwks_dell (hwif);
  335. /* Cobalt Alpine */
  336. if (dev->subsystem_vendor == PCI_VENDOR_ID_SUN)
  337. return ata66_svwks_cobalt (hwif);
  338. /* Per Specified Design by OEM, and ASIC Architect */
  339. if ((dev->device == PCI_DEVICE_ID_SERVERWORKS_CSB6IDE) ||
  340. (dev->device == PCI_DEVICE_ID_SERVERWORKS_CSB6IDE2))
  341. return ATA_CBL_PATA80;
  342. return ATA_CBL_PATA40;
  343. }
  344. static void __devinit init_hwif_svwks (ide_hwif_t *hwif)
  345. {
  346. u8 dma_stat = 0;
  347. if (!hwif->irq)
  348. hwif->irq = hwif->channel ? 15 : 14;
  349. hwif->tuneproc = &svwks_tune_drive;
  350. hwif->speedproc = &svwks_tune_chipset;
  351. hwif->udma_filter = &svwks_udma_filter;
  352. hwif->atapi_dma = 1;
  353. if (hwif->pci_dev->device != PCI_DEVICE_ID_SERVERWORKS_OSB4IDE)
  354. hwif->ultra_mask = 0x3f;
  355. hwif->mwdma_mask = 0x07;
  356. hwif->autodma = 0;
  357. if (!hwif->dma_base) {
  358. hwif->drives[0].autotune = 1;
  359. hwif->drives[1].autotune = 1;
  360. return;
  361. }
  362. hwif->ide_dma_check = &svwks_config_drive_xfer_rate;
  363. if (hwif->pci_dev->device != PCI_DEVICE_ID_SERVERWORKS_OSB4IDE) {
  364. if (hwif->cbl != ATA_CBL_PATA40_SHORT)
  365. hwif->cbl = ata66_svwks(hwif);
  366. }
  367. if (!noautodma)
  368. hwif->autodma = 1;
  369. dma_stat = inb(hwif->dma_status);
  370. hwif->drives[0].autodma = (dma_stat & 0x20);
  371. hwif->drives[1].autodma = (dma_stat & 0x40);
  372. hwif->drives[0].autotune = (!(dma_stat & 0x20));
  373. hwif->drives[1].autotune = (!(dma_stat & 0x40));
  374. }
  375. static int __devinit init_setup_svwks (struct pci_dev *dev, ide_pci_device_t *d)
  376. {
  377. return ide_setup_pci_device(dev, d);
  378. }
  379. static int __devinit init_setup_csb6 (struct pci_dev *dev, ide_pci_device_t *d)
  380. {
  381. if (!(PCI_FUNC(dev->devfn) & 1)) {
  382. d->bootable = NEVER_BOARD;
  383. if (dev->resource[0].start == 0x01f1)
  384. d->bootable = ON_BOARD;
  385. }
  386. d->channels = ((dev->device == PCI_DEVICE_ID_SERVERWORKS_CSB6IDE ||
  387. dev->device == PCI_DEVICE_ID_SERVERWORKS_CSB6IDE2) &&
  388. (!(PCI_FUNC(dev->devfn) & 1))) ? 1 : 2;
  389. return ide_setup_pci_device(dev, d);
  390. }
  391. static ide_pci_device_t serverworks_chipsets[] __devinitdata = {
  392. { /* 0 */
  393. .name = "SvrWks OSB4",
  394. .init_setup = init_setup_svwks,
  395. .init_chipset = init_chipset_svwks,
  396. .init_hwif = init_hwif_svwks,
  397. .channels = 2,
  398. .autodma = AUTODMA,
  399. .bootable = ON_BOARD,
  400. },{ /* 1 */
  401. .name = "SvrWks CSB5",
  402. .init_setup = init_setup_svwks,
  403. .init_chipset = init_chipset_svwks,
  404. .init_hwif = init_hwif_svwks,
  405. .channels = 2,
  406. .autodma = AUTODMA,
  407. .bootable = ON_BOARD,
  408. },{ /* 2 */
  409. .name = "SvrWks CSB6",
  410. .init_setup = init_setup_csb6,
  411. .init_chipset = init_chipset_svwks,
  412. .init_hwif = init_hwif_svwks,
  413. .channels = 2,
  414. .autodma = AUTODMA,
  415. .bootable = ON_BOARD,
  416. },{ /* 3 */
  417. .name = "SvrWks CSB6",
  418. .init_setup = init_setup_csb6,
  419. .init_chipset = init_chipset_svwks,
  420. .init_hwif = init_hwif_svwks,
  421. .channels = 1, /* 2 */
  422. .autodma = AUTODMA,
  423. .bootable = ON_BOARD,
  424. },{ /* 4 */
  425. .name = "SvrWks HT1000",
  426. .init_setup = init_setup_svwks,
  427. .init_chipset = init_chipset_svwks,
  428. .init_hwif = init_hwif_svwks,
  429. .channels = 1, /* 2 */
  430. .autodma = AUTODMA,
  431. .bootable = ON_BOARD,
  432. }
  433. };
  434. /**
  435. * svwks_init_one - called when a OSB/CSB is found
  436. * @dev: the svwks device
  437. * @id: the matching pci id
  438. *
  439. * Called when the PCI registration layer (or the IDE initialization)
  440. * finds a device matching our IDE device tables.
  441. */
  442. static int __devinit svwks_init_one(struct pci_dev *dev, const struct pci_device_id *id)
  443. {
  444. ide_pci_device_t *d = &serverworks_chipsets[id->driver_data];
  445. return d->init_setup(dev, d);
  446. }
  447. static struct pci_device_id svwks_pci_tbl[] = {
  448. { PCI_VENDOR_ID_SERVERWORKS, PCI_DEVICE_ID_SERVERWORKS_OSB4IDE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
  449. { PCI_VENDOR_ID_SERVERWORKS, PCI_DEVICE_ID_SERVERWORKS_CSB5IDE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1},
  450. { PCI_VENDOR_ID_SERVERWORKS, PCI_DEVICE_ID_SERVERWORKS_CSB6IDE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 2},
  451. { PCI_VENDOR_ID_SERVERWORKS, PCI_DEVICE_ID_SERVERWORKS_CSB6IDE2, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 3},
  452. { PCI_VENDOR_ID_SERVERWORKS, PCI_DEVICE_ID_SERVERWORKS_HT1000IDE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 4},
  453. { 0, },
  454. };
  455. MODULE_DEVICE_TABLE(pci, svwks_pci_tbl);
  456. static struct pci_driver driver = {
  457. .name = "Serverworks_IDE",
  458. .id_table = svwks_pci_tbl,
  459. .probe = svwks_init_one,
  460. };
  461. static int __init svwks_ide_init(void)
  462. {
  463. return ide_pci_register_driver(&driver);
  464. }
  465. module_init(svwks_ide_init);
  466. MODULE_AUTHOR("Michael Aubry. Andrzej Krzysztofowicz, Andre Hedrick");
  467. MODULE_DESCRIPTION("PCI driver module for Serverworks OSB4/CSB5/CSB6 IDE");
  468. MODULE_LICENSE("GPL");