2 * linux/drivers/block/aec6210.c Version 0.02 Sept. 3, 1999
4 * Copyright (C) 1998-99 Andre Hedrick (andre@suse.com)
5 * May be copied or modified under the terms of the GNU General Public License
7 * pio 0 :: 40: 00 07 00 00 00 00 00 00 02 07 a6 04 00 02 00 02
8 * pio 1 :: 40: 0a 07 00 00 00 00 00 00 02 07 a6 05 00 02 00 02
9 * pio 2 :: 40: 08 07 00 00 00 00 00 00 02 07 a6 05 00 02 00 02
10 * pio 3 :: 40: 03 04 00 00 00 00 00 00 02 05 a6 05 00 02 00 02
11 * pio 4 :: 40: 01 04 00 00 00 00 00 00 02 05 a6 05 00 02 00 02
12 * dma 0 :: 40: 0a 07 00 00 00 00 00 00 02 05 a6 05 00 02 00 02
13 * dma 1 :: 40: 02 04 00 00 00 00 00 00 02 05 a6 05 00 02 00 02
14 * dma 2 :: 40: 01 04 00 00 00 00 00 00 02 05 a6 05 00 02 00 02
15 * 50: ff ff ff ff 00 06 04 00 00 00 00 00 00 00 00 00
17 * udma 0 :: 40: 01 04 00 00 00 00 00 00 02 05 a6 05 00 02 00 02
18 * 50: ff ff ff ff 01 06 04 00 00 00 00 00 00 00 00 00
20 * udma 1 :: 40: 01 04 00 00 00 00 00 00 02 05 a6 05 00 02 00 02
21 * 50: ff ff ff ff 01 06 04 00 00 00 00 00 00 00 00 00
23 * udma 2 :: 40: 01 04 00 00 00 00 00 00 02 05 a6 05 00 02 00 02
24 * 50: ff ff ff ff 02 06 04 00 00 00 00 00 00 00 00 00
26 * auto :: 40: 01 04 00 00 00 00 00 00 02 05 a6 05 00 02 00 02
27 * 50: ff ff ff ff 02 06 04 00 00 00 00 00 00 00 00 00
29 * auto :: 40: 01 04 01 04 01 04 01 04 02 05 a6 cf 00 02 00 02
30 * 50: ff ff ff ff aa 06 04 00 00 00 00 00 00 00 00 00
33 * 40: 00 00 00 00 00 00 00 00 02 05 a6 00 00 02 00 02
34 * 50: ff ff ff ff 00 06 00 00 00 00 00 00 00 00 00 00
37 #include <linux/types.h>
38 #include <linux/kernel.h>
39 #include <linux/delay.h>
40 #include <linux/timer.h>
42 #include <linux/ioport.h>
43 #include <linux/blkdev.h>
44 #include <linux/hdreg.h>
46 #include <linux/interrupt.h>
47 #include <linux/pci.h>
48 #include <linux/init.h>
49 #include <linux/ide.h>
55 * TO DO: active tuning and correction of cards without a bios.
58 unsigned int __init
pci_init_aec6210 (struct pci_dev
*dev
, const char *name
)
60 if (dev
->resource
[PCI_ROM_RESOURCE
].start
) {
61 pci_write_config_dword(dev
, PCI_ROM_ADDRESS
, dev
->resource
[PCI_ROM_RESOURCE
].start
| PCI_ROM_ADDRESS_ENABLE
);
62 printk("%s: ROM enabled at 0x%08lx\n", name
, dev
->resource
[PCI_ROM_RESOURCE
].start
);