mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Argh, this time get the parentheses right. This hasn't been a good day for me.
This commit is contained in:
parent
a7204231eb
commit
5d156f4397
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22959
@ -530,7 +530,7 @@ pcic_probe(void)
|
||||
struct slot *slotp;
|
||||
struct pcic_slot *sp;
|
||||
unsigned char c;
|
||||
static int is_vlsi = 0;
|
||||
static int maybe_vlsi = 0;
|
||||
|
||||
/* Determine the list of free interrupts */
|
||||
free_irqs = build_freelist(PCIC_INT_MASK_ALLOWED);
|
||||
@ -575,7 +575,7 @@ pcic_probe(void)
|
||||
* ones would need to be probed at the new offset we set after
|
||||
* we assume it's broken.
|
||||
*/
|
||||
if ((slot == 1) && is_vlsi && (getb(sp, PCIC_ID_REV != 0x84))) {
|
||||
if (slot == 1 && maybe_vlsi && getb(sp, PCIC_ID_REV) != 0x84) {
|
||||
sp->index += 4;
|
||||
sp->data += 4;
|
||||
sp->offset = PCIC_SLOT_SIZE << 1;
|
||||
@ -622,7 +622,7 @@ pcic_probe(void)
|
||||
*/
|
||||
case 0x84:
|
||||
sp->controller = PCIC_VLSI;
|
||||
is_vlsi = 1;
|
||||
maybe_vlsi = 1;
|
||||
break;
|
||||
case 0x88:
|
||||
case 0x89:
|
||||
|
Loading…
Reference in New Issue
Block a user