Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/pci_lpc.c
Show First 20 Lines • Show All 416 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
return (0); | return (0); | ||||
} | } | ||||
#define LPC_DEV 0x7000 | #define LPC_DEV 0x7000 | ||||
#define LPC_VENDOR 0x8086 | #define LPC_VENDOR 0x8086 | ||||
static int | static int | ||||
pci_lpc_init(struct vmctx *ctx, struct pci_devinst *pi, nvlist_t *nvl) | pci_lpc_init(struct vmctx *ctx, struct pci_devinst *pi, config_node_t *node) | ||||
{ | { | ||||
/* | /* | ||||
* Do not allow more than one LPC bridge to be configured. | * Do not allow more than one LPC bridge to be configured. | ||||
*/ | */ | ||||
if (lpc_bridge != NULL) { | if (lpc_bridge != NULL) { | ||||
EPRINTLN("Only one LPC bridge is allowed."); | EPRINTLN("Only one LPC bridge is allowed."); | ||||
return (-1); | return (-1); | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |