mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 03:49:02 +00:00
note to self: vibra16c is not vibra16x
This commit is contained in:
parent
ff00068cce
commit
34c18c4fc5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54846
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user