Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/pctestdev.c
| Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | |||||
| const char * | const char * | ||||
| pctestdev_getname(void) | pctestdev_getname(void) | ||||
| { | { | ||||
| return (PCTESTDEV_NAME); | return (PCTESTDEV_NAME); | ||||
| } | } | ||||
| int | int | ||||
| pctestdev_parse(const char *opts) | |||||
| { | |||||
| if (opts != NULL && *opts != '\0') | |||||
| return (-1); | |||||
| return (0); | |||||
| } | |||||
| int | |||||
| pctestdev_init(struct vmctx *ctx) | pctestdev_init(struct vmctx *ctx) | ||||
| { | { | ||||
| struct mem_range iomem; | struct mem_range iomem; | ||||
| struct inout_port debugexit, ioport, irq; | struct inout_port debugexit, ioport, irq; | ||||
| int err, pincount; | int err, pincount; | ||||
| if (pctestdev_inited) { | if (pctestdev_inited) { | ||||
| EPRINTLN("Only one pc-testdev device is allowed."); | EPRINTLN("Only one pc-testdev device is allowed."); | ||||
| ▲ Show 20 Lines • Show All 162 Lines • Show Last 20 Lines | |||||