Whitespace cleanups, no functional change.

This commit is contained in:
John Baldwin 2019-05-31 18:00:44 +00:00
parent 9892cc9ad4
commit df61066e8b

View File

@ -56,8 +56,8 @@ __FBSDID("$FreeBSD$");
#include "pci_irq.h"
#include "pci_lpc.h"
#define CONF1_ADDR_PORT 0x0cf8
#define CONF1_DATA_PORT 0x0cfc
#define CONF1_ADDR_PORT 0x0cf8
#define CONF1_DATA_PORT 0x0cfc
#define CONF1_ENABLE 0x80000000ul
@ -479,7 +479,7 @@ modify_bar_registration(struct pci_devinst *pi, int idx, int registration)
iop.handler = pci_emul_io_handler;
iop.arg = pi;
error = register_inout(&iop);
} else
} else
error = unregister_inout(&iop);
break;
case PCIBAR_MEM32:
@ -547,7 +547,7 @@ memen(struct pci_devinst *pi)
* the address range decoded by the BAR register.
*/
static void
update_bar_address(struct pci_devinst *pi, uint64_t addr, int idx, int type)
update_bar_address(struct pci_devinst *pi, uint64_t addr, int idx, int type)
{
int decode;
@ -670,7 +670,7 @@ pci_emul_alloc_pbar(struct pci_devinst *pdi, int idx, uint64_t hostbase,
pdi->pi_bar[idx + 1].type = PCIBAR_MEMHI64;
pci_set_cfgdata32(pdi, PCIR_BAR(idx + 1), bar >> 32);
}
register_bar(pdi, idx);
return (0);
@ -843,7 +843,7 @@ pci_emul_add_msixcap(struct pci_devinst *pi, int msgnum, int barnum)
assert(msgnum >= 1 && msgnum <= MAX_MSIX_TABLE_ENTRIES);
assert(barnum >= 0 && barnum <= PCIR_MAX_BAR_0);
tab_size = msgnum * MSIX_TABLE_ENTRY_SIZE;
/* Align table size to nearest 4K */
@ -1093,7 +1093,7 @@ init_pci(struct vmctx *ctx)
for (bus = 0; bus < MAXBUSES; bus++) {
if ((bi = pci_businfo[bus]) == NULL)
continue;
/*
/*
* Keep track of the i/o and memory resources allocated to
* this bus.
*/
@ -1726,9 +1726,9 @@ pci_emul_cmdsts_write(struct pci_devinst *pi, int coff, uint32_t new, int bytes)
else
unregister_bar(pi, i);
}
break;
break;
default:
assert(0);
assert(0);
}
}
@ -1944,7 +1944,7 @@ INOUT_PORT(pci_cfgdata, CONF1_DATA_PORT+3, IOPORT_F_INOUT, pci_emul_cfgdata);
#define DIOSZ 8
#define DMEMSZ 4096
struct pci_emul_dsoftc {
uint8_t ioregs[DIOSZ];
uint8_t ioregs[DIOSZ];
uint8_t memregs[2][DMEMSZ];
};
@ -2036,7 +2036,7 @@ pci_emul_diow(struct vmctx *ctx, int vcpu, struct pci_devinst *pi, int baridx,
} else {
printf("diow: memw unknown size %d\n", size);
}
/*
* magic interrupt ??
*/
@ -2061,7 +2061,7 @@ pci_emul_dior(struct vmctx *ctx, int vcpu, struct pci_devinst *pi, int baridx,
offset, size);
return (0);
}
value = 0;
if (size == 1) {
value = sc->ioregs[offset];
@ -2080,7 +2080,7 @@ pci_emul_dior(struct vmctx *ctx, int vcpu, struct pci_devinst *pi, int baridx,
offset, size);
return (0);
}
i = baridx - 1; /* 'memregs' index */
if (size == 1) {