diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-07-19 19:11:55 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-07-19 19:11:55 -0400 |
commit | a5d8c5c834d3cabf4b7b477c3f6ee923c25026fc (patch) | |
tree | 19fc04470569a3c2f227d5aac3078a15ac65bb32 /drivers/ide/pci/generic.c | |
parent | 2229833c1365346b64357a9263fa724f74f5e376 (diff) |
ide: add ide_pci_device_t.host_flags (take 2)
* Rename ide_pci_device_t.flags to ide_pci_device_t.host_flags
and IDEPCI_FLAG_ISA_PORTS flag to IDE_HFLAG_ISA_PORTS.
* Add IDE_HFLAG_SINGLE flag for single channel devices.
* Convert core code and all IDE PCI drivers to use IDE_HFLAG_SINGLE
and remove no longer needed ide_pci_device_t.channels field.
v2:
* Fix issues noticed by Sergei:
- correct code alignment in scc_pata.c
- s/IDE_HFLAG_SINGLE/~IDE_HFLAG_SINGLE/ in serverworks.c
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/generic.c')
-rw-r--r-- | drivers/ide/pci/generic.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/ide/pci/generic.c b/drivers/ide/pci/generic.c index 0d51a11e81da..48caa468b762 100644 --- a/drivers/ide/pci/generic.c +++ b/drivers/ide/pci/generic.c | |||
@@ -95,92 +95,77 @@ static ide_pci_device_t generic_chipsets[] __devinitdata = { | |||
95 | { /* 0 */ | 95 | { /* 0 */ |
96 | .name = "Unknown", | 96 | .name = "Unknown", |
97 | .init_hwif = init_hwif_generic, | 97 | .init_hwif = init_hwif_generic, |
98 | .channels = 2, | ||
99 | .autodma = AUTODMA, | 98 | .autodma = AUTODMA, |
100 | .bootable = ON_BOARD, | 99 | .bootable = ON_BOARD, |
101 | },{ /* 1 */ | 100 | },{ /* 1 */ |
102 | .name = "NS87410", | 101 | .name = "NS87410", |
103 | .init_hwif = init_hwif_generic, | 102 | .init_hwif = init_hwif_generic, |
104 | .channels = 2, | ||
105 | .autodma = AUTODMA, | 103 | .autodma = AUTODMA, |
106 | .enablebits = {{0x43,0x08,0x08}, {0x47,0x08,0x08}}, | 104 | .enablebits = {{0x43,0x08,0x08}, {0x47,0x08,0x08}}, |
107 | .bootable = ON_BOARD, | 105 | .bootable = ON_BOARD, |
108 | },{ /* 2 */ | 106 | },{ /* 2 */ |
109 | .name = "SAMURAI", | 107 | .name = "SAMURAI", |
110 | .init_hwif = init_hwif_generic, | 108 | .init_hwif = init_hwif_generic, |
111 | .channels = 2, | ||
112 | .autodma = AUTODMA, | 109 | .autodma = AUTODMA, |
113 | .bootable = ON_BOARD, | 110 | .bootable = ON_BOARD, |
114 | },{ /* 3 */ | 111 | },{ /* 3 */ |
115 | .name = "HT6565", | 112 | .name = "HT6565", |
116 | .init_hwif = init_hwif_generic, | 113 | .init_hwif = init_hwif_generic, |
117 | .channels = 2, | ||
118 | .autodma = AUTODMA, | 114 | .autodma = AUTODMA, |
119 | .bootable = ON_BOARD, | 115 | .bootable = ON_BOARD, |
120 | },{ /* 4 */ | 116 | },{ /* 4 */ |
121 | .name = "UM8673F", | 117 | .name = "UM8673F", |
122 | .init_hwif = init_hwif_generic, | 118 | .init_hwif = init_hwif_generic, |
123 | .channels = 2, | ||
124 | .autodma = NODMA, | 119 | .autodma = NODMA, |
125 | .bootable = ON_BOARD, | 120 | .bootable = ON_BOARD, |
126 | },{ /* 5 */ | 121 | },{ /* 5 */ |
127 | .name = "UM8886A", | 122 | .name = "UM8886A", |
128 | .init_hwif = init_hwif_generic, | 123 | .init_hwif = init_hwif_generic, |
129 | .channels = 2, | ||
130 | .autodma = NODMA, | 124 | .autodma = NODMA, |
131 | .bootable = ON_BOARD, | 125 | .bootable = ON_BOARD, |
132 | },{ /* 6 */ | 126 | },{ /* 6 */ |
133 | .name = "UM8886BF", | 127 | .name = "UM8886BF", |
134 | .init_hwif = init_hwif_generic, | 128 | .init_hwif = init_hwif_generic, |
135 | .channels = 2, | ||
136 | .autodma = NODMA, | 129 | .autodma = NODMA, |
137 | .bootable = ON_BOARD, | 130 | .bootable = ON_BOARD, |
138 | },{ /* 7 */ | 131 | },{ /* 7 */ |
139 | .name = "HINT_IDE", | 132 | .name = "HINT_IDE", |
140 | .init_hwif = init_hwif_generic, | 133 | .init_hwif = init_hwif_generic, |
141 | .channels = 2, | ||
142 | .autodma = AUTODMA, | 134 | .autodma = AUTODMA, |
143 | .bootable = ON_BOARD, | 135 | .bootable = ON_BOARD, |
144 | },{ /* 8 */ | 136 | },{ /* 8 */ |
145 | .name = "VIA_IDE", | 137 | .name = "VIA_IDE", |
146 | .init_hwif = init_hwif_generic, | 138 | .init_hwif = init_hwif_generic, |
147 | .channels = 2, | ||
148 | .autodma = NOAUTODMA, | 139 | .autodma = NOAUTODMA, |
149 | .bootable = ON_BOARD, | 140 | .bootable = ON_BOARD, |
150 | },{ /* 9 */ | 141 | },{ /* 9 */ |
151 | .name = "OPTI621V", | 142 | .name = "OPTI621V", |
152 | .init_hwif = init_hwif_generic, | 143 | .init_hwif = init_hwif_generic, |
153 | .channels = 2, | ||
154 | .autodma = NOAUTODMA, | 144 | .autodma = NOAUTODMA, |
155 | .bootable = ON_BOARD, | 145 | .bootable = ON_BOARD, |
156 | },{ /* 10 */ | 146 | },{ /* 10 */ |
157 | .name = "VIA8237SATA", | 147 | .name = "VIA8237SATA", |
158 | .init_hwif = init_hwif_generic, | 148 | .init_hwif = init_hwif_generic, |
159 | .channels = 2, | ||
160 | .autodma = AUTODMA, | 149 | .autodma = AUTODMA, |
161 | .bootable = OFF_BOARD, | 150 | .bootable = OFF_BOARD, |
162 | },{ /* 11 */ | 151 | },{ /* 11 */ |
163 | .name = "Piccolo0102", | 152 | .name = "Piccolo0102", |
164 | .init_hwif = init_hwif_generic, | 153 | .init_hwif = init_hwif_generic, |
165 | .channels = 2, | ||
166 | .autodma = NOAUTODMA, | 154 | .autodma = NOAUTODMA, |
167 | .bootable = ON_BOARD, | 155 | .bootable = ON_BOARD, |
168 | },{ /* 12 */ | 156 | },{ /* 12 */ |
169 | .name = "Piccolo0103", | 157 | .name = "Piccolo0103", |
170 | .init_hwif = init_hwif_generic, | 158 | .init_hwif = init_hwif_generic, |
171 | .channels = 2, | ||
172 | .autodma = NOAUTODMA, | 159 | .autodma = NOAUTODMA, |
173 | .bootable = ON_BOARD, | 160 | .bootable = ON_BOARD, |
174 | },{ /* 13 */ | 161 | },{ /* 13 */ |
175 | .name = "Piccolo0105", | 162 | .name = "Piccolo0105", |
176 | .init_hwif = init_hwif_generic, | 163 | .init_hwif = init_hwif_generic, |
177 | .channels = 2, | ||
178 | .autodma = NOAUTODMA, | 164 | .autodma = NOAUTODMA, |
179 | .bootable = ON_BOARD, | 165 | .bootable = ON_BOARD, |
180 | },{ /* 14 */ | 166 | },{ /* 14 */ |
181 | .name = "Revolution", | 167 | .name = "Revolution", |
182 | .init_hwif = init_hwif_generic, | 168 | .init_hwif = init_hwif_generic, |
183 | .channels = 2, | ||
184 | .autodma = AUTODMA, | 169 | .autodma = AUTODMA, |
185 | .bootable = OFF_BOARD, | 170 | .bootable = OFF_BOARD, |
186 | } | 171 | } |