* added 0.99 linux version
[mascara-docs.git] / i386 / linux / linux-2.3.21 / drivers / block / aec6210.c
blobc52d8450db07f1f91cd516f5f3dd659070819880
1 /*
2 * linux/drivers/block/aec6210.c Version 0.01 Nov 17, 1998
4 * Copyright (C) 1998-99 Andre Hedrick
6 * pio 0 :: 40: 00 07 00 00 00 00 00 00 02 07 a6 04 00 02 00 02
7 * pio 1 :: 40: 0a 07 00 00 00 00 00 00 02 07 a6 05 00 02 00 02
8 * pio 2 :: 40: 08 07 00 00 00 00 00 00 02 07 a6 05 00 02 00 02
9 * pio 3 :: 40: 03 04 00 00 00 00 00 00 02 05 a6 05 00 02 00 02
10 * pio 4 :: 40: 01 04 00 00 00 00 00 00 02 05 a6 05 00 02 00 02
11 * dma 0 :: 40: 0a 07 00 00 00 00 00 00 02 05 a6 05 00 02 00 02
12 * dma 1 :: 40: 02 04 00 00 00 00 00 00 02 05 a6 05 00 02 00 02
13 * dma 2 :: 40: 01 04 00 00 00 00 00 00 02 05 a6 05 00 02 00 02
14 * 50: ff ff ff ff 00 06 04 00 00 00 00 00 00 00 00 00
16 * udma 0 :: 40: 01 04 00 00 00 00 00 00 02 05 a6 05 00 02 00 02
17 * 50: ff ff ff ff 01 06 04 00 00 00 00 00 00 00 00 00
19 * udma 1 :: 40: 01 04 00 00 00 00 00 00 02 05 a6 05 00 02 00 02
20 * 50: ff ff ff ff 01 06 04 00 00 00 00 00 00 00 00 00
22 * udma 2 :: 40: 01 04 00 00 00 00 00 00 02 05 a6 05 00 02 00 02
23 * 50: ff ff ff ff 02 06 04 00 00 00 00 00 00 00 00 00
25 * auto :: 40: 01 04 00 00 00 00 00 00 02 05 a6 05 00 02 00 02
26 * 50: ff ff ff ff 02 06 04 00 00 00 00 00 00 00 00 00
28 * auto :: 40: 01 04 01 04 01 04 01 04 02 05 a6 cf 00 02 00 02
29 * 50: ff ff ff ff aa 06 04 00 00 00 00 00 00 00 00 00
31 * NO-Devices
32 * 40: 00 00 00 00 00 00 00 00 02 05 a6 00 00 02 00 02
33 * 50: ff ff ff ff 00 06 00 00 00 00 00 00 00 00 00 00
36 #include <linux/types.h>
37 #include <linux/kernel.h>
38 #include <linux/delay.h>
39 #include <linux/timer.h>
40 #include <linux/mm.h>
41 #include <linux/ioport.h>
42 #include <linux/blkdev.h>
43 #include <linux/hdreg.h>
45 #include <linux/interrupt.h>
46 #include <linux/pci.h>
47 #include <linux/init.h>
48 #include <linux/ide.h>
50 #include <asm/io.h>
51 #include <asm/irq.h>
53 unsigned int __init pci_init_aec6210 (struct pci_dev *dev, const char *name)
55 if (dev->resource[PCI_ROM_RESOURCE].start) {
56 pci_write_config_dword(dev, PCI_ROM_ADDRESS, dev->resource[PCI_ROM_RESOURCE].start | PCI_ROM_ADDRESS_ENABLE);
57 printk("%s: ROM enabled at 0x%08lx\n", name, dev->resource[PCI_ROM_RESOURCE].start);
59 return dev->irq;