note to self: vibra16c is not vibra16x

This commit is contained in:
Cameron Grant 1999-12-19 22:28:31 +00:00
parent ff00068cce
commit 34c18c4fc5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54846

View File

@ -305,15 +305,13 @@ sbc_attach(device_t dev)
f |= BD_F_SB16 | BD_F_MIX_CT1745;
if (scp->drq[0]) dl = rman_get_start(scp->drq[0]); else dl = -1;
if (scp->drq[1]) dh = rman_get_start(scp->drq[1]); else dh = dl;
if (!logical_id) {
if (dh < dl) {
struct resource *r;
r = scp->drq[0];
scp->drq[0] = scp->drq[1];
scp->drq[1] = r;
dl = rman_get_start(scp->drq[0]);
dh = rman_get_start(scp->drq[1]);
}
if (!logical_id && (dh < dl)) {
struct resource *r;
r = scp->drq[0];
scp->drq[0] = scp->drq[1];
scp->drq[1] = r;
dl = rman_get_start(scp->drq[0]);
dh = rman_get_start(scp->drq[1]);
}
/* soft irq/dma configuration */
x = -1;
@ -335,7 +333,6 @@ sbc_attach(device_t dev)
}
switch (logical_id) {
case 0x01008c0e: /* CTL0001 */
case 0x43008c0e: /* CTL0043 */
f |= BD_F_SB16X;
break;