···6565#define BUSCLOCK(D) \6666 ((struct chipset_bus_clock_list_entry *) pci_get_drvdata((D)))67676868-#if 06969- if (dev->device == PCI_DEVICE_ID_ARTOP_ATP850UF) {7070- (void) pci_read_config_byte(dev, 0x54, &art);7171- p += sprintf(p, "DMA Mode: %s(%s)",7272- (c0&0x20)?((art&0x03)?"UDMA":" DMA"):" PIO",7373- (art&0x02)?"2":(art&0x01)?"1":"0");7474- p += sprintf(p, " %s(%s)",7575- (c0&0x40)?((art&0x0c)?"UDMA":" DMA"):" PIO",7676- (art&0x08)?"2":(art&0x04)?"1":"0");7777- p += sprintf(p, " %s(%s)",7878- (c1&0x20)?((art&0x30)?"UDMA":" DMA"):" PIO",7979- (art&0x20)?"2":(art&0x10)?"1":"0");8080- p += sprintf(p, " %s(%s)\n",8181- (c1&0x40)?((art&0xc0)?"UDMA":" DMA"):" PIO",8282- (art&0x80)?"2":(art&0x40)?"1":"0");8383- } else {8484-#endif85688669/*8770 * TO DO: active tuning and correction of cards without a bios.···95112 switch(hwif->pci_dev->device) {96113 case PCI_DEVICE_ID_ARTOP_ATP865:97114 case PCI_DEVICE_ID_ARTOP_ATP865R:9898-#if 09999- mode = (hwif->INB(hwif->dma_master) & 0x10) ? 4 : 3;100100-#else101115 mode = (hwif->INB(((hwif->channel) ?102116 hwif->mate->dma_status :103117 hwif->dma_status)) & 0x10) ? 4 : 3;104104-#endif105118 break;106119 case PCI_DEVICE_ID_ARTOP_ATP860:107120 case PCI_DEVICE_ID_ARTOP_ATP860R:···242263 case PCI_DEVICE_ID_ARTOP_ATP865:243264 case PCI_DEVICE_ID_ARTOP_ATP865R:244265 printk(" AEC62XX time out ");245245-#if 0246246- {247247- int i = 0;248248- u8 reg49h = 0;249249- pci_read_config_byte(HWIF(drive)->pci_dev, 0x49, ®49h);250250- for (i=0;i<256;i++)251251- pci_write_config_byte(HWIF(drive)->pci_dev, 0x49, reg49h|0x10);252252- pci_write_config_byte(HWIF(drive)->pci_dev, 0x49, reg49h & ~0x10);253253- }254254- return 0;255255-#endif256266 default:257267 break;258268 }259259-#if 0260260- {261261- ide_hwif_t *hwif = HWIF(drive);262262- struct pci_dev *dev = hwif->pci_dev;263263- u8 tmp1 = 0, tmp2 = 0, mode6 = 0;264264-265265- pci_read_config_byte(dev, 0x44, &tmp1);266266- pci_read_config_byte(dev, 0x45, &tmp2);267267- printk(" AEC6280 r44=%x r45=%x ",tmp1,tmp2);268268- mode6 = HWIF(drive)->INB(((hwif->channel) ?269269- hwif->mate->dma_status :270270- hwif->dma_status));271271- printk(" AEC6280 133=%x ", (mode6 & 0x10));272272- }273273-#endif274269 return 0;275270}276271
+7-2
drivers/ide/pci/alim15x3.c
···876876877877static int __devinit alim15x3_init_one(struct pci_dev *dev, const struct pci_device_id *id)878878{879879+ static struct pci_device_id ati_rs100[] = {880880+ { PCI_DEVICE(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RS100) },881881+ { },882882+ };883883+879884 ide_pci_device_t *d = &ali15x3_chipset;880885881881- if(pci_find_device(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RS100, NULL))882882- printk(KERN_ERR "Warning: ATI Radeon IGP Northbridge is not yet fully tested.\n");886886+ if (pci_dev_present(ati_rs100))887887+ printk(KERN_WARNING "alim15x3: ATI Radeon IGP Northbridge is not yet fully tested.\n");883888884889#if defined(CONFIG_SPARC64)885890 d->init_hwif = init_hwif_common_ali15x3;
+2-3
drivers/ide/pci/cs5520.c
···222222223223 /* We must not grab the entire device, it has 'ISA' space in its224224 BARS too and we will freak out other bits of the kernel */225225- if(pci_enable_device_bars(dev, 1<<2))226226- {225225+ if (pci_enable_device_bars(dev, 1<<2)) {227226 printk(KERN_WARNING "%s: Unable to enable 55x0.\n", d->name);228228- return 1;227227+ return -ENODEV;229228 }230229 pci_set_master(dev);231230 if (pci_set_dma_mask(dev, DMA_32BIT_MASK)) {
+7-1
drivers/ide/pci/siimage.c
···66 *77 * May be copied or modified under the terms of the GNU General Public License88 *99- * Documentation available under NDA only99+ * Documentation for CMD680:1010+ * http://gkernel.sourceforge.net/specs/sii/sii-0680a-v1.31.pdf.bz21111+ *1212+ * Documentation for SiI 3112:1313+ * http://gkernel.sourceforge.net/specs/sii/3112A_SiI-DS-0095-B2.pdf.bz21414+ *1515+ * Errata and other documentation only available under NDA.1016 *1117 *1218 * FAQ Items:
···14011401 /* We probe the hwif now */14021402 probe_hwif_init(hwif);1403140314041404- /* The code IDE code will have set hwif->present if we have devices attached,14051405- * if we don't, the discard the interface except if we are on a media bay slot14061406- */14071407- if (!hwif->present && !pmif->mediabay) {14081408- printk(KERN_INFO "ide%d: Bus empty, interface released.\n",14091409- hwif->index);14101410- default_hwif_iops(hwif);14111411- for (i = IDE_DATA_OFFSET; i <= IDE_CONTROL_OFFSET; ++i)14121412- hwif->io_ports[i] = 0;14131413- hwif->chipset = ide_unknown;14141414- hwif->noprobe = 1;14151415- return -ENODEV;14161416- }14171417-14181404 return 0;14191405}14201406
+1-1
drivers/ide/setup-pci.c
···787787static LIST_HEAD(ide_pci_drivers);788788789789/*790790- * __ide_register_pci_driver - attach IDE driver790790+ * __ide_pci_register_driver - attach IDE driver791791 * @driver: pci driver792792 * @module: owner module of the driver793793 *
···1089108910901090/*10911091 * Subdrivers support.10921092+ *10931093+ * The gendriver.owner field should be set to the module owner of this driver.10941094+ * The gendriver.name field should be set to the name of this driver10921095 */10931096typedef struct ide_driver_s {10941094- struct module *owner;10951097 const char *version;10961098 u8 media;10971099 unsigned supports_dsc_overlap : 1;