| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: brdsetup.c,v 1.15 2011/04/17 13:09:30 phx Exp $ */ | | 1 | /* $NetBSD: brdsetup.c,v 1.16 2011/04/25 18:28:47 phx Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 2008 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 2008 The NetBSD Foundation, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to The NetBSD Foundation | | 7 | * This code is derived from software contributed to The NetBSD Foundation |
8 | * by Tohru Nishimura. | | 8 | * by Tohru Nishimura. |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * 1. Redistributions of source code must retain the above copyright | | 13 | * 1. Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
| @@ -215,35 +215,35 @@ brdsetup(void) | | | @@ -215,35 +215,35 @@ brdsetup(void) |
215 | } | | 215 | } |
216 | else if (pcifinddev(0x1106, 0x0686, &pcib) == 0) { | | 216 | else if (pcifinddev(0x1106, 0x0686, &pcib) == 0) { |
217 | /* VIA 686B southbridge at dev 22 */ | | 217 | /* VIA 686B southbridge at dev 22 */ |
218 | brdtype = BRD_ENCOREPP1; | | 218 | brdtype = BRD_ENCOREPP1; |
219 | } | | 219 | } |
220 | else if (PCI_CLASS(pcicfgread(dev11, PCI_CLASS_REG)) == PCI_CLASS_ETH) { | | 220 | else if (PCI_CLASS(pcicfgread(dev11, PCI_CLASS_REG)) == PCI_CLASS_ETH) { |
221 | /* ADMtek AN985 (tlp) or RealTek 8169S (re) at dev 11 */ | | 221 | /* ADMtek AN985 (tlp) or RealTek 8169S (re) at dev 11 */ |
222 | brdtype = BRD_KUROBOX; | | 222 | brdtype = BRD_KUROBOX; |
223 | } | | 223 | } |
224 | else if (PCI_VENDOR(pcicfgread(dev15, PCI_ID_REG)) == 0x11ab) { | | 224 | else if (PCI_VENDOR(pcicfgread(dev15, PCI_ID_REG)) == 0x11ab) { |
225 | /* SKnet/Marvell (sk) at dev 15 */ | | 225 | /* SKnet/Marvell (sk) at dev 15 */ |
226 | brdtype = BRD_SYNOLOGY; | | 226 | brdtype = BRD_SYNOLOGY; |
227 | } | | 227 | } |
| | | 228 | else if (PCI_VENDOR(pcicfgread(dev13, PCI_ID_REG)) == 0x1106) { |
| | | 229 | /* VIA 6410 (viaide) at dev 13 */ |
| | | 230 | brdtype = BRD_STORCENTER; |
| | | 231 | } |
228 | else if (PCI_VENDOR(pcicfgread(dev15, PCI_ID_REG)) == 0x8086 | | 232 | else if (PCI_VENDOR(pcicfgread(dev15, PCI_ID_REG)) == 0x8086 |
229 | || PCI_VENDOR(pcicfgread(dev15, PCI_ID_REG)) == 0x10ec) { | | 233 | || PCI_VENDOR(pcicfgread(dev15, PCI_ID_REG)) == 0x10ec) { |
230 | /* Intel (wm) or RealTek (re) at dev 15 */ | | 234 | /* Intel (wm) or RealTek (re) at dev 15 */ |
231 | brdtype = BRD_QNAPTS; | | 235 | brdtype = BRD_QNAPTS; |
232 | } | | 236 | } |
233 | else if (PCI_VENDOR(pcicfgread(dev13, PCI_ID_REG)) == 0x1106) { | | | |
234 | /* VIA 6410 (viaide) at dev 13 */ | | | |
235 | brdtype = BRD_STORCENTER; | | | |
236 | } | | | |
237 | else if (PCI_VENDOR(pcicfgread(dev16, PCI_ID_REG)) == 0x1191) { | | 237 | else if (PCI_VENDOR(pcicfgread(dev16, PCI_ID_REG)) == 0x1191) { |
238 | /* ACARD ATP865 (acardide) at dev 16 */ | | 238 | /* ACARD ATP865 (acardide) at dev 16 */ |
239 | brdtype = BRD_DLINKDSM; | | 239 | brdtype = BRD_DLINKDSM; |
240 | } | | 240 | } |
241 | else if (PCI_VENDOR(pcicfgread(dev16, PCI_ID_REG)) == 0x1283 | | 241 | else if (PCI_VENDOR(pcicfgread(dev16, PCI_ID_REG)) == 0x1283 |
242 | || PCI_VENDOR(pcicfgread(dev16, PCI_ID_REG)) == 0x1095) { | | 242 | || PCI_VENDOR(pcicfgread(dev16, PCI_ID_REG)) == 0x1095) { |
243 | /* ITE (iteide) or SiI (satalink) at dev 16 */ | | 243 | /* ITE (iteide) or SiI (satalink) at dev 16 */ |
244 | brdtype = BRD_NH230NAS; | | 244 | brdtype = BRD_NH230NAS; |
245 | } | | 245 | } |
246 | | | 246 | |
247 | brdprop = brd_lookup(brdtype); | | 247 | brdprop = brd_lookup(brdtype); |
248 | | | 248 | |
249 | /* brd dependent adjustments */ | | 249 | /* brd dependent adjustments */ |