Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/pci_hda.h
| Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | struct hda_codec_inst { | ||||
| struct hda_softc *hda; | struct hda_softc *hda; | ||||
| struct hda_ops *hops; | struct hda_ops *hops; | ||||
| void *priv; | void *priv; | ||||
| }; | }; | ||||
| struct hda_codec_class { | struct hda_codec_class { | ||||
| char *name; | char *name; | ||||
| int (*init)(struct hda_codec_inst *hci, const char *play, | int (*init)(struct hda_codec_inst *hci, const char *play, | ||||
| const char *rec, const char *opts); | const char *rec); | ||||
| int (*reset)(struct hda_codec_inst *hci); | int (*reset)(struct hda_codec_inst *hci); | ||||
| int (*command)(struct hda_codec_inst *hci, uint32_t cmd_data); | int (*command)(struct hda_codec_inst *hci, uint32_t cmd_data); | ||||
| int (*notify)(struct hda_codec_inst *hci, uint8_t run, uint8_t stream, | int (*notify)(struct hda_codec_inst *hci, uint8_t run, uint8_t stream, | ||||
| uint8_t dir); | uint8_t dir); | ||||
| }; | }; | ||||
| struct hda_ops { | struct hda_ops { | ||||
| int (*signal)(struct hda_codec_inst *hci); | int (*signal)(struct hda_codec_inst *hci); | ||||
| Show All 9 Lines | |||||