diff options
Diffstat (limited to 'drivers/ata/pata_sil680.c')
-rw-r--r-- | drivers/ata/pata_sil680.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/drivers/ata/pata_sil680.c b/drivers/ata/pata_sil680.c index 440e2cb6ee75..b0cd52d6e3fb 100644 --- a/drivers/ata/pata_sil680.c +++ b/drivers/ata/pata_sil680.c | |||
@@ -35,6 +35,8 @@ | |||
35 | #define DRV_NAME "pata_sil680" | 35 | #define DRV_NAME "pata_sil680" |
36 | #define DRV_VERSION "0.4.6" | 36 | #define DRV_VERSION "0.4.6" |
37 | 37 | ||
38 | #define SIL680_MMIO_BAR 5 | ||
39 | |||
38 | /** | 40 | /** |
39 | * sil680_selreg - return register base | 41 | * sil680_selreg - return register base |
40 | * @hwif: interface | 42 | * @hwif: interface |
@@ -293,8 +295,8 @@ static u8 sil680_init_chip(struct pci_dev *pdev) | |||
293 | 295 | ||
294 | pci_read_config_byte(pdev, 0x8A, &tmpbyte); | 296 | pci_read_config_byte(pdev, 0x8A, &tmpbyte); |
295 | 297 | ||
296 | printk(KERN_INFO "sil680: BA5_EN = %d clock = %02X\n", | 298 | dev_dbg(&pdev->dev, "sil680: BA5_EN = %d clock = %02X\n", |
297 | tmpbyte & 1, tmpbyte & 0x30); | 299 | tmpbyte & 1, tmpbyte & 0x30); |
298 | 300 | ||
299 | switch(tmpbyte & 0x30) { | 301 | switch(tmpbyte & 0x30) { |
300 | case 0x00: | 302 | case 0x00: |
@@ -315,8 +317,8 @@ static u8 sil680_init_chip(struct pci_dev *pdev) | |||
315 | } | 317 | } |
316 | 318 | ||
317 | pci_read_config_byte(pdev, 0x8A, &tmpbyte); | 319 | pci_read_config_byte(pdev, 0x8A, &tmpbyte); |
318 | printk(KERN_INFO "sil680: BA5_EN = %d clock = %02X\n", | 320 | dev_dbg(&pdev->dev, "sil680: BA5_EN = %d clock = %02X\n", |
319 | tmpbyte & 1, tmpbyte & 0x30); | 321 | tmpbyte & 1, tmpbyte & 0x30); |
320 | 322 | ||
321 | pci_write_config_byte(pdev, 0xA1, 0x72); | 323 | pci_write_config_byte(pdev, 0xA1, 0x72); |
322 | pci_write_config_word(pdev, 0xA2, 0x328A); | 324 | pci_write_config_word(pdev, 0xA2, 0x328A); |
@@ -339,22 +341,23 @@ static u8 sil680_init_chip(struct pci_dev *pdev) | |||
339 | return tmpbyte & 0x30; | 341 | return tmpbyte & 0x30; |
340 | } | 342 | } |
341 | 343 | ||
342 | static int sil680_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | 344 | static int __devinit sil680_init_one(struct pci_dev *pdev, |
345 | const struct pci_device_id *id) | ||
343 | { | 346 | { |
344 | static const struct ata_port_info info = { | 347 | static const struct ata_port_info info = { |
345 | .sht = &sil680_sht, | 348 | .sht = &sil680_sht, |
346 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, | 349 | .flags = ATA_FLAG_SLAVE_POSS, |
347 | .pio_mask = 0x1f, | 350 | .pio_mask = 0x1f, |
348 | .mwdma_mask = 0x07, | 351 | .mwdma_mask = 0x07, |
349 | .udma_mask = 0x7f, | 352 | .udma_mask = ATA_UDMA6, |
350 | .port_ops = &sil680_port_ops | 353 | .port_ops = &sil680_port_ops |
351 | }; | 354 | }; |
352 | static const struct ata_port_info info_slow = { | 355 | static const struct ata_port_info info_slow = { |
353 | .sht = &sil680_sht, | 356 | .sht = &sil680_sht, |
354 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, | 357 | .flags = ATA_FLAG_SLAVE_POSS, |
355 | .pio_mask = 0x1f, | 358 | .pio_mask = 0x1f, |
356 | .mwdma_mask = 0x07, | 359 | .mwdma_mask = 0x07, |
357 | .udma_mask = 0x3f, | 360 | .udma_mask = ATA_UDMA5, |
358 | .port_ops = &sil680_port_ops | 361 | .port_ops = &sil680_port_ops |
359 | }; | 362 | }; |
360 | const struct ata_port_info *ppi[] = { &info, NULL }; | 363 | const struct ata_port_info *ppi[] = { &info, NULL }; |